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

How to change AD of specific routes in EIGRP NX-OS 6.2

Sonain Zia
Level 1
Level 1

Hi,

I need some help in converting following IOS config to NX-OS

router eigrp 10
 distance 18 10.16.0.16 0.0.0.7 bgp_acl  <-----
 distance 18 10.16.0.24 0.0.0.7 distance_18     <-----
 no auto-summary

 

ip access-list standard distance_18
 permit 10.1.1.1
 permit 10.14.52.0
 permit 10.13.52.0
 permit 10.106.1.1
ip access-list standard bgp_acl
 permit 10.1.1.1
 permit 10.106.1.1

how do I change administrative distance of specific routes in NX-OS learned from sources specified in distance command?

In NX-OS I see that distance command changes AD globally for all internal and external routes.

 

Thank you

Sonain
3 Replies 3

Robert Correiro
Level 1
Level 1

Hi Sonain Zia,

You'll need to use the table-map command for the EIGRP instance. Then you'll need to configure a route-map to filter traffic / set the AD.

 

Please look into this configuration guide:

http://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/6_x/nx-os/unicast/configuration/guide/l3_cli_nxos.pdf

 

Check the examples for advanced OSPFv3 and advanced EIGRP, starting on pages 226 and 265 respectively.

 

Hope this helps.

Hi Robert,

Thank you for your reply.

I formulate this and then I am kind of lost. do I need to specify both source subnet range in single list ?

 

router eigrp 10
address-family ipv4 unicast
table-map vpls-route-AD

route-map vpls-route-AD permit 10
match ip route-source prefix-list vpls-route-source
set distance 18

ip prefix-list vpls-route-source seq 5 permit 10.16.0.16/29
ip prefix-list vpls-route-source seq 10 permit 10.16.0.24/29
ip prefix-list vpls-route-source seq 15 permit 10.13.52.0/24
ip prefix-list vpls-route-source seq 20 permit 10.14.52.0/24
ip prefix-list vpls-route-source seq 25 permit 10.1.1.1/32
ip prefix-list vpls-route-source seq 30 permit 10.106.1.1/32

Sonain

This is what I have finalized. first I tried with 2 prefix-list to match for routes but route-map has limitation and you can't use 2 address type prefix-lists.

 

router eigrp 10
address-family ipv4 unicast
table-map vpls-route-AD

route-map vpls-route-AD permit 10
match ip route-source prefix-list vpls-route-source
match ip address prefix-list vpls-route
set distance 18

ip prefix-list vpls-route-source seq 5 permit 10.16.0.16/29
ip prefix-list vpls-route-source seq 10 permit 10.16.0.24/29
 

ip prefix-list vpls-route seq 15 permit 10.13.52.0/24
ip prefix-list vpls-route seq 20 permit 10.14.52.0/24
ip prefix-list vpls-route seq 25 permit 10.1.1.1/32
ip prefix-list vpls-route seq 30 permit 10.106.1.1/32

 

Sonain
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco