交换机间相同vlan通信

2024-10-11 23:41:09

1、要求:1.配置好PC计算机IP和子网掩码。2.把Fa0/1端口划分给valn10,Fa0/2端口划分给vlan20。3.pc1能ping通pc3。

交换机间相同vlan通信交换机间相同vlan通信交换机间相同vlan通信

4、验证配置:Switch#show vlan查看接口加入到的vlan

交换机间相同vlan通信

6、验证配置:Switch#show vlan查看接口加入到的vlan

交换机间相同vlan通信

8、pc1能ping通pc3。Swit罕铞泱殳ch-A(左)Switch>enabSwitch#conf tE荏鱿胫协nter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g0/1 Switch(config-if)#swit mode trunk 把g0/1端口设置为:trunk模式

交换机间相同vlan通信

9、Switch-B(右)Switch>enabSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g0/1 Switch(config-if)#swit mode trunk 把g0/1端口设置为:trunk模式

交换机间相同vlan通信

10、验证结果:

交换机间相同vlan通信
猜你喜欢