This section describes how to configure static routes, OSPF, BGP, RIP, and multicast routing using the CLI (the configuration is discussed in the respective sections). These settings are applied at the network virtual-router level.
Commands used to configure general settings of virtual routers are listed below.
To add a new virtual router, use the following command:
Admin@UGOS# create network virtual-router
Specify the parameters:
Parameter |
Description |
---|---|
name |
Virtual router unique name. |
description |
Virtual router description. |
node |
Select a UserGate node where the virtual router will be created (if a cluster exists). |
interface |
Interfaces to use on this virtual router. You cannot add interfaces already added to other virtual routers. An interface can belong to only one virtual router. All types of interfaces, including physical, virtual (VLAN), bond, VPN and others can be added to a virtual router. |
route |
Add routes to apply to the traffic on this virtual router. For more details, see Configuring Static Routes. |
ospf |
Add dynamic routes received via the OSPF routing protocol. For more details, see Configuring OSPF. |
bgp |
Add dynamic routes received via the BGP routing protocol. For more details, see Configuring BGP. |
rip |
Add dynamic routes received via the RIP routing protocol. For more details, see Configuring RIP. |
multicast-router |
Configure multicast routing in this virtual router. For more details on how to configure multicast routing using the command line interface, see Configuring multicast routing. |
To change virtual router parameters, use the following command:
Admin@UGOS# set network virtual-router <virtual-router-name>
The parameters available to update are the same as those for the create command, except for:
-
name.
-
node-name.
To delete a virtual router, use the following command:
Admin@UGOS# delete network virtual-router <virtual-router-name>
To display information about a virtual router, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name>
12.6.6.1. Configuring static routes¶
To add a new static route, use the following command:
Admin@UGOS# set network virtual-router <virtual-router-name> route new
Specify the parameters:
Parameter |
Description |
---|---|
enabled |
Enable/disable usage of a static route:
|
name |
Route name. |
description |
Route description. |
type |
Route type:
|
destination-ip |
IP address of the destination subnet, format: <ip/mask>. |
gateway-address |
IP address of the gateway through which the specified subnet will be reachable. The IP address must be reachable from the UserGate server. |
interface |
Interface through which the route is added. |
metric |
Route metric. The lower the metric, the higher the priority of the route (if there is more than one route to a network). |
To change the parameters of an existing static route, use the following command:
Admin@UGOS# set network virtual-router <virtual-router-name> route <static-route-name>
The parameters available to change are listed in the table above.
To delete a static route, use the following command:
Admin@UGOS# delete network virtual-router <virtual-router-name> route <static-route-name>
To display static routes, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name> route
12.6.6.2. Configuring OSPF¶
To configure OSPF using CLI, use the following command:
Admin@UGOS# set network virtual-router <virtual-router-name> ospf
Provide the following OSPF router parameters:
Parameter |
Description |
---|---|
enabled |
Enable/disable an OSPF router:
|
router-id |
Router IP address. Must match one of the IP addresses assigned to the UserGate network interfaces that belong to this virtual router. If the OSPF is disabled (enabled off), the router-id value can be deleted (none). |
connected |
Redistribute routes to other OSPF routers on networks directly connected to UserGate:
|
kernel |
Redistribute routes added by an administrator to other OSPF routers:
|
metric |
Redistributed route metric. |
default-originate |
Notify other routers that this router has a default route configured:
|
interface |
Select one of the existing interfaces on which OSPF will run. Only the interfaces belonging to this virtual router are available for selection. To add an interface or change parameters for an existing interface, use the following commands:
Admin@UGOS# set network virtual-router <virtual-router-name> ospf interface new
Admin@UGOS# set network virtual-router <virtual-router-name> ospf interface <interface-name> Next, specify the following parameters:
|
area |
Configuring the OSPF area. To add a new area or change parameters for an existing one, use the following commands:
Admin@UGOS# set network virtual-router <virtual-router-name> ospf area new
Admin@UGOS# set network virtual-router <virtual-router-name> ospf area <area-name> Next, specify the following parameters:
|
To delete OSPF settings, use the following command:
Admin@UGOS# delete network virtual-router <virtual-router-name> ospf
You can delete the following parameters:
-
interface.
-
area.
To display the OSPF configuration in a virtual router, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name> ospf
12.6.6.3. Configuring BGP¶
To configure BGP (Border Gateway Protocol) dynamic routing protocol on a virtual router, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name> bgp
Specify the parameters:
Parameter |
Description |
---|---|
enabled |
Enable/disable an BGP router:
|
router-id |
Router IP address. Must match one of the IP addresses assigned to the UserGate network interfaces that belong to this virtual router. If the BGP is disabled (enabled off), the router-id value can be deleted (none). |
as-number |
An autonomous system is a system of IP networks and routers managed by one or more operators that have a single routing policy. The autonomous system number identifies the router as belonging to that system. |
multiple-path |
Enable/disable traffic balancing to routes with the same cost:
|
connected |
Redistribute routes to other BGP routers on networks directly connected to UserGate:
|
kernel |
Redistribute routes added by an administrator to other BGP routers:
|
ospf-redistribute |
Distribute routes received via the OSPF protocol to other BGP routers:
|
network-addrs |
A list of networks that belong to this autonomous system. Format: <ip/mask>. |
routemaps |
Routemaps are used to manage routing tables and specify the match conditions under which routes are passed between domains. To create a routemap or change parameters for an existing routemap, use the following commands:
Admin@UGOS# set network virtual-router <virtual-router-name> bgp routemaps new
Admin@UGOS# set network virtual-router <virtual-router-name> bgp routemaps <routemap-name> Routemap parameters:
|
filters |
Filters allow you to filter routes when redistributing. To create a filter or change parameters for an existing one, use the following commands:
Admin@UGOS# set network virtual-router <virtual-router-name> bgp filters new
Admin@UGOS# set network virtual-router <virtual-router-name> bgp filters <filter-name> Parameters:
|
neighbors |
BGP neighbors. To add new neighbors or change data for existing ones, use the following commands:
Admin@UGOS# set network virtual-router <virtual-router-name> bgp neighbors new
Admin@UGOS# set network virtual-router <virtual-router-name> bgp neighbors <host-ip> Parameters:
|
To delete BGP router parameters, use the following command:
Admin@UGOS# delete network virtual-router <virtual-router-name> bgp
You can delete the following parameters:
-
Addresses of networks that belong to this autonomous system: network-addrs.
-
Conditions on application of routemap: routemaps <routemap-name> ip-match | community-match | as-path-match.
-
Condition on application of filters: filters <filter-name> ip-filter | as-path-filter.
-
BGP neighbors and routemap filters: neighbors <host-ip> filter-in | filter-out | routemap-in | routemap-out.
To display the BGP configuration in a virtual router, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name> bgp
12.6.6.4. Configuring RIP¶
To configure RIP (Routing Information Protocol) on a virtual router, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name> rip
Specify the parameters:
Parameter |
Description |
---|---|
enabled |
Enable/disable an RIP router:
|
rip-version |
RIP protocol version:
Usually, the 2nd version of the protocol is used. |
default-metric |
RIP metric. Default value of metric: 1; max value: 15. A value of 16 is considered infinite. |
admin-distance |
The cost of routes received using the RIP protocol. Default value for RIP protocol: 120. This is used for route selection when routes can be received using multiple methods (OSPF, BGP, static). |
default-originate |
Sends itself as the router by default. |
network-cidr |
Specify the network as a CIDR. Format: <ip/mask>. |
network-interface |
Specify the network interface from which to send route information updates. Provide interfaces that belong to the virtual router. |
redistribute |
Route redistribution:
|
interfaces |
Configure interfaces where the RIP protocol is supported. The interfaces should be added to the virtual router. To add new interfaces or change data for existing ones, use the following commands:
Admin@UGOS# set network virtual-router <virtual-router-name> rip interfaces new
Admin@UGOS# set network virtual-router <virtual-router-name> rip interfaces <interface-name> Parameters:
|
To delete RIP router parameters, use the following command:
Admin@UGOS# delete network virtual-router <virtual-router-name> rip
You can delete the following parameters:
-
RIP interfaces: interfaces.
-
RIP networks: network-cidr.
-
Network interface from which route information updates will be sent: network-interface.
To display the RIP configuration in a virtual router, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name> rip
12.6.6.5. Configuring multicast routing¶
To configure multicast routing on the virtual router, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name> multicast-router
Specify the parameters:
Parameter |
Description |
---|---|
enabled |
Enable/disable an RIP router:
|
use-ecmp |
Enable traffic distribution using Equal Cost Multi Path (ECMP) technology:
Requires that several routes exist to the network node of interest. If this option is disabled, all traffic to a specific destination host will be sent through only one of the routers (next hop). |
use-ecmp-rebalance |
Use ECMP rebalance:
|
join-prune |
Interval for sending messages to PIM neighbors about the multicast groups whose traffic the router wants to receive or no longer wants to receive. |
register-suppress |
Interval after which the router sends a register suppress message. |
keep-alive |
Interval after which the router sends keepalive messages to neighbors, and the interval the router waits before considering a neighbor unavailable. |
interfaces |
Interface to use for multicasting. You can only specify interfaces added to the virtual router. To add new interfaces or change data for existing ones, use the following commands:
Admin@UGOS# set network virtual-router <virtual-router-name> multicast-router interfaces new
Admin@UGOS# set network virtual-router <virtual-router-name> multicast-router interfaces <interface-name> Parameters:
|
rendezvous-points |
When configuring Rendezvous points, you can specify the following parameters:
|
ssm-allowed-groups |
A multicast router setting that defines a list of allowed group addresses for source-specific multicast. You can specify any networks in the range 232.0.0.0/8. If nothing is specified, there are no restrictions. |
spt-exclusions |
Multicast router setting that defines a list of IPv4 multicast groups excluded from switching to the shortest path tree. |
To delete multicast router parameters, use the following command:
Admin@UGOS# delete network virtual-router <virtual-router-name> multicast-router
You can delete the following parameters:
-
Interfaces used for multicast: interfaces.
-
Rendezvous points: rendezvous-points <rp-name>, and the list of allowed group addresses for any source multicast from this RP: rendezvous-points <rp-name> asm-allowed groups.
-
The list of allowed group addresses for the source-specific multicast: ssm-allowed-groups.
-
The list of IPv4 multicast groups excluded from switching to the shortest path tree: spt-exclusions.
To display a multicast configuration of a virtual router, use the following command:
Admin@UGOS# show network virtual-router <virtual-router-name> multicast-router