博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ospf与eigrp通过修改管理距离实现路由的负载
阅读量:6220 次
发布时间:2019-06-21

本文共 4844 字,大约阅读时间需要 16 分钟。

实验拓扑如下ospf与eigrp通过修改管理距离实现路由的负载

实验最后通过traceroute或者查看路由表项判断是否正确
以下为配置文件
--------------------------------R1----------------------------------------
R1>en
R1#show run
Building configuration...

Current configuration : 1399 bytes

!
! Last configuration change at 21:16:15 CST Sat Feb 16 2019
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
aqm-register-fnf
!
!
no aaa new-model
clock timezone CST 8 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!

!

!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface Loopback1
ip address 2.2.2.2 255.255.255.0
!
interface Ethernet0/0
no ip address
shutdown
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
no ip address
shutdown
!
interface Ethernet0/3
no ip address
shutdown
!
interface Serial1/0
ip address 192.168.12.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
!
router eigrp 100
network 1.0.0.0
network 2.0.0.0
network 192.168.12.0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input none
!
!
end

--------------------------------R2----------------------------------------

R2#show run

Building configuration...

Current configuration : 1418 bytes

!
! Last configuration change at 21:13:58 CST Sat Feb 16 2019
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
aqm-register-fnf
!
!
no aaa new-model
clock timezone CST 8 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!

!

!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
no ip address
shutdown
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
no ip address
shutdown
!
interface Ethernet0/3
no ip address
shutdown
!
interface Serial1/0
ip address 192.168.12.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
!
router eigrp 100
network 192.168.12.0
distance 130 192.168.12.1 0.0.0.0 2
!
router ospf 1
network 192.168.23.2 0.0.0.0 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
access-list 2 permit 2.2.2.0
!
control-plane
!
!
!
!
!
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input none
!
!
end

--------------------------------R3----------------------------------------

R3>en

R3#show run
Building configuration...

Current configuration : 1477 bytes

!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
aqm-register-fnf
!
!
no aaa new-model
clock timezone CST 8 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!

!

!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback1
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point
!
interface Ethernet0/0
no ip address
shutdown
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
no ip address
shutdown
!
interface Ethernet0/3
no ip address
shutdown
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
network 1.1.1.0 0.0.0.255 area 0
network 2.2.2.0 0.0.0.255 area 0
network 192.168.23.3 0.0.0.0 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input none
!
!
end

描述:distance 130 192.168.12.1 0.0.0.0 2

修改匹配acl表2并且路由来源是192.168.12.1的这条路由的AD值为130
注:思科中ospf的AD值为110

转载于:https://blog.51cto.com/14186275/2350987

你可能感兴趣的文章
17.3. SNMP 命令
查看>>
快看Sample代码,速学Swift语言(1)-语法速览
查看>>
算法之【牛顿迭代法】
查看>>
Golang入门教程(二)Ubuntu16.04下安装golang(实例:Golang 定时任务管理器)
查看>>
Maven - 项目结构
查看>>
大话系统之权限控制
查看>>
如何在CRM系统中集成ActiveReports最终报表设计器
查看>>
10.2.0.4 11.1.0.7UNDO可能异常增大的BUG
查看>>
大学里的几件趣事(一)
查看>>
C#流水号生成汇总(四)
查看>>
Linux 内存使用方法详细解析
查看>>
工程师文化,是一种内心的欲望与恐惧的表达。对创造的欲望,对世界的恐惧。因为欲望而创造,因为恐惧而改造。创造世界,改造世界。(转)...
查看>>
直击游戏行业音视频应用——12月2日livevideostack Meet成都沙龙
查看>>
[20170703]ora-12516 ora-12514 rac.txt
查看>>
SQL 2008执行语句遇到内存不足(1)——error 701
查看>>
Sphinx
查看>>
【Spring】Spring常用配置-事件(Application Event)
查看>>
Git是个好工具(转)
查看>>
ffmpeg处理RTMP流媒体的命令大全
查看>>
OpenCV轮廓检测,计算物体旋转角度
查看>>