cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
650
Views
0
Helpful
3
Replies

How set ad. distance for external eigrp?

egor zem
Level 1
Level 1

Hello! I have two EIGRP routers - R1(192.168.0.1) and R2(192.168.0.2). R1 have two lo-interface. lo1 network - 1.1.1.0 is injecting to eigrp by using redistribut command. lo2-network - 2.2.2.0 is injecting to eigrp by using network command. As the result, R2 have following route table:

1.0.0.0/24 is subnetted, 1 subnets
D EX 1.1.1.0 [170/156160] via 192.168.0.1, 00:15:09, FastEthernet0/0
C 192.168.0.0 is directly connected, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/156160] via 192.168.0.1, 00:15:09, FastEthernet0/0

I am doing follow command:

access-list 10 permit 1.1.1.0 0.0.0.255
access-list 10 permit 2.2.2.0 0.0.0.255

router eigrp 100
distance 20 192.168.0.0 0.0.0.255 10

As the result, R2 have following route table:

1.0.0.0/24 is subnetted, 1 subnets
D EX 1.1.1.0 [170/156160] via 192.168.0.1, 00:15:09, FastEthernet0/0
C 192.168.0.0 is directly connected, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [20/156160] via 192.168.0.1, 00:15:09, FastEthernet0/0

AD for internal EIGRP network 2.2.2.0 is chsnging and equal 20. But AD for external network 1.1.1.0 isn't changing and equal 170. How set ad. distance for external eigrp?

Show access-list:
Standard IP access list 10
10 permit 1.1.1.0, wildcard bits 0.0.0.255 (2 matches)
20 permit 2.2.2.0, wildcard bits 0.0.0.255 (2 matches)

3 Replies 3

antonio.guirado
Level 3
Level 3

Hello,

you can use:

router eigrp

   distante eigrp

!

It applies for all routes learned by EIGRP.

Regards.

Peter Paluch
Cisco Employee
Cisco Employee

Hi Egor,

If I remember correctly, you can not use the above method to modify the AD of EIGRP external routes. From what I know, you can only change the AD of all external routes summarily using the distance eigrp internalAD externalAD command. You can not make this modification specific to just a selected set of routes via an ACL.

Best regards,

Peter

Hi,

As Peter says, it is not possible to change the AD per prefix for EIGRP external routes. If you wan to make the routes less preferred, you may change the AD for all the external routes with distance eigrp or use an offset-list to select a set of routes, changing the metric instead of the AD.

Hope this helps,

Jose.

Review Cisco Networking for a $25 gift card