Cấu hình EIGRP cơ bản


Yêu cầu :
- Cấu hình cơ bản cho các router.
- Cấu hình định tuyến EIGRP cho tất cả các router.
- Kiểm tra hoạt động của EIGRP sau khi định tuyến.
- Cấu hình thay đổi bandwidth giữa router1- router2 là 64kbps; giữa router 2- router 3 là 1024kbps; giữa router 1- router 3 giữ nguyên giá trị mặc định (1544kbps)
- Kiểm tra lại bảng Topology và bảng Routing sau khi thay đổi bandwidth.
- Gắn thêm các interface loopback cho router 3 và quảng bá các interface này vào EIGRP.
- Thực hiện cấu hình tóm tắt các đường mạng loopback ở router 3 bằng tay (manual summarization).
Hướng dẫn :
Công việc 1 : Cấu hình cơ bản cho các router.
Công việc 2 : Cấu hình định tuyến EIGRP cho tất cả các router.
Router1(config)#router eigrp 100
Router1(config-router)#network 192.168.10.0
Router1(config-router)#network 172.16.0.0
Router1(config-router)#no auto-summary
Router1(config-router)#end

Router2(config)#router eigrp 100
Router2(config-router)#network 192.168.10.0
Router2(config-router)#network 172.16.0.0
Router2(config-router)#no auto-summary
Router2(config-router)#end

Router3(config)#router eigrp 100
Router3(config-router)#network 192.168.10.0
Router3(config-router)#network 172.16.0.0
Router3(config-router)#no auto-summary
Router3(config-router)#end
Công việc 3 : Kiểm tra hoạt động của EIGRP sau khi định tuyến.
ð Kiểm tra bảng neighbors và xác nhận rằng EIGRP đã thiết lập mối quan hệ kề cận (adjacency) với các router 2 và router 3
Router1#show ip eigrp neighbors
IP-EIGRP neighbors for process 100
H   Address          Interface      Hold    Uptime        SRTT    RTO      Q      Seq
                                                   (sec)                           (ms)                     Cnt   Num
0   192.168.10.6    Ser0/1/1        10         00:07:32        40        1000        0      10
1   192.168.10.2    Ser0/1/0        11         00:07:29        40        1000        0      14

H - Danh sách các quan hệ láng giềng mà router đã thiết lập được.  
Address - Địa chỉ IP của router EIGRP láng giềng.           
Interface - Cổng nhận thông tin về router EIGRP láng giềng (Interface của router 1).      
Hold - Thời gian Holddown-timer, nếu mang giá trị 0 sẽ xoá bỏ quan hệ láng giềng.    
Uptime - Thời gian kể từ khi láng giềng đuợc thêm vào bảng.       
SRTT (Smooth Round Trip Time) - Khoảng thời gian router phải đợi từ khi gửi một gói tin cho đến khi nhận được ACK
RTO (Retransmission Trip Timeout) -  Thời gian router phải chờ trước khi truyền lại một gói tin.   
Q (Queue Count) - Số lượng gói tin chờ để gửi đến router EIGRP láng giềng. Nếu Qcount>0 thì mạng có dấu hiệu tắt nghẽn.       
Seq (Sequence Number) - Số tuần tự của gói tin EIGRP update/request/reply cuối cùng nhận được từ router EIGRP láng giềng. RTP sẽ theo dõi chỉ số này để đảm bảo rằng các gói tin từ láng giềng nhận đúng thứ tự.
ð Xem thông tin về giao thức định tuyến.
Router1#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: 
     192.168.10.0
     172.16.0.0
  Routing Information Sources: 
    Gateway         Distance      Last Update
    192.168.10.6    90              6         
    192.168.10.2    90              2737      
  Distance: internal 90 external 170
ð Kiểm tra các route trong các bảng định tuyến
Router1#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
C       172.16.1.0 is directly connected, FastEthernet0/0
D       172.16.2.0 [90/2172416] via 192.168.10.2, 00:17:31, Serial0/1/0
D       172.16.3.0 [90/2172416] via 192.168.10.6, 00:17:36, Serial0/1/1
     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.0 is directly connected, Serial0/1/0
C       192.168.10.4 is directly connected, Serial0/1/1
D       192.168.10.8 [90/2681856] via 192.168.10.6, 00:17:35, Serial0/1/1
                                [90/2681856] via 192.168.10.2, 00:17:31, Serial0/1/0

