跳到主要內容

EIGRP 小記

1. Classless
2.支援VLSM
3.Unequal-Cost pathways  (OSPF Equal-Cost Load Balancing)
4.預設會Auto Summary
..........


EIGRP有三張Table
1.neighbor Table
         |
         |     dual 演算法
         V
2.Topology Table (不是Database),已經知道下一站要怎麼走,OSPF還要使用SPF演算法
a.路徑走Successor,若Successor斷掉,則走Feasible Successor
b.FD=介面到下一站Router的Metric+AD值
c.要成為Feasible Successor,必須AD值小於Successor的FD值(Metric)


3.Riouting Table




EIGRP 也有送Hello Packets(預設每5秒送一次Hello),會包含AS Number,若是AS Number不同,鄰居關係會無法建立
OSPF 中的Process ID可以不用,但是Area要相同


----------------------------------------------
例如
----------------------------------------------

B3#show ip interface brief 
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        172.16.4.254    YES manual up                    up

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.1.21    YES manual up                    up

Serial0/0/1            192.168.1.6     YES manual up                    up

Vlan1                  unassigned      YES unset  administratively down down
B3#



B3(config)#router eigrp 100  (AS Number為100)

B3(config-router)#network 172.16.4.254 0.0.0.0  (不打Wildcard Mask也可以 or 172.16.0.0)
B3(config-router)#network 192.168.1.21 0.0.0.0
B3(config-router)#network 192.168.1.6 0.0.0.0
B3(config-router)#no auto-summary (取消Auto Summary)





B3#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 in effect  
  Automatic address summarization: 
    192.168.1.0/24 for FastEthernet0/0
      Summarizing with metric 2169856
    172.16.0.0/16 for Serial0/0/0, Serial0/0/1
      Summarizing with metric 28160
  Maximum path: 4
  Routing for Networks:  
     172.16.4.254/32
     192.168.1.21/32
     192.168.1.6/32
  Routing Information Sources:  
    Gateway         Distance      Last Update 
  Distance: internal 90 external 170




檢查有無錯誤
show iop route
show ip protocols



B3#show ip eigrp topology 
IP-EIGRP Topology Table for AS 168


Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - Reply status


P 172.16.4.0/24, 1 successors, FD is 28160
         via Connected, FastEthernet0/0
P 192.168.1.20/30, 1 successors, FD is 2169856
         via Connected, Serial0/0/0
P 192.168.1.4/30, 1 successors, FD is 2169856
         via Connected, Serial0/0/1
P 172.16.3.0/24, 1 successors, FD is 2172416
         via 192.168.1.5 (2172416/28160), Serial0/0/1
P 192.168.1.16/30, 1 successors, FD is 2681856
         via 192.168.1.5 (2681856/2169856), Serial0/0/1






B3#show ip eigrp neighbors 
IP-EIGRP neighbors for process 168
H   Address         Interface      Hold Uptime    SRTT   RTO   Q   Seq
                                   (sec)          (ms)        Cnt  Num
0   192.168.1.5     Se0/0/1        13   00:04:10  40     1000  0   10






B3#show ip eigrp interfaces 
IP-EIGRP interfaces for process 168


                        Xmit Queue   Mean   Pacing Time   Multicast    Pending
Interface        Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Fa0/0              0        0/0      1236       0/10           0           0
Se0/0/0            0        0/0      1236       0/10           0           0
Se0/0/1            1        0/0      1236       0/10           0           0



Peers 代表鄰居關係數



啟用驗證
key chain abc
key1
key-string kfc
interface fa 0/1

在介面套上
ip authentication mode eigrp 100 md5
ip authentication key-chain eigrp 100 abc



Routing Protocol的比較可以參考這裡

留言

這個網誌中的熱門文章

HP A5120 Switch 基本設定

沒用過HP的Switch,指令跟Cisco完全不同,花了一些時間熟悉~ 1.啟動Spanning-Tree,預設沒有開啟 (黑色粗體是我敲的指令) <HP> system-view System View: return to User View with Ctrl+Z. [HP] stp enable [HP] %Apr 26 12:03:59:826 2000 HP MSTP/6/MSTP_ENABLE: STP is now enabled on the device. %Apr 26 12:03:59:918 2000 HP MSTP/6/MSTP_FORWARDING: Instance 0's GigabitEthernet1/0/17 has been set to forwarding state. %Apr 26 12:04:00:068 2000 HP MSTP/6/MSTP_DETECTED_TC: Instance 0's GigabitEthernet1/0/17 detected a topology change. #Apr 26 12:04:00:208 2000 HP MSTP/1/PFWD: hwPortMstiStateForwarding: Instance 0's Port 0.9437200 has been set to forwarding state! 2.DHCP Snooping   (黑色粗體是我敲的指令) 假設我的DHCP Server接在24 Port,其他Port不允許有DHCP Server <HP> system-view System View: return to User View with Ctrl+Z. [HP] dhcp-snooping  DHCP Snooping is enabled. [HP] interface GigabitEthernet 1/0/24 [HP-GigabitEthernet1/0/24 ]dhcp-snooping trust 若是沒有Port 設成dhcp-snooping trust,那麼這台Switch就沒有Client可以從DHCP Serv...

2台 Vigor 2920建立 LAN To LAN VPN (IPsec)

我有兩台Vigor 2920,環境如下: Vigor B 撥出 LAN:192.168.1.0/24 Vigor A 撥入 LAN:172.16.1.0/24 設定如下: Vigor B設定 Vigor A設定 詳細設定請參考官網 http://www.draytek.com/index.php?option=com_k2&view=item&id=2666&Itemid=264&lang=tw

Draytek Vigor 2927

其實心中一直感覺用了十年的Vigor 2920n會掛掉,因為先前也有一台2920n壞過,所以心中也有個底,但突然壞了也真讓人心驚驚! 其實最近都在用Unifi的設備,但考量目前的工作環境與網路需求,就直接更換最新的Vigor 2927,雖然2920n的備份檔不能直接倒回去,不過之前的設定參數都有抓圖下來,所以很快就把設定設回去,這也算是用習慣Draytek的好處~ 下一篇會說明怎麼建立Unifi Dream Machine Pro與Vigor 2927的Site To Site VPN。