Configure BGP on NFVIS
A BGP neighbor can be configured using a neighbor IP address or a name string.
If a BGP neighbor is specified using a name string, it must be used in conjunction with the secure overlay bgp-neibhor-name field. A BGP session is established over the secure overlay tunnel. If the neighbor name matches the bgp-neighbor-name field configured in secure-overlay configuration, then NFVIS will determine the active remote system IP address used for IPSec connection and replace the neighbor name with that IP. This will establish a BGP neighbor session with that IP address. For more information on how to configure secure overlay with BGP name, see Secure Overlay and Single IP Configuration.
If a BGP neighbor is specified using an IP address which is headend VPN responder’s tunnel IP address, which is the same as the IP address of a a headend VPN responder tunnel, a BGP session is established over the secure overlay tunnel.
This example shows how to create or update BGP configuration for a neighbor with a specified name string:
config terminal
router bgp 200
neighbor csrbgp remote-as 65000
commit
This example shows how to create or update BGP configuration with a specified neighbor IP address:
config terminal
router bgp 200
neighbor 166.34.121.112 remote-as 65000
exit
neighbor 166.35.121.112 remote-as 65000
commit
This example shows how to delete BGP configurations:
no router bgp 200
commit
The following table provides the syntax description for each parameter in the commands mentioned in the examples above:
Property |
Type |
Description |
Mandatory |
---|---|---|---|
as |
Uint32 |
Local BGP AS number |
Yes |
router-id |
IPv4 |
H.H.H.H: IPv4 address for local system |
No |
neighbor |
list |
Neighbor list |
Yes |
remote-ip |
String |
IPv4 address or Secure Overlay BGP neighbor name for BGP neighbor system |
Yes |
remote-as |
Uint32 |
Remote BGP AS number |
Yes |
description |
String |
Description of neighbor |
No |
The following example displays the BGP session details:
nfvis# support show bgp
BIRD 1.6.8 ready.
name proto table state since info
bgp1 BGP bgptable UP 23:53:18 Established
Preference: 100
Input filter: ACCEPT
Output filter: Accept
Import limit: 15
Action: restart
Routes: 1 import, 0 exported, 1 preferred
Route change stats: recieved rejected filtered ignored accepted
Import updates: 1 0 0 0 1
Import withdraws: 0 0 --- 0 0
Export updates: 1 1 0 --- 0
Export withdraws: 0 --- --- --- 0
BGP state: Established
Neigbour addres: 166.34.121.112
Neigbour AS: 65000
Neigbour ID: 166.34.121.112
Neigbour caps: refresh enhanced-refresh AS4
Session: external multihop AS4
Source Address: 112.112.112.1
Route limit: 1/15
Hold timer: 204/240
Keepalive timer: 65/80
The following example displays the BGP routes learnt through BGP:
nfvis# support show bgp route
BIRD 1.6.8 ready.
91.91.91.0/24 dev ipsec0 [bgp1 23:53:18 from 166.34.121.112] (100) [AS65000?]
Note |
NFVIS can learn up to 15 prefixes. |
BGP Neighbor Configuration Example
router bgp 65000
bgp router-id 166.34.121.112
bgp always-compare-med
bgp log-neighbor-changes
bgp deterministic-med
bgp listen range 112.112.0.0/16 peer-group uCPEs
bgp listen range 90.90.90.0/24 peer-group uCPEs
bgp listen range 10.20.0.0/24 peer-group uCPEs
bgp listen limit 255
no bgp default ipv4-unicast
!
address-family ipv4 vrf private-vrf
redistribute connected
redistribute static
neighbor uCPEs peer-group
neighbor uCPEs remote-as 200
neighbor uCPEs ebgp-multihop 10
neighbor uCPEs timers 610 1835
neighbor uCPEs prefix-list allow-list out
exit-address-family