Router2#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
D       172.16.1.0 [90/2172416] via 192.168.10.1, 00:18:25, Serial0/2/0
C       172.16.2.0 is directly connected, FastEthernet0/0
D       172.16.3.0 [90/2172416] via 192.168.10.10, 00:18:30, Serial0/2/1
     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.0 is directly connected, Serial0/2/0
D       192.168.10.4 [90/2681856] via 192.168.10.10, 00:18:30, Serial0/2/1
                                [90/2681856] via 192.168.10.1, 00:18:25, Serial0/2/0
C       192.168.10.8 is directly connected, Serial0/2/1

Router3#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
D       172.16.1.0 [90/2172416] via 192.168.10.5, 00:20:08, Serial0/3/1
D       172.16.2.0 [90/2172416] via 192.168.10.9, 00:20:08, Serial0/3/0
C       172.16.3.0 is directly connected, FastEthernet0/0
     192.168.10.0/30 is subnetted, 3 subnets
D       192.168.10.0 [90/2681856] via 192.168.10.5, 00:20:07, Serial0/3/1
                                [90/2681856] via 192.168.10.9, 00:20:05, Serial0/3/0
C       192.168.10.4 is directly connected, Serial0/3/1
C       192.168.10.8 is directly connected, Serial0/3/0

Công việc 4 : Cấu hình thay đổi bandwidth
ð Xem thông tin metric của EIGRP
Router1#show interfaces serial 0/1/0
Serial0/1/0 is up, line protocol is up (connected)
  Hardware is HD64570
  Internet address is 192.168.10.1/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
  Encapsulation HDLC, loopback not set, keepalive set (10 sec)
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up
ð Thay đổi bandwidth cho các Interface
Router1(config)#interface s0/1/0
Router1(config-if)#bandwidth 64

Router2(config)#interface s0/2/0
Router2(config-if)#bandwidth 64

Router2(config)#interface s0/2/1
Router2(config-if)#bandwidth 1024

Router3(config)#interface s0/3/0
Router3(config-if)#bandwidth 1024
ð Kiểm tra sự thay đổi của bandwidth
Router1#show interfaces serial 0/1/0
Serial0/1/0 is up, line protocol is up (connected)
  Hardware is HD64570
  Internet address is 192.168.10.1/30
  MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255
  Encapsulation HDLC, loopback not set, keepalive set (10 sec)
  Input queue: 0/75/0 (size/max/drops); Total output drops: 0
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

Router3#show interfaces serial 0/3/0
Serial0/3/0 is up, line protocol is up (connected)
  Hardware is HD64570
  Internet address is 192.168.10.10/30
  MTU 1500 bytes, BW 1024 Kbit, DLY 20000 usec, rely 255/255, load 1/255
  Encapsulation HDLC, loopback not set, keepalive set (10 sec)
  Output queue: 0/1000/64/0 (size/max total/threshold/drops)
     Conversations  0/0/256 (active/max active/max total)
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up
Công việc 5 : Kiểm tra lại bảng Topology và bảng Routing sau khi thay đổi bandwidth.
Router1#show ip eigrp topology
IP-EIGRP Topology Table for AS 100
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - Reply status

P 172.16.1.0/24, 1 successors, FD is 28160
         via Connected, FastEthernet0/0
P 192.168.10.4/30, 1 successors, FD is 2169856
         via Connected, Serial0/1/1
P 172.16.3.0/24, 1 successors, FD is 2172416
         via 192.168.10.6 (2172416/28160), Serial0/1/1
P 192.168.10.0/30, 1 successors, FD is 40512000
         via Connected, Serial0/1/0
P 192.168.10.8/30, 1 successors, FD is 3523840
         via 192.168.10.6 (3523840/3011840), Serial0/1/1
P 172.16.2.0/24, 1 successors, FD is 3526400
         via 192.168.10.6 (3526400/3014400), Serial0/1/1
         via 192.168.10.2 (4294967295/28160), Serial0/1/0

Router1#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
C       172.16.1.0 is directly connected, FastEthernet0/0
D       172.16.2.0 [90/3526400] via 192.168.10.6, 00:35:09, Serial0/1/1
D       172.16.3.0 [90/2172416] via 192.168.10.6, 01:19:36, Serial0/1/1
     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.0 is directly connected, Serial0/1/0
C       192.168.10.4 is directly connected, Serial0/1/1
D       192.168.10.8 [90/3523840] via 192.168.10.6, 00:35:10, Serial0/1/1

Router2#show ip eigrp topology
P 172.16.2.0/24, 1 successors, FD is 28160
         via Connected, FastEthernet0/0
P 192.168.10.8/30, 1 successors, FD is 3011840
         via Connected, Serial0/2/1
