R1配置:
en
conf t
ho R1
no ip do lo
lin con 0
no exec-t
logg syn
exit
int f0/0
no shutdown
ip add 192.168.0.2 255.255.255.252
int f1/0
no shutdown
ip add 192.168.0.6 255.255.255.252
int f2/0
no shutdown
ip add 192.168.0.10 255.255.255.252
ip route 192.168.4.0 255.255.255.0 192.168.0.1
ip route 192.168.6.0 255.255.255.0 192.168.0.5
ip route 192.168.128.0 255.255.252.0 192.168.0.9
R2配置:
en
conf t
ho R1
no ip do lo
lin con 0
no exec-t
logg syn
exit
int f0/0
no shutdown
ip add 192.168.0.1 255.255.255.252
int lo0
ip add 192.168.4.1 255.255.255.192
int lo1
ip add 192.168.4.65 255.255.255.192
int lo2
ip add 192.168.4.129 255.255.255.224
ip route 0.0.0.0 0.0.0.0 192.168.0.2
R3配置:
en
conf t
ho R1
no ip do lo
lin con 0
no exec-t
logg syn
exit
int f0/0
no shutdown
ip add 192.168.0.5 255.255.255.252
int lo0
ip add 192.168.6.1 255.255.255.128
int lo1
ip add 192.168.6.129 255.255.255.224
ip route 0.0.0.0 0.0.0.0 192.168.0.6
R4配置:
en
conf t
ho R1
no ip do lo
lin con 0
no exec-t
logg syn
exit
int f0/0
no shutdown
ip add 192.168.0.9 255.255.255.252
int lo0
ip add 192.168.128.1 255.255.255.0
int lo1
ip add 192.168.130.1 255.255.255.0
ip route 0.0.0.0 0.0.0.0 192.168.0.10
最后结果如下图:
全通,实验完毕。