注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 小五思科技术学习笔记之SSH
 帮助

EIGRP 非等价负载均衡


2007-02-13 10:40:06
 标签:负载均衡 EIGRP   [推送到技术圈]

版权声明:原创作品,如需转载,请与作者联系。否则将追究法律责任。

 

r1 配置

router>en
router#conf t
router(config)#host r1
r1(config)#no ip domain-lookup
r1(config)#ban mot #Welcome to r1#
r1(config)#ena sec 123
r1(config)#line vty 0 4
r1(config-line)#no login
r1(config-line)#int e 1/0
r1(config-if)#des link to r2
r1(config-if)#ip add 153.1.1.1 255.255.255.128
r1(config-if)#no shut
r1(config-if)#int f 0/0
r1(config-if)#des link to r5
r1(config-if)#ip add 152.1.1.1 255.255.255.252
r1(config-if)#no shut
r1(config-if)#int lo0
r1(config-if)#des test ip
r1(config-if)#ip add 152.1.11.1 255.255.255.0
r1(config-if)#int lo1
r1(config-if)#des test ip
r1(config-if)#ip add 152.1.10.1 255.255.255.0
r1(config-if)#router eigrp 10
r1(config-route)#network 152.1.11.0 0.0.0.255
r1(config-route)#network 152.1.10.0 0.0.0.255
r1(config-route)#network 152.1.1.0 0.0.0.3
r1(config-route)#network 153.1.1.0 0.0.0.127
r1(config-route)#end
r1#

r2 配置

router>en
router#conf t
router(config)#host r2
r2(config)#no ip domain-lookup
r2(config)#ban mot #Welcome to r2#
r2(config)#ena sec 123
r2(config)#line vty 0 4
r2(config-line)#no login
r2(config-line)#int e 1/0
r2(config-if)#des link to r1
r2(config-if)#ip add 153.1.1.2 255.255.255.128
r2(config-if)#no shut
r2(config-if)#int f 0/0
r2(config-if)#des link to r5
r2(config-if)#ip add 152.1.1.9 255.255.255.252
r2(config-if)#no shut
r2(config-if)#int lo0
r2(config-if)#des test ip
r2(config-if)#ip add 153.1.1.129 255.255.255.128
r2(config-if)#router eigrp 10
r2(config-route)#variance 8
r2(config-route)#network 152.1.1.9 0.0.0.3
r2(config-route)#network 153.1.1.0 0.0.0.127
r2(config-route)#network 153.1.1.128 0.0.0.127
r2(config-route)#end
r2#

r3 配置

router>en
router#conf t
router(config)#host r3
r3(config)#no ip domain-lookup
r3(config)#ban mot #Welcome to r3#
r3(config)#ena sec 123
r3(config)#line vty 0 4
r3(config-line)#no login
r3(config-line)#int f 0/0
r3(config-if)#des link to r5
r3(config-if)#ip add 152.1.1.6 255.255.255.252
r3(config-if)#no shut
r3(config-if)#int f 1/0
r3(config-if)#des link to r4
r3(config-if)#ip add 152.1.2.1 255.255.255.0
r3(config-if)#no shut
r3(config-if)#router ospf 1
r3(config-route)#network 152.1.1.4 0.0.0.3 area 0
r3(config-route)#redistribution rip metric 3
r3(config-route)#router rip
r3(config-route)#network 152.1.0.0
r3(config-route)#redistribution ospf 1 metric 10
r3(config-route)#end
r3#

r4 配置

router>en
router#conf t
router(config)#host r4
r4(config)#no ip domain-lookup
r4(config)#ban mot #Welcome to r4#
r4(config)#ena sec 123
r4(config)#line vty 0 4
r4(config-line)#no login
r4(config-line)#int f 0/0
r4(config-if)#des link to r3
r4(config-if)#ip add 152.1.2.2 255.255.255.0
r4(config-if)#no shut
r4(config-if)#int lo0
r4(config-if)#des test ip
r4(config-if)#ip add 152.1.3.1 255.255.255.0
r4(config-if)#exit
r4(config)#ip route 152.1.1.0 255.255.255.0 152.1.2.1
r4(config-route)#router rip
r4(config-route)#network 152.1.0.0
r4(config-route)#end
r4#

r5 配置

router>en
router#conf t
router(config)#host r5
r5(config)#no ip domain-lookup
r5(config)#ban mot #Welcome to r5#
r5(config)#ena sec 123
r5(config)#line vty 0 4
r5(config-line)#no login
r5(config-line)#int f 0/0
r5(config-if)#des link to r1
r5(config-if)#ip add 152.1.1.2 255.255.255.252
r5(config-if)#no shut
r5(config-if)#int f 1/0
r5(config-if)#des link to r3
r5(config-if)#ip add 152.1.1.5 255.255.255.252
r5(config-if)#no shut
r5(config-if)#int f 2/0
r5(config-if)#des link to r2
r5(config-if)#ip add 152.1.1.10 255.255.255.252
r5(config-if)#no shut
r5(config-if)#exit
r5(config)#ip route 152.1.2.0 255.255.255.0 152.1.1.6
r5(config)#ip route 152.1.3.0 255.255.255.0 152.1.1.6
r5(config)#router ospf 1
r5(config-route)#network 152.1.1.5 0.0.0.3 area 0
r5(config-route)#redistribution eigrp 10 metric 10
r5(config-route)#router eigrp 10
r5(config-route)#network 152.1.1.0 0.0.0.3
r5(config-route)#network 152.1.1.8 0.0.0.3
r5(config-route)#redistribution ospf 1 metric 10000 100 255 1 1500
r5(config-route)#redistribution static
r5(config-route)#end
r5#

