静态路由配置示例_难点
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
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
相关文章推荐
- 静态路由配置示例
- VB中INI配置文件读写示例
- mysql安装后简单的配置(以5.6.22 x64为示例)
- 微软StockTrader 2.03 学习笔记(5)--配置服务实现示例指南(一)
- 在Juniper SRX系列防火墙上配置静态路由
- 微软StockTrader 2.03 学习笔记(6)--配置服务实现示例指南(二)
- Nginx 简单的负载均衡配置示例(转载)
- Juniper ScreenOS 基于Policy的源地址转换(NAT-SRC)配置示例
- maven的配置及示例
- Nginx反向代理配置示例
- 静态路由配置实验
- spring_webservice_rmi配置示例
- Tomcat server.xml配置示例
- H3C交换机基于端口VLAN的配置示例 推荐
- 零配置打包工具Parcel 快速入门 -- vue示例
- 配置 GG 安全 说明 与 示例
- NAT静态路由外网和内网配置(华为)
- 静态路由和缺省路由浮动路由的配置
- EIGRP在帧中继中的配置(完整示例)
- Mac High Sierra 配置永久静态路由