Page MenuHomeVyOS Platform

BGP/VRF - not enable peer on address-family
Resolved (N/A)PublicBUG

Description

hi

When you configured BGP in a VRF-lite it should enable on address-family ipv4/ipv6 peer that you need to establish the session. Let me show :

vyos@vyos:~$ show bgp vrf test1 summary
% No BGP neighbors found in VRF test1
vyos@vyos:~$ show bgp vrf test1 neighbors
BGP neighbor is 10.0.0.1, remote AS 65505, local AS 65535, external link
  BGP version 4, remote router ID 0.0.0.0, local router ID 10.0.0.2
  BGP state = Idle
  Last read 00:02:03, Last write never
  Hold time is 180, keepalive interval is 60 seconds
  Graceful restart information:
    Local GR Mode: Helper*
    Remote GR Mode: NotApplicable
    R bit: False
    Timers:
      Configured Restart Time(sec): 120
      Received Restart Time(sec): 0
  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 0 seconds
  Update source is eth0

  Connections established 0; dropped 0
  Last reset 00:02:03,  No AFI/SAFI activated for peer
BGP Connect Retry Timer in Seconds: 120
Read thread: off  Write thread: off  FD used: -1

configuration on VyOS :

set vrf name test1 protocols bgp address-family ipv4-unicast network 10.0.2.0/24
set vrf name test1 protocols bgp local-as '65535'
set vrf name test1 protocols bgp neighbor 10.0.0.1 disable-connected-check
set vrf name test1 protocols bgp neighbor 10.0.0.1 remote-as '65505'
set vrf name test1 protocols bgp neighbor 10.0.0.1 update-source 'eth0'
set vrf name test1 protocols bgp parameters router-id '10.0.0.2'

FRR configuration :

router bgp 65535 vrf test1
 bgp router-id 10.0.0.2
 no bgp ebgp-requires-policy
 no bgp default ipv4-unicast
 no bgp network import-check
 neighbor 10.0.0.1 remote-as 65505
 neighbor 10.0.0.1 update-source eth0
 !
 address-family ipv4 unicast
  network 10.0.2.0/24
 exit-address-family

we need to add on address-family ipv4 unicast , the following command neighbor 10.0.0.1 active

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202205190217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)