eigrp:enhanced interior gateway routing protocol
1,dynamic,IGP:interior gateway protocol(運行於AS內部),無類,only cisco,DV:distance vector
2,metric=(10000000/bw+delay/10)*256
3,觸發更新和增量更新
4,用組播(224.0.0.10)和單播代替廣播
5,支持等價和不等價負載均衡
6,通過發送hello包建鄰居:hello time<5s 或 hello time >=60s ,dead time 是 hello time 的三位,eigrp hello包需要K值相同,AS號相同。
7,建鄰居的必要條件是:AS號一致,K值相同,認證一致
8,建鄰居完之後要發確認包ACK,有序,優選最小開銷,基於DUAL算法,支持多種網絡層
9,eigrp三張表:eigrp neighbor table(show ip eigrp neighbor);eigrp topology table(show ip eigrp topology all-links);eigrp route table(show ip route eigrp)
10,eigrp五種包:hello;update;query;reply;ack
11,eigrp下發默認路由三種方法
(1)寫一條默認路由,然後宣告此默認路由(如果要求對方也能迴應,對方也應該寫一條默認路由)
ip route 0.0.0.0 0.0.0.0 se 1/1
router eigrp 100
network 0.0.0.0
ip route 192.168.10.0 255.255.255.0 se 1/0
(2)寫一條默認路由,然後重分發eigrp
ip route 0.0.0.0 0.0.0.0 se 1/1
redistribute static
(3) 寫一條默認路由,然後宣告此設備連接外網絡的端口,最後配置默認網關
ip route 0.0.0.0 0.0.0.0 se 1/1
router eigrp 100
network 202.119.248.66 0.0.0.0
ip default-network 202.119.248.0
12,查看接口配置IP地址的情況:show ip int brief
查看具體接口的delay,bandwidth:show int se 1/1
查看具體接口的配置情況:show ip int se 1/1
查看具體接口的配置情況(看hello):show run int se 1/1
13,修改hello包時間間隔
int fa 0/0
ip hello-interval eigrp 100 20(hello包的時間間隔不能超過鄰居的死亡時間)
修改了hello時間,hold時間是不會跟着自動修改的,需要手動修改
ip hold-time eigrp 100 180
14,eigrp被動接口:只有loopback才能設爲被動接口passive-interface
router eigrp 100
passive-interface loopback
debug eigrp packets
undug all
15.ACL也能阻止hello包
access-list 100 deny eigrp any any
access-list 100 permit ip any any
int fa 0/0
ip access-group 100 in
show ip access-list
ACL對於自已無效
16,手動關閉eigrp自動彙總
router eigrp 100
no auto-summary
手動彙總,在誰上面就在誰上面做,在所有的路由出接口上配
手動彙總是找路由共同點,當明細路由全部消失之後,彙總路由纔會消失
int fa 0/0
ip summary-address eigrp 100 172.16.0.0 255.255.252.0
17,eigrp宣告
主類宣告:network 192.168.1.0;network 12.0.0.0;network 172.16.0.0
正掩碼宣告:network 12.12.12.0 255.255.255.0
通配符宣告:network 12.12.12.0 0.0.0.255
精確宣告:network 12.12.12.2 0.0.0.0
宣告所有接口,全0宣告:network 0.0.0.0 0.0.0.0
18, eigrp和管理距離是:D:90;D*EX:170;彙總是5
19,eigrp meteric 有5個K值
bandwidth 帶寬K1 1
delay 延遲K3 1
reliability 可靠性K4 0
loading 負載K2 0
mtu 最大傳達輸單元K5 0
show ip protocols
20,metric=256*(10000000/BW+delay之和/10)
show ip route eigrp:查看metric
show int fa 0/0 :查看bw delay
僅影響到選路由,不會更改實際的
負載均衡,支持等價與不等價,由metric值決定,最多支持六條負載均衡,可以改(包是按照variance值來發包的1:N)
不等價指metric不相同
eigrp不等價條件是進入路由表
進入路由表的條件是n*FD(min)>FS(可行後繼)的FD
router eigrp 100
variance n
成爲可行後繼的條件即進入topology表的條件是AD<fd(min)
P 172.16.0.0/22, 1 successors, FD is 156160, serno 13
via 192.168.10.103 (156160/128256), FastEthernet0/0
via 12.12.12.2 (2809856/2297856), Serial1/1
P 172.16.0.0/16, 1 successors, FD is 156160, serno 12
via 192.168.10.103 (156160/128256), FastEthernet0/0
via 12.12.12.2 (2809856/2297856), Serial1/1
修改鄰居,也就是AD 的值
再在本路由器上面修改variance值
21,eigrp認證
eigrp 僅支持MD5密文認證
key chain cisco
key 1
key-string cisco
exit
key2
key-string juniper
exit
int fa 0/0
ip authentication mode eigrp 100 md5
ip authentication key-chain eigrp 100 cisco
22,PAT:端口地址翻釋
nat
1,inside local
2,outside local
3,inside global
4,outside global
1,先定義內外端口
2,配置ACL
3,應用到具體端口
show ip nat translations
配置完之後對方不需要靜態路由,nat是雙向的
23,查看DCE
show controllers serial 1/1
show run | b r e
查看彙總管理距離
只能在彙總的路由器上面
show ip route 172.16.0.0 255.255.252.0
路由方向與數據包方向相反
clear ip route *
clear ip eig 100 neighbors
查看EIGRP中宣告的端口
show ip eigrp int
24,發現協議
cdp run
show cdp neighbors
stub末節
router eigrp 100
eigrp stub
update是發送路由更新
query是發送查詢包
還原接口:default int se 1/2