您的位置:首页 > 其它

静态路由配置示例_难点

2008-09-17 12:44 417 查看
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

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
ip route 0.0.0.0 0.0.0.0 192.168.100.1
ip route 192.168.50.0 255.255.255.0 192.168.100.1
ip route 192.168.110.0 255.255.255.0 192.168.100.1
ip route 192.168.0.0 255.255.255.0 192.168.100.1
ip route 192.168.10.0 255.255.255.0 192.168.130.2
ip route 192.168.60.0 255.255.255.0 192.168.130.2
ip route 192.168.70.0 255.255.255.0 192.168.130.2
ip route 192.168.30.0 255.255.255.0 192.168.190.2
ip route 192.168.80.0 255.255.255.0 192.168.190.2
ip route 192.168.40.0 255.255.255.0 192.168.190.2
ip route 192.168.140.0 255.255.255.0 192.168.100.1
ip route 192.168.130.0 255.255.255.0 192.168.90.2
end
wr

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
ip route 0.0.0.0 0.0.0.0 192.168.110.2
ip route 192.168.0.0 255.255.255.0 192.168.110.2
ip route 192.168.60.0 255.255.255.0 192.168.110.2
ip route 192.168.120.0 255.255.255.0 192.168.110.2
ip route 192.168.40.0 255.255.255.0 192.168.100.2
ip route 192.168.130.0 255.255.255.0 192.168.100.2
ip route 192.168.90.0 255.255.255.0 192.168.100.2
ip route 192.168.20.0 255.255.255.0 192.168.140.2
ip route 192.168.70.0 255.255.255.0 192.168.140.2
ip route 192.168.10.0 255.255.255.0 192.168.140.2
ip route 192.168.80.0 255.255.255.0 192.168.140.2
ip route 192.168.30.0 255.255.255.0 192.168.140.2
end
wr

附件:http://down.51cto.com/data/2350635
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息