[GLLUG] Adding multiple addresses to multiple interfaces
Chris Bell
chrisbell at chrisbell.org.uk
Tue Jan 2 18:09:04 UTC 2018
On Tuesday, 2 January 2018 17:26:25 GMT Andy Smith via GLLUG wrote:
> Hi Chris,
Thanks for the replies
>
> So your problems are solely related to IPv6, yes?
Correct. I calculated the 6to4 address before trying to configure the TP-Link
modem, and the modem immediately confirmed that it was correct. I had to
configure the Bind9 named.conf.options to use 4.2.2.1 4.2.2.2 and 4.2.2.3
because the modem takes DNS information from the Plusnet servers which does
not include IPv6.
First I tried to configure each IPv4 address followed by all IPv6 addresses for
each interface, then I tried specifying each address separately for each
interface which gave partial success, although none is listed as scope site.
/etc/network/interfaces.d/* is empty, the information is all in the following
more /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# the pre-up /etc/network/check-mac-address.sh enp* does not work because
# interfaces are found in random order as eth* and later renamed as enp*
# in location order
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp2s1
iface enp2s1 inet dhcp
iface enp2s1 inet6 auto
# (orange, lo1)
allow-hotplug enp2s2
iface enp2s2 inet static up
hwaddress 00:80:c8:f7:86:b3
address 172.21.1.22
netmask 255.255.255.0
iface enp2s2 inet6 static up
address fd39:7761:9509:7f:280:c8ff:fef7:86b3/64 \
scope site
hwaddress 00:80:c8:f7:86:b3
iface enp2s2 inet6 static up
address 2002:51ae:faaf:20:280:c8ff:fef7:86b3/64 \
scope global
hwaddress 00:80:c8:f7:86:b3
# (blue lo2)
allow-hotplug enp2s3
iface enp2s3 inet static up
hwaddress 00:80:c8:3d:fd:4f
address 172.21.2.22
netmask 255.255.255.0
iface enp2s3 inet6 static up
address fd39:7761:9509:7e:280:c8ff:fe3d:fd4f/64 \
scope site
hwaddress 00:80:c8:3d:fd:4f
iface enp2s3 inet6 static up
address 2002:51ae:faaf:20:280:c8ff:fe3d:fd4f/64 \
scope global
hwaddress 00:80:c8:3d:fd:4f
# (green lo3)
allow-hotplug enp2s4
iface enp2s4 inet static up
hwaddress 00:a0:c9:e6:a7:0e
address 172.21.3.22
netmask 255.255.255.0
iface enp2s4 inet6 static up
address fd39:7761:9509:7c:2a0:c9ff:fee6:a70e/64 \
scope site
hwaddress 00:a0:c9:e6:a7:0e
iface enp2s4 inet6 static up
address 2002:51ae:faaf:20:2a0:c9ff:fee6:a70e/64 \
scope global
hwaddress 00:a0:c9:e6:a7:0e
ifconfig
enp2s1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::2e0:29ff:fe19:9a9e prefixlen 64 scopeid 0x20<link>
ether 00:e0:29:19:9a:9e txqueuelen 1000 (Ethernet)
RX packets 6581 bytes 1121856 (1.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1878 bytes 189676 (185.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp2s2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.21.1.22 netmask 255.255.255.0 broadcast 172.21.1.255
inet6 fe80::280:c8ff:fef7:86b3 prefixlen 64 scopeid 0x20<link>
ether 00:80:c8:f7:86:b3 txqueuelen 1000 (Ethernet)
RX packets 378 bytes 36557 (35.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 872 bytes 204904 (200.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp2s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.21.2.22 netmask 255.255.255.0 broadcast 172.21.2.255
inet6 fe80::280:c8ff:fe3d:fd4f prefixlen 64 scopeid 0x20<link>
ether 00:80:c8:3d:fd:4f txqueuelen 1000 (Ethernet)
RX packets 3 bytes 385 (385.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 588 bytes 163096 (159.2 KiB)
TX errors 7 dropped 0 overruns 0 carrier 19 collisions 0
enp2s4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.21.3.22 netmask 255.255.255.0 broadcast 172.21.3.255
inet6 fe80::2a0:c9ff:fee6:a70e prefixlen 64 scopeid 0x20<link>
inet6 fd39:7761:9509:7c:2a0:c9ff:fee6:a70e prefixlen 64 scopeid
0x0<global>
inet6 2002:51ae:faaf:20:2a0:c9ff:fee6:a70e prefixlen 64 scopeid
0x0<global>
ether 00:a0:c9:e6:a7:0e txqueuelen 1000 (Ethernet)
RX packets 3793 bytes 351681 (343.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3260 bytes 722922 (705.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 154 bytes 19853 (19.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 154 bytes 19853 (19.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I have been told that Plusnet do not intend to offer IPv6 any time soon, and I
have noticed that using the "host" command neither BT, Plusnet, nor Talk-Talk
provide IPv6 addresses, while mythic-hosts.com bbc.co.uk and others do. Is the
reluctance the result of problems using mobile devices with another OS?
--
Chris Bell
Website http://chrisbell.org.uk
More information about the GLLUG
mailing list