Hi Team!
I've been worked with vpnv4/v6 on Vyos and some commands are missing . I'll give a example on FRR(it's official documentation):
http://docs.frrouting.org/en/stable-7.5/bgp.html?highlight=l3vpn#l3vpn-vrfs
these news command they should be below 'address-family ipv4/v6 unicast' , let me show:
vyos@rt-pe-01:~$ show configuration commands | match bgp set protocols bgp local-as '65001' set protocols bgp neighbor 1.1.1.1 address-family ipv4-vpn nexthop-self set protocols bgp neighbor 1.1.1.1 peer-group 'RR_VPNv4' set protocols bgp parameters default no-ipv4-unicast set protocols bgp parameters log-neighbor-changes set protocols bgp parameters router-id '7.7.7.7' set protocols bgp peer-group RR_VPNv4 remote-as '65001' set protocols bgp peer-group RR_VPNv4 update-source 'dum10' set vrf name BLUE_C protocols bgp address-family ipv4-unicast network 10.50.50.0/24 set vrf name BLUE_C protocols bgp address-family ipv4-unicast redistribute connected ### set vrf name BLUE_C protocols bgp address-family ipv4-unicast rd vpn [xxxxx:xxx -new command] ### set vrf name BLUE_C protocols bgp address-family ipv4-unicast rt vpn [xxxxx:xxx -new command} set vrf name BLUE_C protocols bgp local-as '65001' set vrf name BLUE_C protocols bgp neighbor 10.50.50.2 address-family ipv4-unicast set vrf name BLUE_C protocols bgp neighbor 10.50.50.2 remote-as '65035'
on FRR example :
router bgp 65001 vrf BLUE_C no bgp ebgp-requires-policy no bgp network import-check neighbor 10.50.50.2 remote-as 65035 ! address-family ipv4 unicast network 10.50.50.0/24 redistribute connected label vpn export auto rd vpn export 10.50.50.1:1011 rt vpn both 65035:1011 export vpn import vpn exit-address-family
example with 'show vpn v4/v6':
rt-rr1# show bgp ipv4 vpn 10.50.50.0/24 BGP routing table entry for 10.50.50.1:1011:10.50.50.0/24 not allocated Paths: (1 available, best #1) Advertised to non peer-group peers: 7.7.7.7 Local, (Received from a RR-client) 7.7.7.7 from 7.7.7.7 (7.7.7.7) Origin incomplete, metric 0, localpref 100, valid, internal, best (First path received) Extended Community: RT:65035:1011 Remote label: 144 Last update: Mon Aug 16 22:15:45 2021
I think it is possible to add these new commands ,it'll be great to add function l3vpn-vrf (any-to-any or hub/spoke)
vyos@rt-pe-01:~$ show version Version: VyOS 1.4-rolling-202108081830 Release Train: sagitta Built by: [email protected] Built on: Sun 08 Aug 2021 19:41 UTC Build UUID: fecd9688-d9f6-4b3e-bcdf-4ab20291c7af Build Commit ID: 559585eb29e8b1 Architecture: x86_64 Boot via: installed image System type: KVM guest Hardware vendor: QEMU Hardware model: Standard PC (Q35 + ICH9, 2009) Hardware S/N: Hardware UUID: e5568f03-b550-409d-a78f-1b02b92c6323 Copyright: VyOS maintainers and contributor