标签:term 技术分享 ping type deb 三层交换 huawei 分享图片 shadow
[sw1]Vlan batch 1 2 3
[Sw1]Int e0/0/1
[sw1-Ethernet0/0/1]Port link-type access
[sw1-Ethernet0/0/1]Port default 1
[sw1]Int vlan 10
[sw1-Vlanif1]Ip address 192.168.1 254 24
[sw1]int e0/0/2
[sw1-Ethernet0/0/2]port link-type access
[sw1-Ethernet0/0/2]port default vlan 2
[sw1]int vlan 2
[sw1-Vlanif2]ip adderss 192.168.2.254 24
[sw]int e0/0/3
[sw1-Ethernet0/0/3]port link-type access
[sw1-Ethernet0/0/3]port default vlan 3
[sw]int vlan 3
[sw1-Vlanif2]ip address 192.168.3.254 24
[sw]int e0/0/4
[sw1-Ethernet0/0/4]port link-type trunk
[sw1-Ethernet0/0/4]port trunk allow-pass vlan all
下面配置三层交换
[huawei]sysname sw2
[Sw2]vlan batch 1 to 3
[sw]int g0/0/1
[sw2-GigabitEthernet0/0/1]port link-type trunk
[sw2-GigabitEthernet0/0/1]port trunk allow-pass vlan 1 2 3
[sw2]int vlan 1
[sw2-Vlanif1]ip address 192.168.1.254 24
[sw]int vlan 2
[sw2-Vlanif2]ip address 192.168.2.254 24
[sw2]int vlan 3
[sw1-Vlanif3]ip add 192.168.3.254 24
下面用pc机192.168.1.1 ping pc2 和pc3验证是否能ping通
标签:term 技术分享 ping type deb 三层交换 huawei 分享图片 shadow
原文地址:http://blog.51cto.com/13935936/2299000