Adding ZT interface to VRF causes interface to loose IP

I’m trying to bind ZT interfaces to VRFs on Debian 10 without much success. It seems that creating a VRF and binding the zt*** interface wipes out the IP address on the ZT interface.

Anybody tried this?

Edit: This seems to work. Is there a better way? in /etc/network/interfaces

I’m using ifupdown2 (the code below won’t work with ifupdown)

auto zt-vrf
iface zt-vrf
    vrf-table auto
    vrf-default-route no
    post-up ip link set ztwdjme7c3 master $IFACE
    post-down ip link delete $IFACE
    post-down systemctl restart zerotier-one.service

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