To configure BGP (Border Gateway Protocol) dynamic routing protocol on a virtual router, use the following command:
Admin@nodename# set network virtual-router <virtual-router-name> bgp
Specify the 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 BGP is disabled (enabled off), the router-id value can be deleted (none). |
asn |
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:
|
redistribute |
BGP route redistribution:
|
networks |
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@nodename# set network virtual-router <virtual-router-name> bgp routemaps new Admin@nodename# 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@nodename# set network virtual-router <virtual-router-name> bgp filters new Admin@nodename# 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@nodename# set network virtual-router <virtual-router-name> bgp neighbors new Admin@nodename# set network virtual-router <virtual-router-name> bgp neighbors <host-ip> Parameters:
|
To display BGP configuration in a virtual router, use the following command:
Admin@nodename# show network virtual-router <virtual-router-name> bgp
Example command to configure BGP in a virtual router:
Admin@nodename# set network virtual-router test_router bgp router-id 192.168.95.224 asn 1 networks [ 192.168.100.0/24 ] redistribute [ connected kernel ] Admin@nodename# show network virtual-router test_router name : test_router description : Test virtual router node-name : node_1 interfaces : port2; port3 ... bgp : enabled : off asn : 1 router-id : 192.168.95.224 redistribute : connected; kernel multiple-path : off networks : 192.168.100.0/24 routemaps : [] neighbors : [] filters : [] ...
To delete BGP router parameters, use the following command:
Admin@nodename# delete network virtual-router <virtual-router-name> bgp <parameter>
You can delete the following parameters:
-
Addresses of networks that belong to this autonomous system: networks.
-
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.
-
BGP route redistribution options: redistribute [ connected | kernel ].