实验环境:华为模拟器 1. 配置pc机ip(192.168.10.1 192.168.20.1 192.168.10.2 192.168.20.2),子掩:255.255.255.0 2,给交换机添加vlan10,VLAN20, vlan 10 quit Vlan 20 Quit Interface g0/0/1 Port link-type access Port default vlan 10 Quit Interface g0/0/2 Port link-type access Port access vlan 20 配置交换机2 vlan 10 Quit Vlan 20 Quit interface g0/0/1 Port link-type access Port default vlan 10 Quit Intface g0/0/2 Port link-type access Port default vlan 20 Quit 3,配置trunk 链路 在交换机2上, Interface g0/0/24 Port link-type trunk Port trunk allow-pass vlan all 在交换机1上 Interface g0/0/24 Port link-type trunk Port trunk allow-paas vlan 4,验证:ping192.168.10.2 配置 Trunk链路思路:(华为) |
原文地址:http://blog.51cto.com/13555654/2059683