CEF Forwarding

"In the example above I have three routers. R3 has a loopback interface that we want to reach from R1. I will use static routes for reachability:

R1(config)#ip route 3.3.3.0 255.255.255.0 192.168.23.3
R1(config)#ip route 192.168.23.0 255.255.255.0 192.168.12.2

The first static route is to reach the loopback0 interface of R3 and points to the FastEthernet0/0 interface of R3. The second static route is required to reach network 192.168.23.0/24."

I don’t understand why you would configure 192.168.23.3 as your next hop interface in order to get to that network. I would think that 192.168.12.1 or .2 as a next hop would be sufficient to get that route to route effectively. you aren’t going to necessarily know in the case of a external resource what the IP address is of the interface that 192.168.23.3 is currently inhabiting in the case of having a provider.

ip route { ip-prefix | ip-addr/ip-mask } {[ next-hop | nh-prefix ] | [ interface next-hop | nh-prefix ]} [ name nexthop-name] [ tag tag-value] [ pref ]

A post was merged into an existing topic: CEF (Cisco Express Forwarding)