一、eigrp的默认路由
1.重分布静态路由
首先确保在R1上做一条静态默认路由,第二步将默认路由重分布到eigrp
ip route 0.0.0.0 0.0.0.0 s0/1
redistribute static
重分布之前
Gateway of last resort is not set
35.0.0.0/24 is subnetted, 1 subnets
C 35.1.1.0 is directly connected, Serial0/1
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Serial0/0
重分布以后
Gateway of last resort is 13.1.1.1 to network 0.0.0.0
35.0.0.0/24 is subnetted, 1 subnets
C 35.1.1.0 is directly connected, Serial0/1
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Serial0/0
D*EX 0.0.0.0/0 [170/2681856] via 13.1.1.1, 00:00:03, Serial0/0
2. network 0.0.0.0
在R1做默认路由,下一跳指向外网口;第二步network 0.0.0.0
Gateway of last resort is 13.1.1.1 to network 0.0.0.0
35.0.0.0/24 is subnetted, 1 subnets
C 35.1.1.0 is directly connected, Serial0/1
D 200.1.1.0/24 [90/2297856] via 13.1.1.1, 00:00:02, Serial0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Serial0/0
D* 0.0.0.0/0 [90/2297856] via 13.1.1.1, 00:00:02, Serial0/0
3.ip default-network
在全局下ip default-network 10.0.0.0
路由进程下network 10.0.0.0
本地有 10.0.0.0/8 的路由,用ip route 10.0.0.0 255.0.0.0
Gateway of last resort is not set
35.0.0.0/24 is subnetted, 1 subnets
C 35.1.1.0 is directly connected, Serial0/1
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D 10.1.1.0/24 [90/2297856] via 13.1.1.1, 00:00:29, Serial0/0
D* 10.0.0.0/8 [90/2169856] via 13.1.1.1, 00:00:01, Serial0/0
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Serial0/0
二、eigrp手工汇总
在接口下做手工汇总,路由传播方向的出接口做
在本地会自动产生一条空接口路由
汇总路由何时消息:当最后一条明细路由消息时才会消失
汇总的Metric值取明细路由中最小的值
在R3上看路由表
1.0.0.0/22 is subnetted, 1 subnets
D 1.1.0.0 [90/2297856] via 13.1.1.1, 00:00:03, Serial0/0
35.0.0.0/24 is subnetted, 1 subnets
C 35.1.1.0 is directly connected, Serial0/1
13.0.0.0/24 is subnetted, 1 subnets
C 13.1.1.0 is directly connected, Serial0/0