protocols static table <table> interface-route <subnet> next-hop-interface <interface>
Configures the next-hop interface for an interface-based static route in an alternate routing table.
- static
- A static route in an alternate routing table.
- table table
- Multi-node. An alternate routing table to be used by policy-based routing rules.
- interface-route subnet
- Multi-node. An interface-based static route. The format is a destination subnet of the form address/prefix (x.x.x.xlx).
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 {
table 1
interface-route subnet {
next-hop-interface interface {
disable
distance distance
}
}
}
}
}
Use this command to configure interface-based static routes in an alternate routing table. The alternate routing tables are used with policy-based routing. Refer to Ciena Vyatta Network OS Policy-based Routing Configuration Guide.
Use the set form of this command to configure a next-hop interface.
Use the delete form of this command to remove a next-hop interface.
Use the show form of this command to view a next-hop interface.