永发信息网

谁0能给个VLAN的详细划分方法吗?

答案:2  悬赏:0  手机版
解决时间 2021-07-25 09:07
  • 提问者网友:心如荒岛囚我终老
  • 2021-07-25 05:21
比如要实现,主VLAN 和VLAN1 VLAN2 VLAN3..通信,但VLAN1 VLAN2 VLAN3不能互通,要怎么设置。还有是一个端口划一个VLAN呢还是把几个端口划一个VLAN好点?
最佳答案
  • 五星知识达人网友:大漠
  • 2021-07-25 06:07

每个VLAN之间是相互隔离的。 VLAN1 VLAN2 VLAN3之间本来就不可以互通,除非你走三层路由。VLAN也没有主VLAN和辅VLAN之分,只有业务VLAN和管理VLAN之分。


一个端口划分一个VLAN,那么个端口之间不能相互通信。 如果几个端口划分一个VLAN,那么同一个VLAN之间的端口可以通信,但和其他端口是隔离的。 具体还要看你是什么架构,不同的架构划分VLAN的方法不同。

全部回答
  • 1楼网友:一秋
  • 2021-07-25 06:19

谁说二层设备不能实现?H3C S2126-EI

具体配置如下[H3C]dis cur #  sysname H3C # radius scheme system # domain system # local-user admin  password simple zlxt  service-type telnet  level 3 local-user yindao # vlan 1 to 23 # interface Vlan-interface1  ip address 10.0.26.200 255.255.0.0 # interface Aux1/0/0 # interface Ethernet1/0/1  port link-type hybrid  port hybrid vlan 1 to 23 untagged # interface Ethernet1/0/2  port link-type hybrid  port hybrid vlan 1 to 2 untagged  port hybrid pvid vlan 2 # interface Ethernet1/0/3  port link-type hybrid  port hybrid vlan 1 3 untagged  port hybrid pvid vlan 3 # interface Ethernet1/0/4  port link-type hybrid  port hybrid vlan 1 4 untagged  port hybrid pvid vlan 4 # interface Ethernet1/0/5  port link-type hybrid  port hybrid vlan 1 5 untagged  port hybrid pvid vlan 5 # interface Ethernet1/0/6  port link-type hybrid  port hybrid vlan 1 6 untagged  port hybrid pvid vlan 6 # interface Ethernet1/0/7  port link-type hybrid  port hybrid vlan 1 7 untagged  port hybrid pvid vlan 7 # interface Ethernet1/0/8  port link-type hybrid  port hybrid vlan 1 8 untagged  port hybrid pvid vlan 8 # interface Ethernet1/0/9  port link-type hybrid  port hybrid vlan 1 9 untagged  port hybrid pvid vlan 9 # interface Ethernet1/0/10  port link-type hybrid  port hybrid vlan 1 10 untagged  port hybrid pvid vlan 10 # interface Ethernet1/0/11  port link-type hybrid  port hybrid vlan 1 11 untagged  port hybrid pvid vlan 11 # interface Ethernet1/0/12  port link-type hybrid  port hybrid vlan 1 12 untagged  port hybrid pvid vlan 12 # interface Ethernet1/0/13  port link-type hybrid  port hybrid vlan 1 13 untagged  port hybrid pvid vlan 13 # interface Ethernet1/0/14  port link-type hybrid  port hybrid vlan 1 14 untagged  port hybrid pvid vlan 14 # interface Ethernet1/0/15  port link-type hybrid  port hybrid vlan 1 15 untagged  port hybrid pvid vlan 15 # interface Ethernet1/0/16  port link-type hybrid  port hybrid vlan 1 16 untagged  port hybrid pvid vlan 16 # interface Ethernet1/0/17  port link-type hybrid  port hybrid vlan 1 17 untagged  port hybrid pvid vlan 17 # interface Ethernet1/0/18  port link-type hybrid  port hybrid vlan 1 18 untagged  port hybrid pvid vlan 18 # interface Ethernet1/0/19  port link-type hybrid  port hybrid vlan 1 19 untagged  port hybrid pvid vlan 19 # interface Ethernet1/0/20  port link-type hybrid  port hybrid vlan 1 20 untagged  port hybrid pvid vlan 20 # interface Ethernet1/0/21  port link-type hybrid  port hybrid vlan 1 21 untagged  port hybrid pvid vlan 21 # interface Ethernet1/0/22  port link-type hybrid  port hybrid vlan 1 22 untagged  port hybrid pvid vlan 22 # interface Ethernet1/0/23  port link-type hybrid  port hybrid vlan 1 23 untagged  port hybrid pvid vlan 23 # interface Ethernet1/0/24  port link-type hybrid  port hybrid vlan 1 to 23 untagged # interface Ethernet1/1/1  port link-type hybrid  port hybrid vlan 1 to 23 untagged # interface Ethernet1/1/2  port link-type hybrid  port hybrid vlan 1 to 23 untagged  shutdown # interface Ethernet1/2/1 # interface Ethernet1/2/2  shutdown # interface NULL0 #  snmp-agent  snmp-agent local-engineid 800063A2000FE2E334DC6877  snmp-agent community read 0201  snmp-agent sys-info version all # user-interface aux 0  authentication-mode password  set authentication password simple zlxt  idle-timeout 0 59 user-interface vty 0  user privilege level 3  set authentication password simple zlxt  protocol inbound telnet  vlan1-7 18 都是公共端口,8-17 19-24 都可以和管理端口通信。8-17 19-24 不能互相通信每个端口一个VLAN

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