2
0
mirror of https://github.com/gnu4cn/ccna60d.git synced 2024-05-21 04:55:00 +08:00
This commit is contained in:
Peng Hailin 2016-09-18 14:57:44 +08:00
parent 439cdb4d58
commit 7bbd2729c6
2 changed files with 28 additions and 0 deletions

View File

@ -1318,4 +1318,32 @@ Routing entry for 172.16.100.0/24
如上面的输出所示,基于该种不同开销下的负载均衡配置,两条不同度量值的路由,已被安装到路由表中。但注意到经由`Serial0/1`的流量分享计数the traffic share count是0而经由`Serial0/0`的计数为1。这就意味着尽管该路由条目已被安装到路由表中, 该路由器不会通过`Serial0/1`,向`172.16.100.0/24`网络发送任何数据包,除非经由`Serial0/0`的路径不再可用。
##使用EIGRP作默认路由
**Default Routing Using EIGRP**
在将最后的网关或网络动态通告给路由域中的其它路由器方面增强的IGRP支持多种不同方式。最终网关或默认路由是在目的网络未在路由表中特别列出时路由器用于引导流量的一种方式Enhanced IGRP supports numerous ways to advertise dynamically the gateway or network of last resort to other routers within the routing domain. A gateway of last resort, or default route, is a method for the router to direct traffic when the destination network is not specifically listed in the routing table。而在此种情形下路由器引导流量的方式有
- 使用`ip default-network`命令
- 使用`network`命令来对网络`0.0.0.0/0`进行通过
- 对默认静态路由进行重分发, Redistributing the default static route
- 使用`ip summary-address eigrp [asn] [network] [mask]`
而第一种,使用`ip default-network`命令被认为是一种EIGRP下对默认路由进行动态通告的过时方式。但因为在当前的IOS软件中仍然支持这种方式所以这里有必要提到。
`ip default-network`配置命令通过把一个星号插入到路由表中某个网络旁边而将该网络标记为默认网络。那些目的地没有明确路由表条目的流量就会被路由器转发到这个网络Traffic for destinations to which there is no specific routing table entry is then forwarded by the router to this network。下面参考图36.12中的EIGRP拓扑对此种部署进行了演示
![EIGRP的默认路由](images/3612.png)
*图 36.12 -- EIGRP的默认路由*
参考图36.12, 假设子网`200.10.10.0/24`是连接到互联网的。该子网位于路由器R1的`Fastethernet0/0`侧。路由器R1与R2相应地通过一条背靠背的串行连接相连。两台路由器都是处于EIGRP AS 150中。为了将`200.10.10.0/24`标记为最终网络就要在路由器R1上进行如下配置
```
R1(config)#router eigrp 150
R1(config-router)#network 200.10.10.0 0.0.0.255
R1(config-router)#exit
R1(config)#ip default-network 200.10.10.0
R1(config)#exit
```

BIN
images/3612.png Normal file

Binary file not shown.

After

(image error) Size: 172 KiB