一、實驗環境
兩個路由器和兩臺PC機,並且實現兩臺PC機之間的互通,如下圖
二、操作腳本
1.在路由器R1中
R1#config terminal
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip add 12.0.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int f0/1
R1(config-if)#ip add 13.0.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#ip route 14.0.0.0 255.255.255.0 13.0.0.2
R1(config)#do show ip int b
R1(config)#do show ip route
2.在路由器R2中
R2#conf t
R2(config)#int f0/0
R2(config-if)#ip add 13.0.0.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int f0/1
R2(config-if)#ip add 14.0.0.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#ex
R2(config)#ip route 12.0.0.0 255.255.255.0 13.0.0.1
R2(config)#do show ip int b
R2(config)#do show ip route
3.在VPCS中
VPCS[1]> ip 12.0.0.2 12.0.0.1
VPCS[1]> 2
VPCS[2]> ip 14.0.0.2 14.0.0.1
VPCS[2]> ping 12.0.0.2
三、實驗操作步驟示圖
1.在路由器R1中
2.在路由器R2中
3.在VPCS中
四、實驗結果
兩臺PC機之間能互相ping通。