RIP V2配置
r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.0.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.60.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.110.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.120.1 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.0.1
network 192.168.60.1
network 192.168.110.2
network 192.168.120.1
end
write
show ip route
 
r2配置
enable
conf t
host r2
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.10.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.60.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.70.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.130.2 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.10.1
network 192.168.60.2
network 192.168.70.1
network 192.168.130.2
end
write
show ip route

r3配置
enable
conf t
host r3
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.20.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.80.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.70.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.140.2 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.20.1
network 192.168.70.2
network 192.168.80.1
network 192.168.140.2
end
write
show ip route

r4配置
enable
conf t
host r4
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.30.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.80.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.90.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.120.2 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.30.1
network 192.168.80.2
network 192.168.90.2
network 192.168.120.2
end
write
show ip ro
 
r5配置
enable
conf t
host r5
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.40.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.100.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.90.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.130.1 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.40.1
network 192.168.100.2
network 192.168.90.1
network 192.168.130.1
end
write
show ip route

r6配置
enable
conf t
host r6
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.50.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.100.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.110.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.140.1 255.255.255.0
no shut
exit
router rip
vers 2
no auto-s
network 192.168.50.1
network 192.168.100.1
network 192.168.110.1
network 192.168.140.1
end
write
show ip route
 

vpc配置
ip 192.168.0.2 192.168.0.1 24
2
ip 192.168.10.2 192.168.10.1 24
3
ip 192.168.20.2 192.168.20.1 24
4
ip 192.168.30.2 192.168.30.1 24
5
ip 192.168.40.2 192.168.40.1 24
6
ip 192.168.50.2 192.168.50.1 24
 

静态路由配置
r1配置
enable
conf t
host r1
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.0.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.60.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.110.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.120.1 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.60.2
ip route 192.168.10.0 255.255.255.0 192.168.60.2
ip route 192.168.70.0 255.255.255.0 192.168.60.2
ip route 192.168.20.0 255.255.255.0 192.168.60.2
ip route 192.168.30.0 255.255.255.0 192.168.120.2
ip route 192.168.80.0 255.255.255.0 192.168.120.2
ip route 192.168.90.0 255.255.255.0 192.168.120.2
ip route 192.168.50.0 255.255.255.0 192.168.110.1
ip route 192.168.100.0 255.255.255.0 192.168.110.1
ip route 192.168.40.0 255.255.255.0 192.168.110.1
ip route 192.168.140.0 255.255.255.0 192.168.110.1
ip route 192.168.130.0 255.255.255.0 192.168.110.1
end
wr
 

r2配置
enable
conf t
host r2
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.10.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.60.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.70.1 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.130.2 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.70.2
ip route 192.168.0.0 255.255.255.0 192.168.60.1
ip route 192.168.110.0 255.255.255.0 192.168.60.1
ip route 192.168.120.0 255.255.255.0 192.168.60.1
ip route 192.168.50.0 255.255.255.0 192.168.60.1
ip route 192.168.20.0 255.255.255.0 192.168.70.2
ip route 192.168.140.0 255.255.255.0 192.168.70.2
ip route 192.168.80.0 255.255.255.0 192.168.70.2
ip route 192.168.40.0 255.255.255.0 192.168.130.1
ip route 192.168.100.0 255.255.255.0 192.168.130.1
ip route 192.168.90.0 255.255.255.0 192.168.130.1
ip route 192.168.30.0 255.255.255.0 192.168.130.1
end
wr

r3配置
enable
conf t
host r3
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.20.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.80.1 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.70.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.140.2 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.80.2
ip route 192.168.30.0 255.255.255.0 192.168.80.2
ip route 192.168.90.0 255.255.255.0 192.168.80.2
ip route 192.168.120.0 255.255.255.0 192.168.80.2
ip route 192.168.10.0 255.255.255.0 192.168.70.1
ip route 192.168.60.0 255.255.255.0 192.168.70.1
ip route 192.168.130.0 255.255.255.0 192.168.70.1
ip route 192.168.50.0 255.255.255.0 192.168.140.1
ip route 192.168.100.0 255.255.255.0 192.168.140.1
ip route 192.168.110.0 255.255.255.0 192.168.140.1
ip route 192.168.120.0 255.255.255.0 192.168.140.1
ip route 192.168.130.0 255.255.255.0 192.168.140.1
end
wr

r4配置
enable
conf t
host r4
no ip do lo
line c 0
logg sy
exit
int e0/0
ip add 192.168.30.1 255.255.255.0
no shut
exit
int e0/1
ip add 192.168.80.2 255.255.255.0
no shut
exit
int e0/2
ip add 192.168.90.2 255.255.255.0
no shut
exit
int e0/3
ip add 192.168.120.2 255.255.255.0
no shut
exit
ip route 0.0.0.0 0.0.0.0 192.168.90.1
ip route 192.168.40.0 255.255.255.0 192.168.90.1
ip route 192.168.100.0 255.255.255.0 192.168.90.1
ip route 192.168.130.0 255.255.255.0 192.168.90.1
ip route 192.168.50.0 255.255.255.0 192.168.90.1
ip route 192.168.0.0 255.255.255.0 192.168.120.1
ip route 192.168.110.0 255.255.255.0 192.168.120.1
ip route 192.168.60.0 255.255.255.0 192.168.120.1
ip route 192.168.20.0 255.255.255.0 192.168.80.1
ip route 192.168.10.0 255.255.255.0 192.168.80.1
ip route 192.168.140.0 255.255.255.0 192.168.80.1
ip route 192.168.130.0 255.255.255.0 192.168.80.1
end
wr