拓扑图:
配置文件:
CE1
#
interface Eth-Trunk1
undo portswitch
ip address 10.1.1.1 255.255.255.0
#
interface GE1/0/0
undo shutdown
eth-trunk 1
#
interface GE1/0/1
undo shutdown
eth-trunk 1
#
interface GE1/0/2
undo shutdown
eth-trunk 1
#
interface LoopBack0
ip address 192.168.1.10 255.255.255.0
#
ip route-static 192.168.2.0 255.255.255.0 10.1.1.2
#
[~sw1]ping -a 192.168.1.10 192.168.2.20
CE2
#
interface Eth-Trunk1
undo portswitch
ip address 10.1.1.2 255.255.255.0
#
interface GE1/0/0
undo shutdown
eth-trunk 1
#
interface GE1/0/1
undo shutdown
eth-trunk 1
#
interface GE1/0/2
undo shutdown
eth-trunk 1
#
interface LoopBack0
ip address 192.168.2.20 255.255.255.0
#
ip route-static 192.168.1.0 255.255.255.0 10.1.1.1
#
[~sw2]ping -a 192.168.2.20 192.168.1.10