1. 程式人生 > >CISCO EIGRP 簡單實驗

CISCO EIGRP 簡單實驗

這次實驗的目的是配置簡單的eigrp,並不包含eigrp的負載均衡設定。

34EAE35D-3E41-4F6A-8EC1-A6138CB38BE9

我們選擇使用四臺cisco的2811路由器為實驗裝置,從左到右分別是r1、r2、r3和r4路由器。

選擇使用的網段如上圖所示。

進入r1進行配置(以下均為手寫命令,不包括前面的提示)

en
conf t
hostname r1
int fa0/0
ip add 192.168.1.1 255.255.255.0
no shutdown
exit
router eigrp 100
no auto-summary (關閉自動彙總)
network 192.168.1.0
exit

進入r2進行配置

en
conf t
hostname r2
int fa0/0
ip add 192.168.1.2 255.255.255.0
no shutdown
int fa0/1
ip add 192.168.2.1 255.255.255.0
no shutdown
exit
router eigrp 100
no auto-summary
network 192.168.1.0
network 192.168.2.0
exit

進入r3 進行配置

en
conf t
hostname r3
int fa0/0
ip add 192.168.2.2 255.255.255.0
no shutdown
int fa0/1
ip add 10.1.1.1 255.255.255.0
no shutdown
exit
router eigrp 100
no auto-summary
network 192.168.2.0
network 10.1.1.0
exit

進入r4進行配置

en
conf t
hostname r4
init fa0/0
ip add 10.1.1.2 255.255.255.0
no shutdown
exit
router eigrp 100
no auto-summary
network 10.1.1.0
exit

好的,下面我們來看一下我們配置是否成功

r1#show ip route eigrp
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/33280] via 192.168.1.2, 00:16:15, FastEthernet0/0
D 192.168.2.0/24 [90/30720] via 192.168.1.2, 00:16:15, FastEthernet0/0
r1#ping 10.1.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/90/94 ms

ok,r1路由器的fa0/0埠ping r4路由器的fa0/0埠沒有問題

我們在來看一下eigrp的資訊
show ip router eigrp

顯示內容如下:
r1#show ip route eigrp
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/33280] via 192.168.1.2, 00:18:28, FastEthernet0/0
D 192.168.2.0/24 [90/30720] via 192.168.1.2, 00:18:28, FastEthernet0/0

好的,路由器學會了10.1.1.0網段和192.168.2.0網段。

我們再看一下FD的值是多少
r1#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 192.168.1.0/24, 1 successors, FD is 28160
via Connected, FastEthernet0/0
P 192.168.2.0/24, 1 successors, FD is 30720
via 192.168.1.2 (30720/28160), FastEthernet0/0
P 10.1.1.0/24, 1 successors, FD is 33280
via 192.168.1.2 (33280/30720), FastEthernet0/0

好了,下回我們就來說一下eigrp怎樣有負載均衡的效果。