vlan交换机配置上网

区别于前文,先按图配置好IP和VLAN

A:

Switch(config)#ip route 192.168.30.0 255.255.255.0 192.168.2.2

Switch(config)#ip route 192.168.40.0 255.255.255.0 192.168.2.2

缺省路由

Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1

B:

Switch(config)#ip route 192.168.10.0 255.255.255.0 192.168.2.1

Switch(config)#ip route 192.168.20.0 255.255.255.0 192.168.2.1

Switch(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1

缺省路由

Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.1

Route:

Switch(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.2

Switch(config)#ip route 192.168.10.0 255.255.255.0 192.168.1.2

Switch(config)#ip route 192.168.20.0 255.255.255.0 192.168.1.2

Switch(config)#ip route 192.168.30.0 255.255.255.0 192.168.1.2

Switch(config)#ip route 192.168.40.0 255.255.255.0 192.168.1.2

猜你喜欢

转载自www.cnblogs.com/daidai114/p/9098079.html