system routes route
To create a new system route or to modify an existing system route, use the system routes route command in global configuration mode. To delete a system route, use the no form of the command.
system routes route destination prefix-length [ gateway gateway] [ dev device]
no system routes route destination prefix-length
Syntax Description
destination |
The route destination address. |
prefix-length |
The netmask for the destination address. |
gateway gateway |
(Optional) The gateway for the route. |
dev device |
(Optional) The device interface that the route will use. |
Command Default
None
Command Modes
Global configuration (config)
Command History
Release | Modification |
---|---|
3.5.1 |
This command was introduced. |
Usage Guidelines
Though only the destination and prefix length are mandatory parameters for creating a route, a valid route requires that you specify the gateway or the interface or both.
Examples
The following command creates a system route to the destination 203.0.113.1:
nfvis(config)# system routes route 203.0.113.1 12 dev lan-br
nfvis(config)# commit
nfvis(config)# end