P 172.16.3.0/24, 1 successors, FD is 3014400
         via 192.168.10.10 (3014400/28160), Serial0/2/1
         via 192.168.10.1 (4294967295/2172416), Serial0/2/0
P 192.168.10.4/30, 1 successors, FD is 3523840
         via 192.168.10.10 (3523840/2169856), Serial0/2/1
         via 192.168.10.1 (4294967295/2169856), Serial0/2/0
P 172.16.1.0/24, 1 successors, FD is 3526400
         via 192.168.10.10 (3526400/2172416), Serial0/2/1
         via 192.168.10.1 (4294967295/28160), Serial0/2/0
P 192.168.10.0/30, 1 successors, FD is 40512000
         via Connected, Serial0/2/0

Router2#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
D       172.16.1.0 [90/3526400] via 192.168.10.10, 00:38:27, Serial0/2/1
C       172.16.2.0 is directly connected, FastEthernet0/0
D       172.16.3.0 [90/3014400] via 192.168.10.10, 00:38:27, Serial0/2/1
     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.0 is directly connected, Serial0/2/0
D       192.168.10.4 [90/3523840] via 192.168.10.10, 00:38:27, Serial0/2/1
C       192.168.10.8 is directly connected, Serial0/2/1

Router3#show ip eigrp topology
P 172.16.3.0/24, 1 successors, FD is 28160
         via Connected, FastEthernet0/0
P 192.168.10.4/30, 1 successors, FD is 2169856
         via Connected, Serial0/3/1
P 172.16.1.0/24, 1 successors, FD is 2172416
         via 192.168.10.5 (2172416/28160), Serial0/3/1
P 192.168.10.8/30, 1 successors, FD is 3011840
         via Connected, Serial0/3/0
P 172.16.2.0/24, 1 successors, FD is 3014400
         via 192.168.10.9 (3014400/28160), Serial0/3/0
P 192.168.10.0/30, 2 successors, FD is 41024000
         via 192.168.10.5 (41024000/41024000), Serial0/3/1
         via 192.168.10.9 (41024000/40512000), Serial0/3/0

Router3#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
D       172.16.1.0 [90/2172416] via 192.168.10.5, 01:25:27, Serial0/3/1
D       172.16.2.0 [90/3014400] via 192.168.10.9, 00:41:00, Serial0/3/0
C       172.16.3.0 is directly connected, FastEthernet0/0
     192.168.10.0/30 is subnetted, 3 subnets
D       192.168.10.0 [90/41024000] via 192.168.10.5, 00:42:19, Serial0/3/1
                                [90/41024000] via 192.168.10.9, 00:41:00, Serial0/3/0
C       192.168.10.4 is directly connected, Serial0/3/1
C       192.168.10.8 is directly connected, Serial0/3/0

Công việc 6 : Gắn thêm các interface loopback cho router 3 và quảng bá các interface này vào EIGRP.

Router3(config)#interface loopback 1
Router3(config-if)#ip address 192.168.1.1 255.255.255.0

Router3(config)#interface loopback 2
Router3(config-if)#ip address 192.168.2.1 255.255.255.0

Router3(config)#interface loopback 3
Router3(config-if)#ip address 192.168.3.1 255.255.255.0

Router3(config)#router eigrp 100
Router3(config-router)#network 192.168.1.0
Router3(config-router)#network 192.168.2.0
Router3(config-router)#network 192.168.3.0
ð Xem lại bảng routing của các router sau khi thêm các route mới
Router1#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
C       172.16.1.0 is directly connected, FastEthernet0/0
D       172.16.2.0 [90/3526400] via 192.168.10.6, 00:54:03, Serial0/1/1
D       172.16.3.0 [90/2172416] via 192.168.10.6, 00:54:03, Serial0/1/1
D    192.168.1.0/24 [90/2297856] via 192.168.10.6, 00:02:27, Serial0/1/1
D    192.168.2.0/24 [90/2297856] via 192.168.10.6, 00:02:15, Serial0/1/1
D    192.168.3.0/24 [90/2297856] via 192.168.10.6, 00:01:58, Serial0/1/1
     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.0 is directly connected, Serial0/1/0
C       192.168.10.4 is directly connected, Serial0/1/1
D       192.168.10.8 [90/3523840] via 192.168.10.6, 00:54:03, Serial0/1/1

