查看完整版本: ip default-network在EIGRP中的应用[文档] 默认路由系列4/5

外表坚强 2007-11-10 09:23

ip default-network在EIGRP中的应用[文档] 默认路由系列4/5

[b][size=15pt][font=Times New Roman]ip default-network[/font][/size][/b][b][font=宋体][size=15pt]在[/size][/font][/b][b][size=15pt][font=Times New Roman]EIGRP[/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]4/5[/font][/size][/b]
[b][size=12pt][font=Times New Roman] [/font][/size][/b]
[u][size=12pt][font=Times New Roman][img=503,255]http://www.one-tom.com/bbs/uploads/20070330_100141_XY009.png[/img][/font][/size][/u]
[u][size=12pt][font=Times New Roman] [/font][/size][/u]
[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]ip default-network [[/font][/size][font=宋体][size=12pt]直链网络主网号[/size][/font][size=12pt][font=Times New Roman]] [/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]IGRP[/font][/size][font=宋体][size=12pt]协议下,这不足以让他们通告出默认路由。[/size][/font][size=12pt][/size]
[font=宋体][size=12pt]以下以[/size][/font][size=12pt][font=Times New Roman]EIGRP[/font][/size][font=宋体][size=12pt]为例:[/size][/font][size=12pt][/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 : 953 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 FastEthernet0/0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 112.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 eigrp 100[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
network 112.0.0.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
auto-summary[/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 : 1043 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 FastEthernet0/0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
ip address 112.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 eigrp 100[/font][/size][/b]
[font=Times New Roman][b][size=12pt]
network 23.0.0.0
[/size][/b][size=12pt]
//EIGRP[/size][/font][font=宋体][size=12pt]与[/size][/font][size=12pt][font=Times New Roman]RIP[/font][/size][font=宋体][size=12pt]的不同[/size][/font][size=12pt][/size]
[b][size=12pt][font=Times New Roman]
network 112.0.0.0[/font][/size][/b]
[b][size=12pt][font=Times New Roman]
auto-summary[/font][/size][/b]
[b][size=12pt][font=Times New Roman]!
[color=blue]
[/color][/font][/size][/b]
[b][size=12pt][font=Times New Roman]ip default-network 23.0.0.0[/font][/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][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]
[size=12pt][font=Times New Roman] [/font][/size]
[font=宋体][size=12pt]在[/size][/font][size=12pt][font=Times New Roman]R2 [/font][/size][font=宋体][size=12pt]上[color=red]没有[/color]配置[/size][/font][b][size=12pt][font=Times New Roman]network 23.0.0.0[/font][/size][/b][font=宋体][size=12pt]的时候,[/size][/font][size=12pt][font=Times New Roman]R1[/font][/size][font=宋体][size=12pt]的路由表[/size][/font][size=12pt][/size]
[size=12pt][font=Times New Roman]R1#show ip ro[/font][/size]
[size=12pt][font=Times New Roman]Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP[/font][/size]
[size=12pt][font=Times New Roman]
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area [/font][/size]
[size=12pt][font=Times New Roman]
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2[/font][/size]
[size=12pt][font=Times New Roman]
E1 - OSPF external type 1, E2 - OSPF external type 2[/font][/size]
[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]
[size=12pt][font=Times New Roman]
ia - IS-IS inter area, * - candidate default, U - per-user static route[/font][/size]
[size=12pt][font=Times New Roman]
o - ODR, P - periodic downloaded static route[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]Gateway of last resort is not set[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]
1.0.0.0/24 is subnetted, 1 subnets[/font][/size]
[size=12pt][font=Times New Roman]C
1.1.1.0 is directly connected, Loopback0[/font][/size]
[size=12pt][font=Times New Roman]
112.0.0.0/24 is subnetted, 1 subnets[/font][/size]
[size=12pt][font=Times New Roman]C
112.1.1.0 is directly connected, FastEthernet0/0[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]R2[/font][/size][font=宋体][size=12pt]的路由表为[/size][/font][size=12pt][/size]
[size=12pt][font=Times New Roman]R2#show ip ro[/font][/size]
[size=12pt][font=Times New Roman]Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP[/font][/size]
[size=12pt][font=Times New Roman]
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area [/font][/size]
[size=12pt][font=Times New Roman]
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2[/font][/size]
[size=12pt][font=Times New Roman]
E1 - OSPF external type 1, E2 - OSPF external type 2[/font][/size]
[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]
[size=12pt][font=Times New Roman]
ia - IS-IS inter area, * - candidate default, U - per-user static route[/font][/size]
[size=12pt][font=Times New Roman]
o - ODR, P - periodic downloaded static route[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]Gateway of last resort is 23.1.1.3 to network 0.0.0.0[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]
2.0.0.0/24 is subnetted, 1 subnets[/font][/size]
[size=12pt][font=Times New Roman]C
2.2.2.0 is directly connected, Loopback0[/font][/size]
[size=12pt][font=Times New Roman]
[color=red]*
23.0.0.0/24 is subnetted, 1 subnets
[/color]
[color=red]
//[/color][/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][/size]
[size=12pt][font=Times New Roman]C
23.1.1.0 is directly connected, Serial1/1[/font][/size]
[size=12pt][font=Times New Roman]
112.0.0.0/24 is subnetted, 1 subnets[/font][/size]
[size=12pt][font=Times New Roman]C
112.1.1.0 is directly connected, FastEthernet0/0[/font][/size]
[size=12pt][font=Times New Roman]S*
0.0.0.0/0 [1/0] via 23.1.1.3[/font][/size]
[b][size=12pt][font=Times New Roman]-------------------------------------------------------------------------------------------------------[/font][/size][/b]
[size=12pt][font=Times New Roman] [/font][/size]
[font=宋体][size=12pt]配置了后[/size][/font][size=12pt][font=Times New Roman]R1[/font][/size][font=宋体][size=12pt]路由表为[/size][/font][size=12pt][/size]
[size=12pt][font=Times New Roman]R1#show ip ro[/font][/size]
[size=12pt][font=Times New Roman]Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP[/font][/size]
[size=12pt][font=Times New Roman]
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area [/font][/size]
[size=12pt][font=Times New Roman]
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2[/font][/size]
[size=12pt][font=Times New Roman]
E1 - OSPF external type 1, E2 - OSPF external type 2[/font][/size]
[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]
[size=12pt][font=Times New Roman]
ia - IS-IS inter area, * - candidate default, U - per-user static route[/font][/size]
[size=12pt][font=Times New Roman]
o - ODR, P - periodic downloaded static route[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]Gateway of last resort is 112.1.1.2 to network 23.0.0.0[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]
1.0.0.0/24 is subnetted, 1 subnets[/font][/size]
[size=12pt][font=Times New Roman]C
1.1.1.0 is directly connected, Loopback0[/font][/size]
[size=12pt][font=Times New Roman]D*
23.0.0.0/8 [90/2172416] via 112.1.1.2, 00:27:11, FastEthernet0/0[/font][/size]
[size=12pt][font=Times New Roman]
112.0.0.0/24 is subnetted, 1 subnets[/font][/size]
[size=12pt][font=Times New Roman]C
112.1.1.0 is directly connected, FastEthernet0/0[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[font=宋体][size=12pt]配置后的[/size][/font][size=12pt][font=Times New Roman]R2[/font][/size][font=宋体][size=12pt]路由表为[/size][/font][size=12pt][/size]
[size=12pt][font=Times New Roman]R2#show ip ro[/font][/size]
[size=12pt][font=Times New Roman]Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP[/font][/size]
[size=12pt][font=Times New Roman]
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area [/font][/size]
[size=12pt][font=Times New Roman]
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2[/font][/size]
[size=12pt][font=Times New Roman]
E1 - OSPF external type 1, E2 - OSPF external type 2[/font][/size]
[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]
[size=12pt][font=Times New Roman]
ia - IS-IS inter area, * - candidate default, U - per-user static route[/font][/size]
[size=12pt][font=Times New Roman]
o - ODR, P - periodic downloaded static route[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]Gateway of last resort is 23.1.1.3 to network 0.0.0.0[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]
2.0.0.0/24 is subnetted, 1 subnets[/font][/size]
[size=12pt][font=Times New Roman]C
2.2.2.0 is directly connected, Loopback0[/font][/size]
[font=Times New Roman][size=12pt]
[/size][size=12pt]*
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks[/size][/font]
[size=12pt][font=Times New Roman]C
23.1.1.0/24 is directly connected, Serial1/1[/font][/size]
[font=Times New Roman][size=12pt]D*
23.0.0.0/8 is a summary, 00:28:39, Null0
[/size][size=12pt]//[/size][/font][font=宋体][size=12pt]由[/size][/font][size=12pt][font=Times New Roman]network 23.0.0.0[/font][/size][font=宋体][size=12pt]产生[/size][/font][size=12pt][/size]
[size=12pt][font=Times New Roman]
112.0.0.0/8 is variably subnetted, 2 subnets, 2 masks[/font][/size]
[size=12pt][font=Times New Roman]C
112.1.1.0/24 is directly connected, FastEthernet0/0[/font][/size]
[size=12pt][font=Times New Roman]D
112.0.0.0/8 is a summary, 00:28:39, Null0[/font][/size]
[size=12pt][font=Times New Roman]S*
0.0.0.0/0 [1/0] via 23.1.1.3[/font][/size]
[size=12pt][font=Times New Roman] [/font][/size]
[size=12pt][font=Times New Roman]
[size=12pt]R1#ping 3.3.3.3[/size]
[size=12pt] [/size]
[size=12pt]Type escape sequence to abort.[/size]
[size=12pt]Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:[/size]
[size=12pt]!!!!![/size]
[size=12pt]Success rate is 100 percent (5/5), round-trip min/avg/max = 64/96/180 ms[/size]
[/font][/size]

kurt 2007-11-11 00:20

虽然是CISCO的东西,呵呵,还是能学到不少东西,谢谢
页: [1]
查看完整版本: ip default-network在EIGRP中的应用[文档] 默认路由系列4/5