This section describes how to configure static routes, OSPF, BGP, and RIP dynamic routing protocols, 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@nodename# create network virtual-router <parameters>
Specify the parameters:
Parameter |
Description |
---|---|
name |
Virtual router unique name. |
description |
Virtual router description. |
node-name |
Select a UserGate node where the virtual router will be created (if a cluster exists). |
interfaces |
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. |
To display information about a virtual router, use the following command:
Admin@nodename# show network virtual-router <virtual-router-name>
Example of creating a virtual router:
Admin@nodename# create network virtual-router name test_router description "Test virtual router" interfaces [ port2 ] Admin@nodename# show network virtual-router test_router name : test_router description : Test virtual router node-name : node_1 interfaces : port2 ...
To edit virtual router parameters, use the following command:
Admin@nodename# 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.
Example of editing virtual router parameters:
Admin@nodename# set network virtual-router test_router interfaces [ port3 ] Admin@nodename# show network virtual-router test_router name : test_router description : Test virtual router node-name : node_1 interfaces : port2; port3 ...
To delete a virtual router, use the following command:
Admin@nodename# delete network virtual-router <virtual-router-name>