静态路由生效条件及loopback通信

来源:互联网 发布:淘宝都是假货吗 编辑:程序博客网 时间:2024/03/29 00:48

试验目的:验证静态路由生效及loopback地址通信

试验拓扑:


AR1 配置:

interface GigabitEthernet0/0/1
 ip address 10.0.0.9 255.0.0.0 
#
interface NULL0
#
interface LoopBack1
 ip address 1.1.1.1 255.0.0.0 
#

#
ip route-static 2.2.2.2 255.255.255.255 GigabitEthernet0/0/1
#

LSW1配置:

interface Vlanif1
 ip address 10.0.0.8 255.0.0.0

interface LoopBack2
 ip address 2.2.2.2 255.255.255.255
#
ip route-static 1.0.0.0 255.0.0.0 10.0.0.9

------------------------------------------------------------------------------

试验得出结论:

只有配置 vlanif 接口地址后,LSW1上才有到1.0.0.0/8的路由。说明下一跳可达时静态路由才会生效。


0 0
原创粉丝点击