CCNP之BSCI中文读书笔记(4)
来源:优易学  2011-12-1 20:51:33   【优易学:中国教育考试门户网】   资料下载   IT书店

 

如图,路由器C并没有使用network 172.16.0.0 0.0.0.255,而使用的是network 172.16.3.0 0.0.0.255和network 172.16.4.0 0.0.0.255,因为C的S0口连接的是外部网络,即S0口没有运行EIGRP.如果在S0口运行了EIGRP的话,将会给外部发送不必要的信息造成带宽的浪费和CPU的负担

Configuring Default Route Using the default-network Command

当配置EIGRP的时候,可以使用ip default-network [network-number]命令创建默认路由,如下图:


路由器A连接外部网络172.31.0.0/16,A使用了ip default-network 172.31.0.0命令配置了一条默认路由;然后A把它宣告给B,B把也它标记成默认路由.注意[network-number]参数是基于类的网络号

Verifying EIGRP Using show Commands

使用show ip route命令查看路由表的内容,如下:
RouterA#show ip route
 Codes: C - connected, S - static, I - IGRP, R - RIP, D - EIGRP, EX - EIGRP external, O - OSPF, 
 (略)
Gateway of last resort is not set
     172.16.0.0/24 is subnetted, 1 subnets
D       172.16.1.0 [90/10639872] via 10.1.2.2, 06:04:01, Serial0/0 10.0.0.0/24 is subnetted, 4 subnets
D       10.1.3.0 [90/10514432] via 10.1.2.2, 05:54:47, Serial0/0
D       10.3.1.0 [90/10639872] via 10.1.2.2, 06:19:41, Serial0/0
C       10.1.2.0 is directly connected, Serial0/0
C       10.1.1.0 is directly connected, Ethernet0/0
注意D代表是从EIGRP学来的,*代表默认路由

使用show ip protocols命令可以检查默认的EIGRP设置,如下:
RouterA# show ip protocols
Routing Protocol is "eigrp 100"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Default networks flagged in outgoing updates
  Default networks accepted from incoming updates
  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
  EIGRP maximum hopcount 100
  EIGRP maximum metric variance 1
  Redistributing: eigrp 100
  Automatic network summarization is not in effect
  Maximum path: 4
  Routing for Networks:
    10.1.0.0/16
    10.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    10.1.2.2              90      05:50:13
  Distance: internal 90 external 170
(略)

使用show up eigrp topology命令来验证EIGRP操作,如下:
RouterA# show ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID(10.1.2.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status
P 10.1.3.0/24, 1 successors, FD is 10514432
         via 10.1.2.2 (10514432/28160), Serial0/0
P 10.3.1.0/24, 1 successors, FD is 10639872
         via 10.1.2.2 (10639872/384000), Serial0/0
P 10.1.2.0/24, 1 successors, FD is 10511872
         via Connected, Serial0/0
P 10.1.1.0/24, 1 successors, FD is 2190
         via Connected, Ethernet0/0
P 172.16.1.0/24, 1 successors, FD is 10639872
         via 10.1.2.2 (10639872/384000), Serial0/0
(略)
注意前面的字母P,可能出现的字母代号有如下几种:
1.P:代表passive,这个表示稳定网络中的稳定状态
2.A:代表active,当前网络不可用,正处于发送查询状态
3.U:代表update,网络处于等待update包的确认状态
4.Q:代表query,网络处于等待query包的确认的状态
5.stuck-in-active(SIA):说明EIGRP网络的收敛发生了问题

上一页  [1] [2] [3] [4] [5] [6] 

责任编辑:小草

文章搜索:
 相关文章
热点资讯
热门课程培训