Page MenuHomeVyOS Platform

Allow BGP on unnumbered interfaces
Closed, ResolvedPublicFEATURE REQUEST

Description

hi,

please extend the cli and configuration that it is possible to build configurations like:

https://cumulusnetworks.com/blog/bgp-unnumbered-overview/

FRR has support for this:
https://codingpackets.com/blog/linux-routing-on-the-host-with-frr/

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

syncer triaged this task as Wishlist priority.Apr 17 2019, 7:41 PM
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.

@rherold Would this extend to usage such as VPN interfaces like wireguard interfaces ?
I know it is an edge use case but it is nice for lab testing with VPS´s in multiple datacenters.

Viacheslav claimed this task.
Viacheslav added a subscriber: Viacheslav.

Already in 1.3 and 1.4

R1 (1.4)

set interfaces ethernet eth1 hw-id '52:54:00:61:81:6f'
set protocols bgp local-as '65001'
set protocols bgp neighbor eth1 capability extended-nexthop
set protocols bgp neighbor eth1 interface peer-group 'foo'
set protocols bgp neighbor eth1 interface remote-as 'internal'
set protocols bgp peer-group foo

R2 (1.3)

set interfaces ethernet eth1 hw-id '52:54:00:94:29:ab'
set protocols bgp 65001 address-family ipv4-unicast redistribute connected
set protocols bgp 65001 neighbor eth1 interface peer-group 'foo'
set protocols bgp 65001 neighbor eth1 interface remote-as 'internal'
set protocols bgp 65001 peer-group foo

Show route

vyos@r6-roll:~$ show ip bgp
BGP table version is 4, local router ID is 192.168.122.16, vrf id 0
Default local pref 100, local AS 65001
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i10.0.0.1/32      eth1                     0    100      0 ?
*>i10.0.0.2/32      eth1                     0    100      0 ?
*>i10.0.0.3/32      eth1                     0    100      0 ?
*>i192.168.122.0/24 eth1                     0    100      0 ?

Displayed  4 routes and 4 total paths
vyos@r6-roll:~$ 
vyos@r6-roll:~$ show ip route bgp 
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
       F - PBR, f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup

B>* 10.0.0.1/32 [200/0] via fe80::5054:ff:fe94:29ab, eth1, weight 1, 00:03:23
B>* 10.0.0.2/32 [200/0] via fe80::5054:ff:fe94:29ab, eth1, weight 1, 00:03:23
B>* 10.0.0.3/32 [200/0] via fe80::5054:ff:fe94:29ab, eth1, weight 1, 00:03:23
B   192.168.122.0/24 [200/0] via fe80::5054:ff:fe94:29ab, eth1, weight 1, 00:03:23
vyos@r6-roll:~$