IPv6 6in4 Linux /etc/network/interfaces format

Advanced feature discussion, beta programs and unsupported "Labs" features.
1 post Page 1 of 1
by michael » Mon Sep 09, 2024 5:38 pm
FYI, here's what worked for me. I find the /etc/network/interfaces configuration more natural; if you want to run the Linux iproute2 command as found in https://help.sonic.com/hc/en-us/article ... figuration you'd mostly likely want to put them into an "up"/"down" clause in /etc/network/interfaces anyway.

Obviously this would probably be best dropped into its own /etc/network/interfaces.d/6in4 file.

Code: Select all

auto 6in4
iface 6in4 inet6 v4tunnel
        address 2001:5a8:0:1::19ab
        netmask 127
        endpoint 208.201.234.221
        local 70.12.34.56
        gateway 2001:5a8:0:1::19aa
        ttl 255
  • The "70.12.34.56" is your "customer-side v4 address".
  • The "208.201.234.221" is the "sonic-side v4 address". (I think this is the same for everyone.)
  • The "2001:5a8:0:1::19aa" is the "Sonic-side transport IP".
  • The "2001:5a8:0:1::19ab" is the "customer-side transport IP".
  • The "netmask" is always 127. It's a two-address subnet with just your 6in4 local endpoint and your 6in4 Sonic gateway.
This approach also allows you to specify the "6in4" device as being in the "inet6" address family, which I don't think you can do via the "up" command in a "inet" stanza for the IPv4 device that's relaying the packets.
Sonic customer since 2003
1 post Page 1 of 1