Router2#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
D       172.16.1.0 [90/3526400] via 192.168.10.10, 01:07:31, Serial0/2/1
C       172.16.2.0 is directly connected, FastEthernet0/0
D       172.16.3.0 [90/3014400] via 192.168.10.10, 01:07:33, Serial0/2/1
D    192.168.1.0/24 [90/3139840] via 192.168.10.10, 00:15:56, Serial0/2/1
D    192.168.2.0/24 [90/3139840] via 192.168.10.10, 00:15:44, Serial0/2/1
D    192.168.3.0/24 [90/3139840] via 192.168.10.10, 00:15:27, Serial0/2/1
     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.0 is directly connected, Serial0/2/0
D       192.168.10.4 [90/3523840] via 192.168.10.10, 01:07:33, Serial0/2/1
C       192.168.10.8 is directly connected, Serial0/2/1

Router3#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
D       172.16.1.0 [90/2172416] via 192.168.10.5, 01:09:56, Serial0/3/1
D       172.16.2.0 [90/3014400] via 192.168.10.9, 01:09:56, Serial0/3/0
C       172.16.3.0 is directly connected, FastEthernet0/0
C    192.168.1.0/24 is directly connected, Loopback1
C    192.168.2.0/24 is directly connected, Loopback2
C    192.168.3.0/24 is directly connected, Loopback3
     192.168.10.0/30 is subnetted, 3 subnets
D       192.168.10.0 [90/41024000] via 192.168.10.9, 01:09:56, Serial0/3/0
                     [90/41024000] via 192.168.10.5, 01:09:56, Serial0/3/1
C       192.168.10.4 is directly connected, Serial0/3/1
C       192.168.10.8 is directly connected, Serial0/3/0


Công việc 7 : Thực hiện cấu hình tóm tắt các đường mạng loopback ở router 3 bằng tay (manual summarization).
ð Cấu hình summary trên các cổng outbound
Đường mạng summary của 3 đường mạng trên là : 192.168.0.0/22

Router3(config)#interface s0/3/1
Router3(config-if)#ip summary-address eigrp 100 192.168.0.0 255.255.252.0

Router3(config)#interface s0/3/0
Router3(config-if)#ip summary-address eigrp 100 192.168.0.0 255.255.252.0
ð Xem lại bảng routing của các router sau khi summary
Router1#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
C       172.16.1.0 is directly connected, FastEthernet0/0
D       172.16.2.0 [90/3526400] via 192.168.10.6, 00:01:39, Serial0/1/1
D       172.16.3.0 [90/2172416] via 192.168.10.6, 00:01:41, Serial0/1/1
D    192.168.0.0/22 [90/3523840] via 192.168.10.6, 00:01:41, Serial0/1/1
     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.0 is directly connected, Serial0/1/0
C       192.168.10.4 is directly connected, Serial0/1/1
D       192.168.10.8 [90/3523840] via 192.168.10.6, 00:01:41, Serial0/1/1
Router2#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
D       172.16.1.0 [90/3526400] via 192.168.10.10, 00:03:39, Serial0/2/1
C       172.16.2.0 is directly connected, FastEthernet0/0
D       172.16.3.0 [90/3014400] via 192.168.10.10, 00:03:39, Serial0/2/1
D    192.168.0.0/22 [90/3523840] via 192.168.10.10, 00:03:39, Serial0/2/1
     192.168.10.0/30 is subnetted, 3 subnets
C       192.168.10.0 is directly connected, Serial0/2/0
D       192.168.10.4 [90/3523840] via 192.168.10.10, 00:03:39, Serial0/2/1
C       192.168.10.8 is directly connected, Serial0/2/1
Router3#show ip route
     172.16.0.0/24 is subnetted, 3 subnets
D       172.16.1.0 [90/2172416] via 192.168.10.5, 00:04:46, Serial0/3/1
D       172.16.2.0 [90/3014400] via 192.168.10.9, 00:04:45, Serial0/3/0
C       172.16.3.0 is directly connected, FastEthernet0/0
D    192.168.0.0/22 is a summary, 00:04:49, Null0
C    192.168.1.0/24 is directly connected, Loopback1
C    192.168.2.0/24 is directly connected, Loopback2
C    192.168.3.0/24 is directly connected, Loopback3
     192.168.10.0/30 is subnetted, 3 subnets
D       192.168.10.0 [90/41024000] via 192.168.10.5, 00:04:46, Serial0/3/1
                                [90/41024000] via 192.168.10.9, 00:04:45, Serial0/3/0
C       192.168.10.4 is directly connected, Serial0/3/1
C       192.168.10.8 is directly connected, Serial0/3/0
Đặt các Interface Loopback và gán IP như hình vẽ
EIGRP LOAD BALANCING