cisco静态路由

拓扑图如下:

 

 

 

配置如下:

en
conf t
no ip domain-lookup
lin con 0
logg sync
exec-t 0 0
exi
end

 


R1
en
conf t
no ip domain-lookup
lin con 0
logg sync
exec-t 0 0
exi
end
en
conf t
host R1
int f0/1
ip add 192.168.2.1 255.255.255.0
no sh
int f0/0
ip add 192.168.1.1 255.255.255.0
no sh
int loopback 0
ip add 192.168.10.1 255.255.255.0
exi
ip route 192.168.20.0 255.255.255.0 192.168.1.2
ip route 192.168.30.0  255.255.255.0 192.168.2.2
ip route 192.168.3.0  255.255.255.0 192.168.2.2 50
ip route 192.168.3.0  255.255.255.0 192.168.1.2
exit

 

R2
en
conf t
no ip domain-lookup
lin con 0
logg sync
exec-t 0 0
exi
end
en
conf t
host R2
int f0/1
ip add 192.168.3.2 255.255.255.0
no sh
int f0/0
ip add 192.168.1.2 255.255.255.0
no sh
int loopback 0
ip add 192.168.20.1 255.255.255.0
exi
ip route 192.168.10.0 255.255.255.0 192.168.1.1
ip route 192.168.30.0  255.255.255.0 192.168.3.1
ip route 192.168.2.0  255.255.255.0 192.168.3.1 50
ip route 192.168.2.0  255.255.255.0 192.168.1.1
exit

 


R3
en
conf t
no ip domain-lookup
lin con 0
logg sync
exec-t 0 0
exi
end
en
conf t
host R3
int f0/1
ip add 192.168.2.2 255.255.255.0
no sh
int f0/0
ip add 192.168.3.1 255.255.255.0
no sh
int loopback 0
ip add 192.168.30.1 255.255.255.0
exi
ip route 192.168.10.0 255.255.255.0 192.168.2.1
ip route 192.168.20.0  255.255.255.0 192.168.3.2
ip route 192.168.1.0  255.255.255.0 192.168.3.2 50
ip route 192.168.1.0  255.255.255.0 192.168.2.1
exit

 

 最后结果是能实现全网互通。。。。。。

本文出自 “放飞希望” 博客,谢绝转载!

你可能感兴趣的:(职场,Cisco,休闲,静态路由)