06-11-2023 06:59 AM
hello
I tried to use the 'redistribute connected' command. However, it did not exist in NX-OS 9.6.9.
Q1. I've seen an alternate command, but does this completely replace 'redistribute connected'?
Q2. Additionally, What is the difference between the 'set' and 'match' commands?
[example]
router xxx
redistribute direct route-map-naming permit 10
!
route-map-naming permit 10
match interface ethernet 0/0
Best regards,
Solved! Go to Solution.
06-11-2023 07:22 AM
Hello @goyourmin,
The 'match' command is used to specify the criteria for matching routes, while the 'set' command is used to define the actions to be taken on the matched routes.
In this case, the route-map-naming permit 10 configuration block specifies that the route map permits routes that match certain criteria. The 'match interface ethernet 0/0' command is used to match routes that are learned through the Ethernet interface 0/0.
Also, the [redistribute direct] command is used to redistribute directly connected routes into a routing protocol.
06-11-2023 06:09 PM
this lab for match interface in NSK
I use
redistribute direct route-map MHM
under EIGRP
route-map MHM permit 10
match interface e1/5
and you can see the EIGRP only advertise the prefix direct connect to this interface e1/5
06-11-2023 07:03 AM - edited 06-11-2023 07:31 AM
Use Redistrubte direct instead of redistrubte connected
And about match and set' if you want to filter prefix you redistrubte use match if you want to change anythink in prefix use set' like change the metric
06-11-2023 06:09 PM
this lab for match interface in NSK
I use
redistribute direct route-map MHM
under EIGRP
route-map MHM permit 10
match interface e1/5
and you can see the EIGRP only advertise the prefix direct connect to this interface e1/5
06-11-2023 07:22 AM
Hello @goyourmin,
The 'match' command is used to specify the criteria for matching routes, while the 'set' command is used to define the actions to be taken on the matched routes.
In this case, the route-map-naming permit 10 configuration block specifies that the route map permits routes that match certain criteria. The 'match interface ethernet 0/0' command is used to match routes that are learned through the Ethernet interface 0/0.
Also, the [redistribute direct] command is used to redistribute directly connected routes into a routing protocol.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide