network 12.0.0.0
default-information originate
no auto-summary
r1#sh ip rou
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial1/0
R* 0.0.0.0/0 [120/1] via 12.0.0.2, 00:00:09, Serial1/0 这是R1上产生一条默认路由 r1#ping 23.0.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 23.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/41/68 ms
此外,在default-information originate可以调用一个route-map来匹配一个接口或路由,当这个路由有效的时候才会传递默认路由。首先我们在R2上建立一个loopback接口,并将它宣告到RIP中,然后用ACL来匹配这个接口,建立route-map调用这个ACL,最后在 default-information originate命令后调用这个route-map
R2
int lo0
ip add 2.2.2.2 255.255.255.0
no sh
exit
access-list 1 permit 2.2.2.2
route-map WY permit 10
match ip address 1
router rip
version 2
network 2.0.0.0
network 12.0.0.0
default-information originate route-map WY
no auto-summary
r1#sh ip rou
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
R 2.2.2.2 [120/1] via 12.0.0.2, 00:00:02, Serial1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial1/0
R* 0.0.0.0/0 [120/1] via 12.0.0.2, 00:00:02, Serial1/0 /这时R2向R1传递了一条默认路由
r2(config)#int lo0
r2(config-if)#shutdown /这时我们将loopback接口关闭
r1#sh ip rou
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial1/0
这时,R2不向R1传递默认路由,因为loopback接口关闭,ACL失效,route-map失效,所以 default-information originate命令不执行
RIP传递默认路由的5种方法_计算机硬件及网络_IT/计算机_专业资料。RIP 传递...同样最后在 R2 的 RIP 进程中 的 default-information originate 命令后面调用...
介绍rip介绍rip隐藏>> RIP 传递默认路由方法 (共5种) 图:关于传递默认路由的实验都是以下这个图 RIP 传递默认理由方法 1:default-information originate R1: ...
向 RIP 网络注入默认路由的三种方法; 静态路由 2、 IP DEFAULT-NETWORK 命令特征; 3、 重分布静态路由到 RIP 网络; 4、 DEFAULT-INFORMATION ORIGINATE 命令...
在 RIP 中,默认路由采用 default-information originate 方式向其他路由器注入。 2。在 OSPF 中,分几种情况: ⑴向常规区域中注入默认路由,采用 default-information...
最好在 或哪一组路由器上配置默认路由并使用 default-information originate 命令...debug ip rip show ip route show ip interface show ip protocols debug ip ...
在 RIP 中,默认路由采用 default-information originate 方式向其他路由 器注入。 2。在 OSPF 中,分几种情况: ⑴向常规区域中注入默认路由,采用 default-...
RIP 默认路由下放(5 种) 1、default-information originate---推荐方法 Router rip Default-intformation originate---进城下直接下放默认路由 ! Show ip route 2...
4、清除启动配置并将路由器重新加载为默认状态。 5、配置路由器使用RIPv2版本。...HQ(config-router)#default-information originate 将0.0.0.0/0静态 默认通告...
在路由器 R3 上启用默认路由,让内部网络可以访问 Internet。 命令:R3(config)#router rip R3(config-router)#default-information originate 6. 在路由器 R1 ...
热门文档