EIGRP负载均衡实验

来源:本站原创 CISCO 超过608 views围观 0条评论

R1   ————–R2

|       |

|       |

R3—————-R4

——————————–

R1

interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface Loopback2
ip address 10.10.1.1 255.255.255.0
!       
interface Loopback3
ip address 10.10.2.2 255.255.255.0
!
interface Loopback4
ip address 10.10.3.3 255.255.255.0
!
interface Loopback5
ip address 10.10.4.4 255.255.255.0
!
interface FastEthernet0/0
ip address 123.123.123.1 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
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
offset-list 99 out 3000000
network 1.1.1.1 0.0.0.0
network 10.10.0.0 0.0.255.255
network 123.123.123.0 0.0.0.255
no auto-summary

————————————-

R2

hostname r2
!
!
ip subnet-zero
!
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 123.123.123.2 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
no arp frame-relay
frame-relay map ip 222.222.23.3 202 broadcast
no frame-relay inverse-arp
frame-relay intf-type dce
!
interface Serial1/2
ip address 24.24.24.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay map ip 24.24.24.4 204 broadcast
no frame-relay inverse-arp
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 100
network 2.2.2.2 0.0.0.0
network 24.24.24.0 0.0.0.255
network 123.123.123.0 0.0.0.255
no auto-summary
!
ip classless
ip http server
!
!
line con 0
line aux 0
line vty 0 4
!
end

————————————

R3

hostname r3
!
!
ip subnet-zero
!
!
!
frame-relay switching
!
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Loopback11
ip address 33.33.1.1 255.255.255.0
!
interface Loopback12
ip address 33.33.2.2 255.255.255.0
!
interface Loopback13
ip address 33.33.3.3 255.255.255.0
!
interface Loopback14
ip address 33.33.4.4 255.255.255.0
!
interface FastEthernet0/0
ip address 123.123.123.3 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay map ip 222.222.23.2 202 broadcast
no frame-relay inverse-arp
!       
interface Serial1/1
ip address 34.34.34.3 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay map ip 34.34.34.4 304 broadcast
frame-relay intf-type dce
!
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
offset-list 99 out 3000000
network 3.3.3.3 0.0.0.0
network 3.3.3.0 0.0.0.255
network 33.33.0.0 0.0.255.255
network 34.34.34.0 0.0.0.255
network 123.123.123.0 0.0.0.255
no auto-summary
!
ip classless
ip http server
!
access-list 99 permit 33.33.0.0 0.0.255.255
!
line con 0
line aux 0
line vty 0 4
!
end
——————————————-

R4

hostname r4
!
!
ip subnet-zero
!
!
!
!
!
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface Serial1/0
ip address 34.34.34.4 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay map ip 34.34.34.3 304 broadcast
no frame-relay inverse-arp
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
ip address 24.24.24.4 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay map ip 24.24.24.2 402 broadcast
no frame-relay inverse-arp
!       
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 100
network 4.4.4.4 0.0.0.0
network 24.24.24.0 0.0.0.255
network 34.34.34.0 0.0.0.255
no auto-summary
!
ip classless
ip http server
!
!
line con 0
line aux 0
line vty 0 4
!
end

结果

r2#sh ip route
Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP
       D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
       N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
       E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP
       i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
       ia – IS-IS inter area, * – candidate default, U – per-user static route
       o – ODR, P – periodic downloaded static route

Gateway of last resort is not set

     34.0.0.0/24 is subnetted, 1 subnets
D       34.34.34.0 [90/2172416] via 123.123.123.3, 00:01:40, FastEthernet0/0
     1.0.0.0/24 is subnetted, 1 subnets
D       1.1.1.0 [90/156160] via 123.123.123.1, 00:01:38, FastEthernet0/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
     33.0.0.0/24 is subnetted, 4 subnets
D       33.33.1.0 [90/2809856] via 24.24.24.4, 00:01:40, Serial1/2
D       33.33.2.0 [90/2809856] via 24.24.24.4, 00:01:40, Serial1/2
D       33.33.3.0 [90/2809856] via 24.24.24.4, 00:01:40, Serial1/2
D       33.33.4.0 [90/2809856] via 24.24.24.4, 00:01:40, Serial1/2
     3.0.0.0/24 is subnetted, 1 subnets
D       3.3.3.0 [90/156160] via 123.123.123.3, 00:01:40, FastEthernet0/0
     4.0.0.0/24 is subnetted, 1 subnets
D       4.4.4.0 [90/2297856] via 24.24.24.4, 00:01:40, Serial1/2
     24.0.0.0/24 is subnetted, 1 subnets
C       24.24.24.0 is directly connected, Serial1/2
     10.0.0.0/24 is subnetted, 4 subnets
D       10.10.1.0 [90/156160] via 123.123.123.1, 00:01:38, FastEthernet0/0
D       10.10.2.0 [90/156160] via 123.123.123.1, 00:01:38, FastEthernet0/0
D       10.10.3.0 [90/156160] via 123.123.123.1, 00:01:38, FastEthernet0/0
D       10.10.4.0 [90/156160] via 123.123.123.1, 00:01:38, FastEthernet0/0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.123.123.0 is directly connected, FastEthernet0/0
r2#

用OFFLIST做效果还是不错的哈哈

文章出自:CCIE那点事 http://www.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文链接:http://www.jdccie.com/?p=354转载请注明转自CCIE那点事
如果喜欢:点此订阅本站
  • 相关文章
  • 为您推荐
  • 各种观点

暂时还木有人评论,坐等沙发!
发表评论

您必须 [ 登录 ] 才能发表留言!