vrouter-static-route-add
This command adds a static route entry for an existing virtual router (vRouter) service for a fabric, cluster, standalone switch, or virtual network (vNET).
Syntax vrouter-static-route-add
vrouter-name name-string |
Specify the name of the vRouter service. |
network ip-address |
Specify the IP subnet of the network that you want to add a static route. |
netmask netmask |
Specify the netmask of the IP subnet. |
gateway-ip ip-address |
Specify the IP address of the gateway that you want to route packets destined for the network IP address to. |
drop |
Specify if you want to drop packets to create a null static route. Note: This option is mutually exclusive with gateway-ip parameter. |
bfd-dst-ip ip-address |
Specify the destination IP address for BFD monitoring. |
distance number |
Specify the administrative distance as a number between 0, and 255. • 0 — Connected interface • 1 — Static route • 110 — OSPF • 120 — RIP • 200 — Internal BGP |
interface vrouter-interface-nic |
Specify the vRouter interface for the static route, if the gateway-ip is a link-local IPv6 address. |
vrf vrf |
Specify the name of the VRF. |
Defaults None.
Access CLI
History
Version 1.2 |
Command introduced. |
Version 2.1 |
The parameter distance added. |
Version 2.6.2 |
The parameter bfd-dst-ip added. |
Version 3.0.0 |
The parameter interface added. |
Version 3.0.3 |
The parameter drop added. |
Usage Each fabric, cluster, standalone switch, or virtual network (vNET) can provide tenants with a virtual router (vRouter) service that forwards traffic between networks, and implements Layer 3 protocols. This command adds a static route entrv for an existing Router service.
Examples To add a static route entry for the vRouter service, MyvService, use the following command:
CLI (network-admin@switch) > vrouter-static-route-add vrouter-name MyvService network 10.1.0.0/16 gateway-ip 10.0.0.1