Saturday, Jul 31, 2010
Login

Will Distance Command Alter EIGRP EX Route’s Administrative Distance?

rack21

We have R1 and R2 in this topology. The network diagram above is  general topology. Only R1 and R2 are used in this discussion.

R1 and R2 are both running EIGRP. R1 and R2 running EIGRP 100. R2 is running EIGRP 200 and its running on R2′s Lo2. I am trying to change the administrative distance of the routes from R2 on R1 using distance command.

Here’s the config

R1#sh run
interface Loopback0
ip address 1.1.0.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback1
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback2
ip address 1.1.2.1 255.255.255.0
ip ospf network point-to-point
!
interface Serial0/0
ip address 12.1.1.1 255.255.255.252
serial restart-delay 0
clock rate 64000
!
interface Serial0/1
ip address 13.1.1.1 255.255.255.252
serial restart-delay 0
clock rate 64000
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 100
network 1.1.0.0 0.0.255.255
network 12.1.1.1 0.0.0.0
distance 10 12.1.1.2 0.0.0.0 EIGRPDISTANCE2210
no auto-summary
!
ip http server
no ip http secure-server
!
!
!
!
ip access-list standard EIGRPDISTANCE2210
permit 2.2.0.0 log
permit 2.2.2.0 log
!
!

R1#sh ip route
Codes: C – connected, S – static, 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
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

1.0.0.0/24 is subnetted, 3 subnets
C       1.1.0.0 is directly connected, Loopback0
C       1.1.1.0 is directly connected, Loopback1
C       1.1.2.0 is directly connected, Loopback2
2.0.0.0/24 is subnetted, 3 subnets
D       2.2.0.0 [10/2297856] via 12.1.1.2, 00:00:45, Serial0/0
D       2.2.1.0 [90/2297856] via 12.1.1.2, 00:00:45, Serial0/0
D EX    2.2.2.0 [170/2172928] via 12.1.1.2, 00:00:45, Serial0/0
12.0.0.0/30 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, Serial0/0

R2#sh run
interface Loopback0
ip address 2.2.0.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback1
ip address 2.2.1.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback2
ip address 2.2.2.1 255.255.255.0
ip ospf network point-to-point
!
interface Serial0/0
ip address 12.1.1.2 255.255.255.252
serial restart-delay 0
clock rate 64000
!
interface Serial0/1
ip address 24.1.1.1 255.255.255.252
serial restart-delay 0
clock rate 64000
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 100
redistribute eigrp 200 metric 1562 12 255 1 1500
network 2.2.0.1 0.0.0.0
network 2.2.1.1 0.0.0.0
network 12.1.1.2 0.0.0.0
no auto-summary
!
router eigrp 200
network 2.2.2.1 0.0.0.0
no auto-summary
!
ip http server
no ip http secure-server
!
!

R2#sh ip route
Codes: C – connected, S – static, 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
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
1.0.0.0/24 is subnetted, 3 subnets
D       1.1.0.0 [90/2297856] via 12.1.1.1, 00:01:21, Serial0/0
D       1.1.1.0 [90/2297856] via 12.1.1.1, 00:01:21, Serial0/0
D       1.1.2.0 [90/2297856] via 12.1.1.1, 00:01:21, Serial0/0
2.0.0.0/24 is subnetted, 3 subnets
C       2.2.0.0 is directly connected, Loopback0
C       2.2.1.0 is directly connected, Loopback1
C       2.2.2.0 is directly connected, Loopback2
12.0.0.0/30 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, Serial0/0

Now as you can see on R1′s routing table. i tried to change the A.D of  2.2.0.0/24 and 2.2.2.0/24 routes to 10. But as a matter of fact, it doesnt seem to reflect on the EIGRP EX route which is redistributed from EIGRP 200 to EIGRP 100 on R2.

You can range all the EX routes A.D using distance eigrp 90 15 under router eigrp 100 on R1.

This will make all your EX routes to have a metric of 10 and will cause the EX routes to be a more preferred route than an internal route considering the fact that everything else stays unaltered.!

R1′s routing table after the distance eigrp 90 15.

R1#sh ip route
Codes: C – connected, S – static, 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
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

1.0.0.0/24 is subnetted, 3 subnets
C       1.1.0.0 is directly connected, Loopback0
C       1.1.1.0 is directly connected, Loopback1
C       1.1.2.0 is directly connected, Loopback2
2.0.0.0/24 is subnetted, 3 subnets
D       2.2.0.0 [10/2297856] via 12.1.1.2, 00:00:45, Serial0/0
D       2.2.1.0 [90/2297856] via 12.1.1.2, 00:00:45, Serial0/0
D EX    2.2.2.0 [15/2172928] via 12.1.1.2, 00:00:45, Serial0/0
12.0.0.0/30 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, Serial0/0

Related posts:

  1. EIGRP Distance Command
  2. Redistribution: RIP,OSPF,EIGRP
  3. EIGRP: Need of Floating Summary Routes
  4. Secrets Of The EIGRP Offset-List Command
  5. Perils of ip route x.x.x.x 255.255.0.0 NextHopIP – Work Around