en
Password:
r1#show run
Building configuration...

Current configuration : 1194 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$AKlt$lor5rQiBTKVVLSqaLVTlX.
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 description test ip
 ip address 152.1.11.1 255.255.255.0
!
interface Loopback1
 description test ip
 ip address 152.1.10.1 255.255.255.0
!
interface FastEthernet0/0
 description link to r5
 ip address 152.1.1.1 255.255.255.252
 duplex half
!
interface Ethernet1/0
 description link to r2
 ip address 153.1.1.1 255.255.255.128
 duplex half
!
interface Ethernet1/1
 no ip address
 shutdown
 duplex half
!
interface Ethernet1/2
 no ip address
 shutdown
 duplex half
!
interface Ethernet1/3
 no ip address
 shutdown
 duplex half
!
router eigrp 10
 network 152.1.1.0 0.0.0.3
 network 152.1.10.0 0.0.0.255
 network 152.1.11.0 0.0.0.255
 network 153.1.1.0 0.0.0.127
 auto-summary
!
ip classless
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
 shutdown
!
banner motd ^CWelcome to r1^C
!
line con 0
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
 no login
!
!
end

r1#153.1.1.2
Trying 153.1.1.2 ... Open
Welcome to r2
r2>en
Password:

r2#show run
Building configuration...

Current configuration : 1100 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$yPKn$qzH4F0Nke7tI22ecOvrCs/
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 description test ip
 ip address 153.1.1.129 255.255.255.128
!
interface FastEthernet0/0
 description link to r5
 ip address 152.1.1.9 255.255.255.252
 duplex half
!
 interface Ethernet1/0
 description link to r1
 ip address 153.1.1.2 255.255.255.252
 duplex half
!
interface Ethernet1/1
 no ip address
 shutdown
 duplex half
!
interface Ethernet1/2
 no ip address
 shutdown
 duplex half
!
interface Ethernet1/3
 no ip address
 shutdown
 duplex half
!
router eigrp 10
 variance 8
 network 152.1.1.8 0.0.0.3
 network 153.1.1.0 0.0.0.127
 network 153.1.1.128 0.0.0.127
 auto-summary
!
ip classless
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
 shutdown
!
banner motd ^CWelcome to r2^C
!
line con 0
 stopbits 1
line aux 0
stopbits 1
line vty 0 4
 no login
!
!
end

r2#152.1.1.2
Trying 152.1.1.2 ... Open
Welcome to r5
r5>en
Password:
r5#show run
Building configuration...

Current configuration : 1164 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r5
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$oRSA$5Zdxt7eg9jHUXeMmiP/5E0
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 description link to r1
 ip address 152.1.1.2 255.255.255.252
 duplex half
!
interface FastEthernet1/0
 description link to r3
 ip address 152.1.1.5 255.255.255.252
 duplex half
!
interface FastEthernet2/0
 description link to r2
 ip address 152.1.1.10 255.255.255.252
 duplex half
!
router eigrp 10
 redistribute static
 redistribute ospf 1 metric 10000 100 255 1 1500
 network 152.1.1.0 0.0.0.3
 network 152.1.1.8 0.0.0.3
 auto-summary
!
router ospf 1
 log-adjacency-changes
 redistribute eigrp 10 metric 10 subnets
 network 152.1.1.4 0.0.0.3 area 0
!
ip classless
ip route 152.1.2.0 255.255.255.0 152.1.1.6
ip route 152.1.3.0 255.255.255.0 152.1.1.6
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
 shutdown
!
banner motd ^CWelcome to r5^C
!
line con 0
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
 no login
!
!
end

r5#152.1.1.6
Trying 152.1.1.6 ... Open
Welcome to r3
r3>en
Password:
r3#show run
Building configuration...

Current configuration : 873 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$hnOb$AoqYUyG1kl8Cu67tnAs4H0
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 description link to r5
 ip address 152.1.1.6 255.255.255.252
 duplex half
!
interface FastEthernet1/0
 description link to r4
 ip address 152.1.2.1 255.255.255.0
 duplex half
!
router ospf 1
 log-adjacency-changes
 redistribute rip metric 3 subnets
 network 152.1.1.4 0.0.0.3 area 0
!
router rip
 redistribute ospf 1 metric 10
 network 152.1.0.0
!
ip classless
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
 shutdown
!
banner motd ^CWelcome to r3^C
!
line con 0
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
 no login
!
!
end

r3#152.1.2.2
Trying 152.1.2.2 ... Open
Welcome to r4
r4>en
Password:
r4# show run
Building configuration...

Current configuration : 753 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r4
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$jqSv$bp/lMMdOblVw6EdnF.iOK.
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 description test ip
 ip address 152.1.3.1 255.255.255.0
!
interface FastEthernet0/0
 description link to r3
 ip address 152.1.2.2 255.255.255.0
 duplex half
!
router rip
 network 152.1.0.0
!
ip classless
ip route 152.1.1.0 255.255.255.0 152.1.2.1
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
 shutdown
!
banner motd ^CWelcome to r4^C
!
line con 0
 stopbits 1
line aux 0
stopbits 1
line vty 0 4
 no login
!
!
end

r4#

本文出自 “人类一思考,上帝都发笑” 博客,转载请与作者联系!



上一篇 distance 选路  下一篇 BGP 注入过滤



    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: