华三模拟器vlan配置实例(华3交换机vlan简单配置方法)

网友投稿 1659 2022-09-12


华三模拟器vlan配置实例(华3交换机vlan简单配置方法)

配置思路 system-view[DeviceC] vlan 100[DeviceC-vlan100] ip-subnet-vlan ip 192.168.5.0 255.255.255.0[DeviceC-vlan100] quit[DeviceC] vlan 200[DeviceC -vlan200] ip-subnet-vlan ip 192.168.50.0 255.255.255.0[DeviceC -vlan200] quit[DeviceC] interface ten-gigabitethernet 1/0/11 [DeviceC·Ten-GigabitEthernet1/0/11] port link-type hybrid[DeviceC-Ten-G igabitEthernet1/0/11] port hybrid vlan 100 tagged[DeviceC-Ten-GigabitEthernet1/0/1] quit[DeviceC] interface ten-gigabitethernet 1/0/12[DeviceC-Ten-GigabitEthernet1/0/12] port link-type hybrid[DeviceC-Ten-GigabitEthernet1/012] port hybrid vlan 200 tagged[DeviceC-Ten-G igabitEthernet1/0/12] quit[DeviceC] interface ten-gigabitethernet 1/0/1 [DeviceC-Ten-GigabitEthernet101 port link-type hybrid[DeviceC-Ten-GigabitEthernet101] port hybrid vlan 100 200 untagged[DeviceC-Ten-GigabitEthernet10/1] port hybrid ip-subnet-vlan vlan 100[DeviceC-Ten-GigabitEthernet101 port hybrid ip-subnet-vlan vlan 200[DeviceC-Ten-GigabitEthernet101 quit配置deviceA和deviceB允许对应vlan通过[DeviceA] interface gigabitethernet 1/0/11[DeviceA-GigabitEthernet1/0/11] port link-type trunk[DeviceA-GigabitEthernet1/0/11] port trunk permit vlan 100

[DeviceB] interface gigabitethernet 1/0/2[DeviceB-GigabitEthernet1/0/12] port link-type trunk[DeviceB-GigabitEthernet1/0/12] port trunk permit vlan 200

配置思路配置DeviceB system-view[DeviceB] vlan 5[DeviceB-vlan5] private-vlan primary[DeviceB-vlan5] quit[DeviceB] vlan 10[DeviceB-vlan10] private-vlan primary[DeviceB-vlan10] quit

[DeviceB] vlan2 to 3[DeviceB] vlan 6[DeviceB-vlan6] quit[DeviceB] vlan 8[DeviceB-vlan8] quit

[DeviceB] interface gigabitethernet 1/0/1[DeviceB- GigabitEthernet1/0/1] port private-vlan 5 10 trunk promiscuous[D eviceB- Giaabit Ethernet1 /0/1 ]quit[DeviceB] interface gigabitethernet 1/0/2[DeviceB· GigabitEthernet1/0/2] port access vlan 2[DeviceB- GigabitEthernet1/0/2] port private-vlan host[DeviceB- GigabitEthernet1/0/2] quit[DeviceB] interface ten-gigabitethernet 1/0/3[DeviceB- GigabitEthernet1/0/3] port access vlan 3[DeviceB· GigabitEthernet1/0/3] port private-vlan host[DeviceB- GigabitEthernet1/03] quit[DeviceB] interface gigabitethernet 1/0/6[DeviceB- GigabitEthernet1/0/6] port access vlan 6[DeviceB- GigabitEthernet1/0/6] port private-vlan host[DeviceB- GigabitEthernet1/0/6] quit[DeviceB] interface gigabitethernet 1/0/8[DeviceB- GigabitEthernet1/0/8] port access vlan 8[DeviceB- GigabitEthernet1/0/8] port private-vlan host[DeviceB- GigabitEthernet1/0/8] quit[DeviceB] vlan 10[DeviceB-vlan10] private-vlan secondary 6 8[DeviceB-vlan10] quit配置DeviceA[DeviceA] vlan 5[DeviceA-vlan5] quit[DeviceA] vlan 10[DeviceA-vlan10] quit[DeviceA] interface gigabitethernet 1/0/1[DeviceA- GigabitEthernet1/0/1] port link-type hybrid[DeviceA- GigabitEthernet1/0/1] port hybrid vlan 5 10 tagged[DeviceA- GigabitEthernet1/0/1] quit

配置思路 system-view[Sysname] vlan 10[Sysname-vlan10] quit[Sysname] interface vlan-interface 10[Sysname-Vlan-interface10] ip address 10.0.0.1 255.255.255.0[Sysname-Vlan-interface10] local-proxy-arp enable[Sysname-Vlan-interface10] quit[Sysname] vlan 2[Sysname-vlan2] port gigabitethernet 1/0/1 gigabitethernet 1/0/2[Sysname-vlan2] quit[Sysname] vlan 3[Sysname-vlan3] port gigabitethernet 1/0/3 gigabitethernet 1/0/4[Sysname-vlan3] quit[Sysname] vlan 5[Sysname-vlan5] port gigabitethernet 1/0/5 gigabitethernet 1/0/6[Sysname-vlan5] quit[Sysname] vlan 10[Sysname-vlan10] supervlan[Sysname-vlan10] subvlan 235[Sysname-vlan10] quit[Sysname] quit

查看supvlan配置


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:JAVA构造函数(方法)示例详解
下一篇:HTTP协议简介
相关文章

 发表评论

暂时没有评论,来抢沙发吧~