09-08-2014 07:57 AM - edited 03-05-2019 06:53 AM
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
09-08-2014 01:31 PM
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.
09-08-2014 02:29 PM
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
09-12-2014 02:38 PM
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
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: