首页 > 系统服务 > 详细

cisco-static route

时间:2021-05-21 23:55:33      阅读:34      评论:0      收藏:0      [点我收藏+]

静态路由 static route

 

技术分享图片

 

 

 

R1:

configure terminal

interface FastEthernet0/0

ip address 1.1.1.1 255.255.255.0

no shutdown

end

 

configure terminal

interface loopback 0

ip address 2.2.2.2 255.255.255.0

end

 

 

R2:

configure terminal

interface FastEthernet0/0

ip address 1.1.1.2 255.255.255.0

no shutdown

end

 

configure terminal

interface loopback 0

ip address 3.3.3.3 255.255.255.0

end

 

 

 

 

配置上述后,还需要配置静态路由,否则从R1无法ping通对端的3.3.3.3,或者从R2无法ping通对端的2.2.2.2

 

R1:

 

configure terminal

ip route 0.0.0.0 0.0.0.0 1.1.1.2

end

 


R1#ping 3.3.3.3
Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/29/36 ms
R1#

 

 

R2:

configure terminal

ip route 0.0.0.0 0.0.0.0 1.1.1.1

end

 


R2#ping 2.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/33/44 ms
R2#

 

R1和R2基本配置完成。

 

cisco-static route

原文:https://www.cnblogs.com/chun2021/p/14797634.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!