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 router.

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.

bfd-dst-ip ip-address

Specify the destination IP address for BFD monitoring.

distance number

Specifies the administrative distance in a number from 0 to 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.

drop

Specify if you want to drop packets to create a null static route.

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

vrouter-static-route-remove

This command removes 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-remove vrouter-name name-string network ip-address gateway-ip ip-address

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 router.

gateway-ip ip-address

Specify the IP address of the gateway that you want to route packets destined for the network IP address.

interface vrouter interface nic

Specify the vRouter interface for the static route.

Defaults   None.

Access   CLI

History   

Version 1.2

Command introduced.

Version 2.1

The parameter, gateway, added.

Version 3.0.0

The parameter, interface, added.

Usage   Each fabric, cluster, standalone switch, or virtual network (VNET) can provide its tenants with a virtual router (vRouter) service that forwards traffic between networks and implements Layer 3 protocols. This command removes a static route entrv for an existing Router service.

Examples  To remove static route, 10.0.0.0/16 from the vRouter service, MyvRouter, use the following command:

CLI network-admin@switch > vrouter-static-route-remove vrouter-name MyvService network 10.0.0.0/16

vrouter-static-route-show

This command displays static route entries for an existing virtual router (vRouter) service for a fabric, cluster, standalone switch, or virtual network (VNET).

Syntax   vrouter-static-route-show

vrouter-name name-string

Specifies the name of the vRouter service.

network ip-address

Specifies the IP subnet of the network that you want to add a static router.

netmask netmask

Specifies the netmask of the IP subnet.

gateway-ip ip-address

Specifies the IP address of the gateway that you want to route packets destined for the network IP address.

bfd-dst-ip ip-address

Specifies the destination IP address for BFD monitoring.

distance number

Specifies the administrative distance in a number from 0 to 255.

• 0  — Connected interface

• 1 — Static route

• 110 — OSPF

• 120 — RIP

• 200 — Internal BGP

bfd none|single-hop|multi-hop

Specifies the BFD protocol for the gateway fault detection.

bfd-src-ip ip-address

Specifies the source IP address for the BFD session.

interface vrouter interface nic

Specify the vRouter interface for the static route.

drop

Specify if you want to drop packets to create a null static route.

Defaults   None.

Access   CLI

History   

Version 1.2

Command introduced.

Version 2.1

The parameter, distance, added.

Version 2.6.2

The parameters, bfd-dst-ip, bfd, bfd-src-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 its tenants with a virtual router (vRouter) service that forwards traffic between networks and implements Layer 3 protocols. This command displays static route entries for an existing Router service.

Examples  To display all static routes for all vRouter services, use the following command:

CLI network-admin@switch > vrouter-static-route-show layout vertical

vrouter-static-bfd-add

Currently when a static route is created, Netvisor installs a route entry in the routing information database (RIB) regardless of the reachability of the gateway. When static routes are conditional over BFD neighbor-ship formation, Netvisor alleviates this issue.

Netvisor supports static route reachability detection by using BFD protocol, and a static route entry is installed in the RIB only if BFD is able to communicate with the gateway. After installation, BFD periodically monitors reachability and removes the route if connectivity is interrupted. The Pluribus vRouter acts as a gateway, and sends out BFD hellos periodically to specified neighbors. Static BFD sessions are also configurable.

IPv4 and IPv6 addresses are both supported.

Syntax   vrouter-static-bfd-add

vrouter-name name-string

Specify the vRouter name.

src-ip ip-address

Specify the source IPv4 or IPv6 address.

dst-ip ip-address

Specify the IPv4 or IPv6 destination address.

type single-hop|multi-hop

Specify the type of bi-directional forwarding hop, either single-hop or multi-hop.

Defaults   None

Access   Network Administrator

History   Command introduced in Version 2.5.3.

Usage   Use this command to add BFD to a static route.

Examples  To add BFD to a static route with source IP address, 10.1.1.13 to destination IP address, 172.21.16.35, use the following syntax:

CLI network-admin@switch > vrouter-static-bfd-add src-ip 10.1.1.13 dst-ip 172.21.16.35 type single-hop

vrouter-static-bfd-remove

Currently when a static route is created, Netvisor installs a route entry in the routing information database (RIB) regardless of the reachability of the gateway. When static routes are conditional over BFD neighbor-ship formation, Netvisor alleviates this issue.

Netvisor supports static route reachability detection by using BFD protocol, and a static route entry is installed in the RIB only if BFD is able to communicate with the gateway. After installation, BFD periodically monitors reachability and removes the route if connectivity is interrupted. The Pluribus vRouter acts as a gateway, and sends out BFD hellos periodically to specified neighbors. Static BFD sessions are also configurable.

IPv4 and IPv6 addresses are both supported.

Syntax   vrouter-static-bfd-remove  

vrouter-name name-string

Specify the vRouter name.

src-ip ip-address

Specify the source IPv4 or IPv6 address.

dst-ip ip-address

Specify the destination IPv4 or IPv6 address.

Defaults   None

Access   Network Administrator

History   Command introduced in Version 2.5.3.

Usage   Use this command to add BFD to a static route.

Examples  To remove BFD from a static route with source IP address, 10.1.1.13 to destination IP address, 172.21.16.35, use the following syntax:

CLI network-admin@switch > vrouter-static-bfd-remove src-ip 10.1.1.13 dst-ip 172.21.16.35 type single-hop

vrouter-static-bfd-show

Currently when a static route is created, Netvisor installs a route entry in the routing information database (RIB) regardless of the reachability of the gateway. When static routes are conditional over BFD neighbor-ship formation, Netvisor alleviates this issue.

Netvisor supports static route reachability detection by using BFD protocol, and a static route entry is installed in the RIB only if BFD is able to communicate with the gateway. After installation, BFD periodically monitors reachability and removes the route if connectivity is interrupted. The Pluribus vRouter acts as a gateway, and sends out BFD hellos periodically to specified neighbors. Static BFD sessions are also configurable.

IPv4 and IPv6 addresses are both supported.

Syntax   vrouter-static-bfd-show

vrouter-name name-string

Specify the vRouter name.

src-ip ip-address

Specify the source IPv4 or IPv6 address.

dst-ip ip-address

Specify the IPv4 or IPv6 destination address.

type single-hop|multi-hop

Specify the type of bi-directional forwarding hop, either single-hop or multi-hop.


Defaults   None

Access   Network Administrator

History   Command introduced in Version 2.5.3.

Usage   Use this command to display BFD on a static route.

Examples  To display BFD from a static route with source IP address, 10.1.1.13 to destination IP address, 172.21.16.35, use the following syntax:

CLI network-admin@switch > vrouter-static-bfd-show vrouter-name static-1 src-ip 172.21.16.45 dst-ip 10.1.1.101 type multihop