Static route with interface and next-hop IP on Ethernet media?
in some cases I've seen static routes entered into routers with both an interface and a next-hop IP address. Like so, on IOS 15.2 routers:
ip route 10.0.0.0 255.0.0.0 GigabitEthernet0/0 172.16.1.2
Could anyone elaborate why this is usefull? As I understand it, it's unwise to use interfaces in static routes on broadcast media to avoid unneeded ARP processing and traffic.
The cisco documentation is not very clear on using both parameters at the same time.
In my case the route is also used together with a network statement in BGP to other BGP peers.
Will this way of static routing perhaps disable recursive lookup and route through through other interfaces?