home

Supported platforms

Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

protocols static interface-route <subnet> next-hop-interface <interface>

Configures the next-hop interface for an interface-based static route.

set protocols static interface-route subnet next-hop-interface interface [ disable | distance distance ]
delete protocols static interface-route subnet next-hop-interface interface [ disable | distance ]
show protocols static interface-route subnet next-hop-interface interface [ disable | distance ]
interface-route subnet
Multi-node. An interface-based static route. The format is a destination subnet of the form address/prefix (h:h:h:h:h:h:h:h/x).

You can define multiple interface-based routes by creating multiple interface-route configuration nodes.

next-hop-interface interface
The next-hop interface.
disable
Disables the interface-based static route.
distance distance
The next-hop distance for this route. Routes with a smaller distance are selected before those with a larger distance. The distance ranges from 1 through 255. The default distance is 1.

Configuration mode

protocols {
	static {
		interface-route subnet {
			next-hop-interface interface {
				disable
				distance distance
			}
		}
	}

}

Use the set form of this command to configure the next-hop interface for a static route.

Use the delete form of this command to remove the next-hop interface from a static route.

Use the show form of this command to view the next-hop interface for a static route.