EIGRP与静态路由重分布

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

EIGRP与静态路由重分布

一、网络拓扑图

二、设备配置

R1:

Router>

Router>ena

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hos R1

R1(config)#INT F 0/0

R1(config-if)#ip address 192.168.1.254 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config)#

R1(config)#int s 2/0

R1(config-if)#ip address 192.168.2.1 255.255.255.0

R1(config-if)#clo ra 64000

R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial2/0, changed state to down

R1(config-if)#exi

R1(config)#router eigrp 1

R1(config-router)#network 192.168.1.0

R1(config-router)#network 192.168.2.0

R1(config-router)#exi

R1(config)#do wr

Building configuration...

[OK]

R2:

Router>

Router>ena

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hos R2

R2(config)#int s 2/0

R2(config-if)#ip address 192.168.2.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#exit

%LINK-5-CHANGED: Interface Serial2/0, changed state to up

R2(config)#int s 3/0

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up

R2(config-if)#ip address 192.168.3.1 255.255.255.0

R2(config-if)#clo ra 64000

R2(config-if)#no shu

R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial3/0, changed state to down

R2(config-if)#exi

R2(config)#router eigrp 1

R2(config-router)#network 192.168.2.0

%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 192.168.2.1 (Serial2/0) is up: new adjacency

R2(config-router)#redistribute static metric 1000 100 1 250 150

R2(config-router)#exi

R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2

R2(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2

R2(config)#do wr

Building configuration...

[OK]

R3:

Router>

Router>ena

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hos R3

R3(config)#int f 0/0

R3(config-if)#ip address 192.168.4.254 255.255.255.0

R3(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config-if)#exi

R3(config)#int s 2/0

R3(config-if)#ip address 192.168.3.2 255.255.255.0

R3(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial2/0, changed state to up

R3(config-if)#exi

R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up

R3(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.1

R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1

R3(config)#do wr

Building configuration...

[OK]

测试结果:

从PC0 ping PC1:

相关文档
最新文档