[FROG] VRRP setup with netplan on Ubuntu 20.04

Oliver O'Boyle oliver.oboyle at gmail.com
Mon Jul 6 20:31:20 UTC 2020


Just confirming that I did get this to work. Because I already had a
tagged vlan on that interface, I needed to keep it. I used the
existing netplan config to define the vlan, then created the macvlans
off of that. It looks like this:

3: ens224: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state
UP group default qlen 1000
    link/ether 00:50:56:bd:d5:0f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::250:56ff:febd:d50f/64 scope link
       valid_lft forever preferred_lft forever
4: vlan2049 at ens224: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc
noqueue state UP group default qlen 1000
    link/ether 00:50:56:bd:d5:0f brd ff:ff:ff:ff:ff:ff
    inet 192.168.145.195/26 brd 192.168.145.255 scope global vlan2049
       valid_lft forever preferred_lft forever
    inet6 2610:139:c001:3f:1801:f20a:0:2/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:febd:d50f/64 scope link
       valid_lft forever preferred_lft forever
5: vlan2049-4 at vlan2049: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000
qdisc noqueue state UP group default qlen 1000
    link/ether 00:00:5e:00:01:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.145.194/32 scope global vlan2049-4
       valid_lft forever preferred_lft forever
    inet6 fe80::200:5eff:fe00:101/64 scope link
       valid_lft forever preferred_lft forever
6: vlan2049-6 at vlan2049: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000
qdisc noqueue state UP group default qlen 1000
    link/ether 00:00:5e:00:02:01 brd ff:ff:ff:ff:ff:ff
    inet6 2610:139:c001:3f:1801:f20a:0:5/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::200:5eff:fe00:201/64 scope link
       valid_lft forever preferred_lft forever

Not the simplest config around....

I still haven't decided how to persist the macvlans yet, but at least
there are no conceptual issues with this level of subinterfaces.

O.

On Mon, 6 Jul 2020 at 13:09, Quentin Young <qlyoung at cumulusnetworks.com> wrote:
>
> NP. I imagine you could come up with a workaround by getting netplan to run some script with the appropriate "ip link" commands or some such.
>
> On Mon, Jul 6, 2020 at 12:48 PM Oliver O'Boyle <oliver.oboyle at gmail.com> wrote:
>>
>> Thanks, Quentin. I was hoping someone had a hidden trick. But alas, my
>> day remains ruined!
>>
>> I appreciate the help.
>>
>> Oliver
>>
>> On Mon, 6 Jul 2020 at 12:41, Quentin Young <qlyoung at cumulusnetworks.com> wrote:
>> >
>> > Quick Google looks like there's no support for macvlan in netplan yet:
>> >
>> > https://bugs.launchpad.net/netplan/+bug/1664847
>> >
>> > The commands for doing it manually with "ip link add" are in the docs, and ifupdown2 has support for them.
>> >
>> >
>> > On Mon, Jul 6, 2020, 12:27 PM Oliver O'Boyle <oliver.oboyle at gmail.com> wrote:
>> >>
>> >> Hello,
>> >>
>> >> I'm looking to set up VRRP via frr 7.3.1 as per
>> >> http://docs.frrouting.org/en/latest/vrrp.html
>> >>
>> >> I'm using Ubuntu 20.04 which uses Netplan to configure interfaces.
>> >>
>> >> Can the macvlan devices be defined in the netplan config file or do I
>> >> need to run a separate config/set of command to create the devices I
>> >> need?
>> >>
>> >> Any help would be much appreciated.
>> >>
>> >> Oliver
>> >>
>> >> _______________________________________________
>> >> frog mailing list
>> >> frog at lists.frrouting.org
>> >> https://lists.frrouting.org/listinfo/frog
>>
>>
>>
>> --
>> :o@>



--
:o@>



More information about the frog mailing list