查看完整版本: ip default-information originate 通告默认路由

为之山 2007-11-12 12:53

ip default-information originate 通告默认路由

[b][size=15pt][font=Times New Roman]ip default-information originate [/font][/size][/b][b][font=宋体][size=15pt]通告默认路由[/size][/font][/b][b][size=15pt][font=Times New Roman][[/font][/size][/b][b][font=宋体][size=15pt]文档[/size][/font][/b][b][size=15pt][font=Times New Roman]]
[/font][/size][/b][b][font=宋体][size=15pt]默认路由系列文档[/size][/font][/b][b][size=15pt][font=Times New Roman]5/5[/font][/size][/b]
[size=12pt][font=Times New Roman] [/font][/size]
[u][size=12pt][font=Times New Roman][img=430,250]http://www.one-tom.com/bbs/uploads/20070331_110959_XY008.png[/img][/font][/size][/u]
[size=12pt][font=Times New Roman] [/font][/size]
[font=宋体][size=12pt]在[/size][/font][size=12pt][font=Times New Roman]OSPF/ISIS[/font][/size][font=宋体][size=12pt]中,[/size][/font][size=12pt][font=Times New Roman]ip default-network[/font][/size][font=宋体][size=12pt]无效。我们用[/size][/font][size=12pt][font=Times New Roman]ip default-information originate[/font][/size][font=宋体][size=12pt]来通告默认路由,在高版本的[/size][/font][size=12pt][font=Times New Roman]IOS[/font][/size][font=宋体][size=12pt]中[/size][/font][size=12pt][font=Times New Roman]RIP[/font][/size][font=宋体][size=12pt]也可以使用这条命令,但[/size][/font][size=12pt][font=Times New Roman]EIGRP[/font][/size][font=宋体][size=12pt]不可以。以[/size][/font][size=12pt][font=Times New Roman]OSPF[/font][/size][font=宋体][size=12pt]为例:[/size][/font][size=12pt][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[b][size=12pt][font=Times New Roman]-------------------------------------------------------------------------------------------------------[/font][/size][/b]
[b][size=12pt][font=Times New Roman]R1#show run[/font][/size][/b]
[b][size=12pt][font=Times New Roman]Building configuration...[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman]Current configuration : 975 bytes[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]version 12.3[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]hostname R1[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]interface Loopback0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 1.1.1.1 255.255.255.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]interface Serial1/0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 12.1.1.1 255.255.255.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]router ospf 10[/font][/size][/b]
[b][size=12pt][font=Times New Roman]network 12.1.1.0 0.0.0.255 area 0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]!
[/font][/size][/b]
[b][size=12pt][font=Times New Roman]end[/font][/size][/b]
[b][size=12pt][font=Times New Roman]-------------------------------------------------------------------------------------------------------[/font][/size][/b]
[b][size=12pt][font=Times New Roman]R2#show run[/font][/size][/b]
[b][size=12pt][font=Times New Roman]Building configuration...[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman]Current configuration : 1057 bytes[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]version 12.3[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]hostname R2[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]interface Loopback0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 2.2.2.2 255.255.255.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]interface Serial1/0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 12.1.1.2 255.255.255.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]interface Serial1/1[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 23.1.1.2 255.255.255.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]router ospf 10[/font][/size][/b]
[b][size=12pt][font=Times New Roman]network 12.1.1.0 0.0.0.255 area 0[/font][/size][/b]
[font=Times New Roman][b][size=12pt]
default-information originate always
[/size][/b][b][size=12pt]//[/size][/b][/font][font=宋体][size=12pt]发布默认路由,加上参数[/size][/font][size=12pt][font=Times New Roman] [always][b][/b][/font][/size]
[font=Times New Roman][b][size=12pt]!
[/size][/b][size=12pt]
//[/size][/font][font=宋体][size=12pt]作用是[/size][/font][size=12pt][font=Times New Roman] [/font][/size][font=宋体][size=12pt]当静态默认路由失效时,仍然[/size][/font][size=12pt][font=Times New Roman]//[/font][/size][font=宋体][size=12pt]通告默认路由[/size][/font][b][size=12pt][/size][/b]
[b][size=12pt][font=Times New Roman]ip route 0.0.0.0 0.0.0.0 23.1.1.3[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]end[/font][/size][/b]
[b][size=12pt][font=Times New Roman]-------------------------------------------------------------------------------------------------------[/font][/size][/b]
[b][size=12pt][font=Times New Roman]R3#show run[/font][/size][/b]
[b][size=12pt][font=Times New Roman]Building configuration...[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman]Current configuration : 934 bytes[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]version 12.3[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]hostname R3[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]interface Loopback0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 3.3.3.3 255.255.255.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]interface Serial1/0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 23.1.1.3 255.255.255.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]![/font][/size][/b]
[b][size=12pt][font=Times New Roman]ip route 0.0.0.0 0.0.0.0 23.1.1.2[/font][/size][/b]
[b][font=宋体][size=12pt]![/size][/font][/b][b][size=12pt][/size][/b]
[b][size=12pt][font=Times New Roman]end[/font][/size][/b]
[b][size=12pt][font=Times New Roman]-------------------------------------------------------------------------------------------------------[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman]R1# show ip ro[/font][/size][/b]
[b][size=12pt][font=Times New Roman]Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area [/font][/size][/b]
[b][size=12pt][font=Times New Roman]
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
E1 - OSPF external type 1, E2 - OSPF external type 2[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ia - IS-IS inter area, * - candidate default, U - per-user static route[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
o - ODR, P - periodic downloaded static route[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman]Gateway of last resort is 12.1.1.2 to network 0.0.0.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman]
1.0.0.0/24 is subnetted, 1 subnets[/font][/size][/b]
[b][size=12pt][font=Times New Roman]C
1.1.1.0 is directly connected, Loopback0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
12.0.0.0/24 is subnetted, 1 subnets[/font][/size][/b]
[b][size=12pt][font=Times New Roman]C
12.1.1.0 is directly connected, Serial1/0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]O*E2 0.0.0.0/0 [110/1] via 12.1.1.2, 00:17:47, Serial1/0[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman]R1#ping 3.3.3.3[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman]Type escape sequence to abort.[/font][/size][/b]
[b][size=12pt][font=Times New Roman]Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:[/font][/size][/b]
[b][size=12pt][font=Times New Roman]!!!!![/font][/size][/b]
[b][size=12pt][font=Times New Roman]Success rate is 100 percent (5/5), round-trip min/avg/max = 60/114/164 ms[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[font=宋体][size=15pt]稍后附上默认路由系列文档总结[/size][/font][size=15pt][/size]

独上西楼 2007-12-8 22:55

恩,又有一种新方法,可以选择性地做拉
页: [1]
查看完整版本: ip default-information originate 通告默认路由