You can create BGP instances in a network template or on a device. BGP settings specified in the network template are automatically propagated to all devices that use this template.
To create a BGP instance:
Create a BGP instance in one of the following ways:
If you want to create a BGP instance in a network template, in the menu, select the Network templates tab, click the network template, and select the Routing → BGP section.
If you want to create a BGP instance on a device, in the menu, select the Devices tab, click the device and select the Routing → BGP section.
In the Autonomous system field, enter the autonomous system number (from 1 to 4 294 967 295). The specified autonomous system is used for all BGP instances created in the template or on the device and is displayed in the AS field of the BGP instance.
Create one or more BGP instances:
Click Create. The workspace for adding a BGP instance is displayed.
By default, the General tab is selected, which displays the basic BGP settings.
Set the Status toggle switch to On. By default, the toggle switch is in the Off position.
In the VRF drop-down list, select a previously created VRF instance to which you want to advertise BGP routes. The list only shows those VRFs that are not associated with other BGP devices on the device or in the template.
In the Router ID field, enter the IPv4 address that you want to assign to the router ID of the device.
If necessary, in the Maximum paths field, enter the maximum number of entries in the routing and forwarding table of the device. Range of values: 1 to 128.
If you want the device to compare the multi-exit discriminator (MED) attribute of routes advertised from different autonomous systems, enable the Always compare MED toggle switch.
This setting must be enabled for all devices in your autonomous system. Otherwise, exchange of routing information may result in routing loops.
If necessary, enable graceful restart on the device using the Graceful restart toggle switch.
If you do not want the device to exchange IPv4 routes with BGP peers by default, enable the Default IPv4 unicast toggle switch.
If necessary, configure BGP timers. To do this, enable the Set BGP timers toggle switch and specify the following setting:
In the Keepalive (s) field, enter the time interval in seconds that the device uses to send control packets to BGP peers. Range of values: 0 to 65 535.
In the Holdtime (s) field, enter the time interval in seconds for which the device waits to receive control packets from BGP peers. If no control packets are received from the BGP peer within the specified time, the device considers the peer unavailable. Range of values: 0 to 65 535.
If you want to configure route redistribution in BGP, under Route redistribution, do the following:
Enable the necessary toggle switches next to the route types:
Kernel to redistribute Kernel routes generated by the operating system kernel of the device.
Connected to redistribute routes directly connected to network interfaces of the device.