跨交换机实现vlan间通信

来源:互联网 发布:ipad淘宝清除缓存 编辑:程序博客网 时间:2024/05/16 01:20

1、三层二层交换机配置冗余链路聚合

conf

int range f 0/1-2

port-group 1

exit

show aggregateport 1 summary   显示ap信息

三层交换机

int aggregateport 1         将ap配置成TAG vlan模式

sw mode trunk

exit

二层交换机

int aggregateport 1

sw mode trunk

exit

 

 

实现vlan 间通信

 

三层交换机

conf

int vlan 10

ip add 172.16.10.254 255.255.255.0

no sh

exit

int vlan 20

ip add192.16.20.254 255.255.255.0

no shu

end

 

 

show ip interface

ip routing    启用路由

show ip route

 

pc1 172.168.10.10 255.255.255.0172.16.10.254

pc2 172.168.20.20 255.255.255.0172.16.20.254

pc3 172.168.10.30 255.255.255.0172.16.10.254

pc4 172.168.20.40 255.255.255.0172.16.20.254

 

验证不同vlan内的主机互相ping通

在pc1上执行172.16.10.30-t,在执行过程中断开交换机的一条链路,接上该链路后在ping情况!