When a router receives a packet it normally decides where to forward it based on the destination address in the packet, which it then uses to look
up an entry in a routing table. With the IP forwarding next-hop feature, a network administrator can choose to forward a packet based on the source address, not the destination address.
1.) To globally enable the IP forwarding next-hop feature, you must first enter the following from Global Configuration mode:
#[no] ip fwd-nh enable
2.) Then create an IP forwarding next-hop policy, also enter the following from Global Configuration mode:
#ip fwd-nh <policy-name> match <source-ip/mask> set next-hop <next-hop>
3.) To apply an IP forwarding next-hop policy to a VLAN, enter the following from Interface Configuration mode:
#ip fwd-nh policy <policy-name> [mode {drop | normal-routing}]
4.) To delete a policy, enter the following from Global Configuration mode:
#no ip fwd-nh <policy-name>
To check the status and configuration of ip-forwarding use following CMDs:-
1.) To display the global status of the IP forwarding next-hop feature, enter the following from the PrivExec mode:
#show ip fwd-nh
2.) To display the IP forwarding next-hop policy configuration, enter the following from the PrivExec mode:
#show ip fwd-nh policy {<policy-name> | interface [vlan <vid>]}
Limitations:
The following are the limitations for IP Forwarding Next-hop:
• The IP Forwarding Next-hop feature is supported on the Ethernet Routing Switch 5600
only. it does not support on ERS 5510, 5520 and 5530
• In a hybrid stack, you can use IP Forwarding Next-hop functionality only on the Ethernet
Routing Switch 5600 unit.
• Multipath is not supported.