Ross Drummond wrote, On 07/07/14 09:49:
> I see Craig has set-up the horse ssh server otherwise known as
> 'shell.clug.org.nz' as IPv6 capable.
>
> On doing a dig lookup on the AAAA record of the above I see the address is;
>
> 2400:6900:ffff:1:3825::2
>
> This looks like a specially chosen address and not one generated by the
> default method of using the computer interfaces MAC address.
>
> Craig, howdya du dat?
Easy - its hard-set like a static IPv4 address.
Servers require static addresses that aren't dependant on their MAC
address, a hardware upgrade shouldn't require a change to DNS.
I have 2400:6900:ffff:1::/64 as my current prefix. Technically this is
enough for one LAN, because you're supposed to have a unique /64 for
each LAN and VLAN. I have a /60 routed to me now too, and will
migrate to that over time.
In the short term I have carved off a small v6 netblock for the CLUG
VLAN at home.
As long as noone has a NIC that starts in 38:25: then I'm good - its not
even allocated as a recognised OUI.
The home firewall has vlan 40 which has 2400:6900:ffff:1:3825::1/126 as
well as 192.168.200.1/24
The horse machine has 2400:6900:ffff:1:3825::2/126 as well as
192.168.200.2/24
The debian config on horse looks like this in /etc/network/interfaces
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.200.2
netmask 255.255.255.0
gateway 192.168.200.1
#IPV6 static configuration
iface eth0 inet6 static
pre-up modprobe ipv6
address 2400:6900:ffff:1:3825::2
netmask 126
gateway 2400:6900:ffff:1:3825::1
# END IPV6 configuration
The equivalent redhat config would be in
/etc/sysconfig/network-scripts/ifcfg-ethX
DEVICE=eth0.5
PHYSDEV=eth0
BOOTPROTO=static
IPADDR=192.168.200.2
NETMASK=255.255.255.0
GATEWAY=192.168.200.1
ONBOOT=yes
VLAN=yes
ARPCHECK=no
IPV6INIT=yes
IPV6ADDR=2400:6900:ffff:1:3825::2/126
IPV6_DEFAULTGW=2400:6900:ffff:1:3825::1
--
CF
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users