BGP configuration related


Today i configured bgp in vyos and BGP state is showing active. In troubleshooting observed in sh ip bgp neighbour i observed that the local AS number is showing as remote AS number and remote as local.

Ï removed all BGP config but still showing the shi ip bgp neighbour AND sh ip bgp summary.

Not understanding where I missed out or its bug.

after removing the bgp configuration

vyos:~ sh config commands | grep bgp vyos:~
vyos:~ vyos:~
vyos:~$ sh ip bgp summary
BGP router identifier, local AS number 64857
IPv4 Unicast - max multipaths: ebgp 1 ibgp 1
RIB entries 0, using 0 bytes of memory
Peers 1, using 4560 bytes of memory

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
x.x.249.1 4 65534 0 0 0 0 0 never Active

Total number of neighbors 1
vyos:~ vyos:~
vyos:~$ sh ip bgp neighbors
BGP neighbor is x.x.249.1, remote AS 65534, local AS 64857, external link
BGP version 4, remote router ID
BGP state = Active
Last read 03:16:44, hold time is 180, keepalive interval is 60 seconds
Message statistics:
Inq depth is 0
Outq depth is 0
Sent Rcvd
Opens: 0 0
Notifications: 0 0
Updates: 0 0
Keepalives: 0 0
Route Refresh: 0 0
Capability: 0 0
Total: 0 0
Minimum time between advertisement runs is 30 seconds

For address family: IPv4 Unicast

need support to fix the issue

What version of VyOS are you on? Does this persist across a reboot? Also, have you tried resetting the BGP process from the cli? (If you haven’t rebooted).

Hi Matt,

I have not rebooted. Current version is 1.1.8

I had reset the BGP process.

Officially 1.1.8 is EOL, I’d recommend a migration at some point. I am curious about what Quagga is actually doing under the hood. Can you do a “show running-config” under vtysh?

Hi Matt,

Under vtysh i am still seeing the BGP config and removed the same. Now issue got resolved.
router bgp 64857
bgp router-id
bgp network import-check
neighbor x.x.249.1 remote-as 65534
neighbor x.x.249.1 password xxxxxxxxx

Also i will upgrade the Vyos to latest firmware.

Thank you for quick response.


i am trying to build VPC between AWS & Vyos

On AWS side it’s competed and they shared the BGP config(cisco) which need to complete at our end.
BGP config is done. But on interface they are doing encapsulation. how we configure in Vyos.

Config shared by AWS on cisco device:
! Interface Configuration

! interface port-channel 1 (In case of a LAG connection)

interface GigabitEthernet0/1
! channel-group 1 mode passive (In case of a LAG connection)
no ip address

interface GigabitEthernet0/1.344
! interface port-channel 1.344 (In case of a LAG connection)
description “Direct Connect to your Amazon VPC or AWS Cloud”
encapsulation dot1Q 344
ip address x.x.249.2

On our network:

The link is terminated to switch with vlan 400 and to vyos
So my dought is AWS gave us to configure VLAN 344 how to do in vyos can you guide me.

Please check here:

VyOS User Guide — VyOS 1.3.x (equuleus) documentation (There is a section on encapsulation)

1 Like

Issue got fixed. Matt

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.