[mythtv] Q about networking after recent networking improvements in master

Bill Meek keemllib at gmail.com
Sat Apr 15 21:24:21 UTC 2017


Hey Peter,

On 04/15/2017 10:42 AM, Peter Bennett wrote:
...
> How do you add the Unique local address to your systems?

I used http://www.sixxs.net/tools/grh/ula/ to get a proper ULA.
But I lied about my actual MAC. I haven't researched it much,
these:

    net.ipv6.conf.all.use_tempaddr = 2
    net.ipv6.conf.default.use_tempaddr = 2

exist and when set to 2 (in 15.10), a ULA is generated automatically.
Likely where distros may set things differently. I haven't retried
it with your new work, but I'm not clear if using temporary addresses
would work for the backend if it has remote FEs.

Originally, I added it with the Network Manager GUI. When systemd
(and networkd) arrived, I disabled NetworkManager and added them
manually like this:

/etc/systemd/network$ cat eth0.network
[Match]
Name=eth0

[Network]
Description=Primary NIC
Address=192.168.1.200/24
Address=fdf9:a66:2cd8:1::200/64
DHCP=no
DNS=8.8.8.8
DNS=8.8.4.4

[Route]
Gateway=192.168.1.128
Metric=11

[Route]
Gateway=fe80::b8b8:b8ff:fe6e:6e6e
Metric=12

> I am thinking about updating the wiki IPV6 article and wondering about the best way of doing it.

In here: https://www.mythtv.org/wiki/Enable_IPv6#Which_IPv6_address_should_be_used.3F I did
the complete cop-out of: "If the desired address doesn't exist, use the configuration tool
provided with the host's distribution to add it." I was trying to write the page mostly from
a MythTV perspective and tried to be light on IPv6 details. Had 2nd thought of even adding
the "Tools and sample output" section.

> I have it working by creating a script and linking it to /etc/network/if-up.d/010addipaddress. In that script I run a command ip -6 address add
> $ipadd dev "$ifacename" with appropriate parameters. I created a table of ULAs and MAC addresses. This works well, I get the automatic Global
> IPv6 address from Comcast plus the ULA that I set up.

Unfortunately, I mostly run *buntu boxes and can't comment on
the others. Here's some notes from what I tried:

    Sample IP configurations. Pick one.
    -----------------------------------

     /etc/network/interfaces: [on *buntu]
         auto eth0
         iface eth0 inet static
             address 192.168.1.222
             netmask 255.255.255.0
             gateway 192.168.1.128
         iface eth0 inet6 static
             address fdf9:a66:2cd8:1::222
             netmask 64
             gateway fe80::b8b8:b8ff:fe6e:fc90

     /etc/NetworkManager/system-connections/Wired (or any name): [*buntu]
         [ipv4]
         address1=192.168.1.227/24,192.168.1.128
         dns=192.168.1.128;
         dns-search=
         method=manual
         [ipv6]
         addr-gen-mode=stable-privacy
         address1=fdf9:a66:2cd8:1::227/64,fe80::7262:b8ff:fe6e:fc90
         dns=fe80::b8b8:b8ff:fe6e:fc90;
         dns-search=
         ip6-privacy=0
         method=manual

     /etc/sysconfig/network-scripts/ifcfg-enp0s10 [Fedora]
         HWADDR=00:01:2E:24:58:0D
         TYPE=Ethernet
         BOOTPROTO=none
         DEFROUTE=yes
         IPV4_FAILURE_FATAL=no
         NAME=enp0s10
         UUID=fce81113-3fef-39aa-b0f7-57f40cfc08de
         ONBOOT=yes
         AUTOCONNECT_PRIORITY=-999
         IPADDR=192.168.1.226
         PREFIX=24
         GATEWAY=192.168.1.128
         DNS1=192.168.1.128
         IPV6INIT=yes
         IPV6ADDR=fdf9:a66:2cd8:1::226/64
         IPV6_FAILURE_FATAL=no
         IPV6_DEFAULTGW=fe80::b8b8:b8ff:fe6e:fc90%enp0s10

I'm not sure the Wiki is going to care for all cases. Maybe those that
choose other than NetworkManager would be on there own.

> I could not find a more user-friendly way to do it with NetworkManager. It allows automatic or manual configuration. I have to leave automatic
> configuration in place to get a valid Global IPv6 address. It would be nice if NetworkManager allowed you to use automatic plus add additional
> IP addresses to the list at the same time.

Same here, I've been doing things with an editor mostly.

-- 
Bill


More information about the mythtv-dev mailing list