SwitchB:
system-view
vlan 500
vlan 600
vlan 100
quit
interface vlan 500
ip address 1.1.4.2 30
quit
interface vlan 600
ip address 1.1.5.5 30
quit
quitinterface vlan 100
ip address 1.1.6.1 24
quit
interface GigabitEthernet 1/0/11
port access vlan 500
quit
interface GigabitEthernet 1/0/16
port access vlan 600
quit
interface GigabitEthernet 1/0/1
port access vlan 100
quit
ip route-static 1.1.2.0 255.255.255.0 1.1.4.1
ip route-static 1.1.3.0 255.255.255.0 1.1.5.6
SwitchC:
system-view
vlan 600
vlan 900
quit
interface vlan 600
ip address 1.1.5.6 30
quit
interface vlan 900
ip address 1.1.3.1 24
quit
interface GigabitEthernet 1/0/16
port access vlan 600
quit
interface GigabitEthernet 1/0/1
port access vlan 900
quit
ip route-static 0.0.0.0 0.0.0.0 1.1.5.5
测试结果
原文:https://blog.51cto.com/14220780/2391768