0
点赞
收藏
分享

微信扫一扫

思科设备配置路由重发布

思科设备配置路由重发布_思科

 

1.配置IP地址

R1#conf t

R1(config)#int f0/0

R1(config-if)#ip add 12.1.1.1 255.255.255.0

R1(config-if)#no shutdown  

R1(config)#int loopback 1

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R1(config-if)#no shutdown

R2#conf t

R2(config)#int f0/0

R2(config-if)#ip add 12.1.1.2 255.255.255.0

R2(config-if)#no shutdown  

R2(config-if)#int f0/1                      

R2(config-if)#ip add 23.1.1.2 255.255.255.0

R2(config-if)#no shutdown                  

R2(config)#int loopback 1

R2(config-if)#ip add 2.2.2.2 255.255.255.0

R2(config-if)#no shutdown

R3#conf t

R3(config)#int f0/0

R3(config-if)#ip add 23.1.1.3 255.255.255.0

R3(config-if)#no shut

R3(config)#int loopback 1

R3(config-if)#ip add 3.3.3.3 255.255.255.0

R3(config-if)#no shutdown

2.配置ospf

R2(config)#router ospf 110

R2(config-router)#router-id 2.2.2.2

R2(config-router)#network 23.1.1.0 0.0.0.255 area 0

R2(config-router)#int f0/1

R2(config-if)#ip ospf network point-to-point

R3(config)#router ospf 110

R3(config-router)#router-id 3.3.3.3

R3(config-router)#network 23.1.1.0 0.0.0.255 area 0

R3(config-router)#passive-interface loopback 1

R3(config-router)#network 3.3.3.0 0.0.0.255 area 0

R3(config-router)#int f0/0

R3(config-if)#ip ospf network point-to-point

R3(config)#int lo 1

R3(config-if)#ip ospf network point-to-point

3.配置eigrp

R1(config)#router eigrp 90

R1(config-router)#no auto-summary  

R1(config-router)#network 12.1.1.0 0.0.0.255

R1(config-router)#network 1.1.1.0 0.0.0.255  

R1(config-router)#passive-interface loopback 1

R2(config)#router eigrp 90

R2(config-router)#no auto-summary  

R2(config-router)#network 12.1.1.0 0.0.0.255

4.将ospf重发布到eigrp

R2(config)#router eigrp 90

R2(config-router)#redistribute ospf 110 metric 100000 1000 255 1 1500

5. 将eigrp重发布到ospf

R2(config)#router ospf 110

R2(config-router)#redistribute eigrp 90 subnets metric-type 1 metric 30

举报

相关推荐

0 条评论