cisco nxos route redistribution
2011.11.06
wanted to redistribute some static routes into eigrp, this is handled differently in nxos. Â all redistributes need to use a route map, easiest to populate the route map with a prefix list.
examine your static routes…
n7k1# sh run | inc "ip route " ip route 0.0.0.0/0 10.0.0.2 ip route 10.10.10.0/24 10.0.0.4 ip route 10.20.10.0/20 10.0.0.1 ip route 192.168.172.0/24 10.10.10.3
create a prefix list of subnets you want into eigrp..
ip prefix-list examplestatic seq 15 permit 10.10.10.0/24 ip prefix-list examplestatic seq 20 permit 10.20.10.0/20 ip prefix-list examplestatic seq 25 permit 192.168.172.0/24
create a route-map, add your prefix-list to it…
route-map examplestaticmap permit 10
match ip address prefix-list examplestatic
add them to your eigrp instance…
router eigrp 14 redistribute static route-map examplestaticmap
validate whether the routes showed up on your other routers; this is a downstream ios device:
2911#sh ip route 10.20.10.0 Routing entry for 10.20.10.0/20 Known via "eigrp 14", distance 170, metric 52224, type external Redistributing via eigrp 14 Last update from 192.168.97.19 on GigabitEthernet0/0, 3w5d ago Routing Descriptor Blocks: * 192.168.97.20, from 192.168.97.20, 3w5d ago, via GigabitEthernet0/0 Route metric is 52224, traffic share count is 1 Total delay is 1040 microseconds, minimum bandwidth is 100000 Kbit Reliability 255/255, minimum MTU 1492 bytes Loading 1/255, Hops 4 192.168.97.19, from 192.168.97.19, 3w5d ago, via GigabitEthernet0/0 Route metric is 52224, traffic share count is 1 Total delay is 1040 microseconds, minimum bandwidth is 100000 Kbit Reliability 255/255, minimum MTU 1492 bytes Loading 1/255, Hops 42911#sh ip route | beg 10.20.10 D EX 10.20.10.0/20 [170/52224] via 192.168.97.20, 3w5d, GigabitEthernet0/0 [170/52224] via 192.168.97.19, 3w5d, GigabitEthernet0/0
that’s it. Â my examples show up twice because i did the redistribution on two n7ks.