"If the interface associated with the first next hop specified with the set ip next-hop command is down, the optionally specified IP addresses are tried in turn."
So 220.127.116.11 from route-map One will only be used when 18.104.22.168 is not adjacent to the router.
For route-map Two, as stated in CCNP text book, the router evaluates all set commands in the order they are presented. And as soon as address or interface has been chosen, other set commands are ignored.
nice question! I'm not quite sure with the second example, I'd like to do some testing with gns3 later on.
In the first example, 22.214.171.124 will be set as the next-hop if an approriate entry exists in the routing table. If not, the same check is done for 126.96.36.199; if doesn't have a routing table entry neither, the packets are forwarded according to the routing table.
I think in the second example, only 188.8.131.52 will be evaluated. There is a preference rule for different set actions:
1. set ip next-hop
2. set interface
3. set ip default next-hop
4. set default interface
Subsequent set actions of the same type should be ignored (I guess).
the doc you referenced is about the difference between set ip default next-hop and set ip next-hop:
-set ip default next-hop will take effect if there is not a specific route to destination(it's the same as a default route in the RIB) whereas set ip next-hop will always take effect provided the next-hop is directly connected and can be recursed to an outgoing interface and that even if there is a specific route in RIB for this destination.
We are pleased to announce availability of Beta software for 16.6.3.
16.6.3 will be the second rebuild on the 16.6 release train targeted
towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are
looking for early feedback from customers befor...
Introduction Featured Speakers Luis Espejel is the Telecommunications
Manager of IENova, an Oil & Gas company. Currently he works with Cisco
IOS® and Cisco IOS XE platforms, and NX to some extent. He has also
worked as a Senior Engineer with the Routing P...
In this session you can learn more about Layer 3 multicast and the best
practices to identify possible threats and take security measures. It
provides an overview of basic multicast, the best security practices for
use of this technology, and recommendati...