立即注册 登录
雏鹰部落 返回首页

子杰的个人空间 https://bbs.spoto.net/?131778 [收藏] [复制] [分享] [RSS]

日志

EIGRP基本配置配置案例

已有 326 次阅读2013-2-19 00:34

 

1
    
案例配置拓扑              

            

2     案例配置需求

l  如上图所示,IP地址规划方面,R1/R2/R3路由器互联的接口为192.168.AB.X/24,(其中AB

    路由器编号叠加,X为路由器编号,如R1连接R2的接口F0/0的地址为192.168.12.1/24

l  R1R2R3三台路由器运行EIGRP       协议,AS号为1

l  实现设备间能相互通信。

l  查看路由的邻居表、拓扑表、路由表、协议

3     案例配置思路

 一:先配置设备的接口地址

(config)#interface fastEthernet x/x

(config-if)#ip address x.x.x.x x.x.x.x

 二:配置R1R2R3运行EIGRP协议,并配置环回接口地址,实现设备互通。

(config)#router eigrp 1                        //开启EIGRP进程//     

(config-router)#no auto-summary             //关闭自动汇总 //

(config-router)#network x.x.x.x                //宣告网段//

 

4     案例检验结果

1)  查看路由器R1运行的路由协议:

R1#show ip protocols

Routing Protocol is "eigrp 1"

  Outgoing ** filter list for all interfaces is not set

  Incoming ** filter list for all interfaces is not set

  Default networks flagged in outgoing **s

  Default networks accepted from incoming **s

  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0

  EIGRP maximum hopcount 100

  EIGRP maximum metric variance 1

  Redistributing: eigrp 1

  EIGRP NSF-aware route hold timer is 240s

  Automatic network summarization is not in effect

  Maximum path: 4

  Routing for Networks:

    192.168.12.0

  Routing Information Sources:

    Gateway         Distance      Last **

    192.168.12.2          90      00:02:38

  Distance: internal 90 external 170

/查看路由器所使用的路由协议为EIGRPAS号为1,且管理距离(AD)90/

2)  查看路由器R2的邻居表:

R2#show ip eigrp neighbors

IP-EIGRP neighbors for process 1

H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq

                                            (sec)         (ms)       Cnt Num

1   192.168.23.3            Fa1/0             13 00:03:41   50   300  0  3

0   192.168.12.1            Fa0/0             12 00:04:28 1027  5000  0  3   

/上面显示的是R2EIGRP邻居表,且01代表的是建立邻居的顺序/

3)  查看R2的拓扑表:

R2#show ip eigrp topology

IP-EIGRP Topology Table for AS(1)/ID(192.168.23.2)

Codes: P - Passive, A - Active, U - **, Q - Query, R - Reply,

       r - reply Status, s - sia Status

P 192.168.12.0/24, 1 successors, FD is 28160

        via Connected, FastEthernet0/0

P 192.168.23.0/24, 1 successors, FD is 28160

        via Connected, FastEthernet1/0

/上面显示的是R2EIGRP拓扑表,且P表示为正常情况/    

4)  查看R2的路由表:

R3#show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

D    192.168.12.0/24 [90/30720] via 192.168.23.2, 00:05:22, FastEthernet0/0

C    192.168.23.0/24 is directly connected, FastEthernet0/0

/上面显示的是R2EIGRP路由表,且D表示为EIGRP学习到的路由条目/

5     案例数据抓包

1.      查看EIGRP的协议发送的组播地址

    

   

     /图显示的是发送组播地址为224.0.0.10,且每5秒发送一次/

6 案例配置文件

  

R1:

enable
conf t
hostname R1
interface FastEthernet0/0
 ip address 192.168.12.1 255.255.255.0
 no shutdown
 exit
!
router eigrp 1
 network 192.168.12.0
 no auto-summary
!
end

R2:

enable
conf t
hostname R2
interface FastEthernet0/0
 ip address 192.168.12.2 255.255.255.0
 no shutdown
 exit
interface FastEthernet1/0
 ip address 192.168.23.2 255.255.255.0
 no shutdown
 exit
!
router eigrp 1
 network 192.168.12.0
 network 192.168.23.0
 no auto-summary
!
end

R3:

enable
conf t
hostname R3
interface FastEthernet0/0
 ip address 192.168.23.3 255.255.255.0
 no shutdown
 exit
!
router eigrp 1
 network 192.168.23.0
 no auto-summary
!
end

 

7 案例总结及其它

1)EIGRP的进程中要关闭自动汇总,能支持VLSM

2)EIGRP的管理距离为90

3)5秒发送224.0.0.10给邻居。

4)查看路由协议:show ip protocol

5)查看邻居表:show ip eigrp neighbor

6)查看拓扑表:show ip eigrp topology

7)查看路由表:show ip route

 

 

 

 

-----------------------------------------------------------------------------------------

SPOTO 我们共创未来

 
您的朋友 周俊杰(Jay)
 

Email:zhoujj@spoto.net
新浪微博:http://weibo.com/zhoujj0130
新浪博客:http://blog.sina.com.cn/zhoujj0130

持续付出不亚于任何人的努力!

-----------------------------------------------------------------------------------------

 


路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-4-24 05:52 , Processed in 0.055623 second(s), 18 queries , Gzip On.

返回顶部