IPv6 configuration for Hetzner servers

IPv6 wordmark logoAs the IPv6day is comming closer, I requested an IPv6 subnet at Hetzner, my hosting provider.

I got the subnet: 2a01:4f8:110:5461:: / 64 – with the gateway address 2a01:4f8:110:5460::1, which is outside of the given subnet. So how to setup all the stuff on an openSUSE, resp. SLES?

Well, first start with adding the IPv6 addresses – which is simple. Just add them (via YaST or manually) in the same way as you add  IPv4 addresses on your interface. In the end, my file /etc/sysconfig/network/ifcfg-eth0 looks like this:

BOOTPROTO='static'
IPADDR='178.63.20.18/26'
BROADCAST=''
STARTMODE='auto'
NAME='RTL8111/8168B PCI Express Gigabit Ethernet controller'
PREFIXLEN='26'
ETHTOOL_OPTIONS=''
MTU=''
NETWORK=''
REMOTE_IPADDR=''
USERCONTROL='no'
IPADDR_0='178.63.20.26/26'
LABEL_0='nagios'
IPADDR_1='178.63.20.30/26'
LABEL_1='svn'
IPADDR_2='178.63.20.33/26'
LABEL_2='mail'
IPADDR_3='2a01:4f8:110:5461::18/64'
LABEL_3='v6www'
IPADDR_4='2a01:4f8:110:5461::26/64'
LABEL_4='v6nagios'
IPADDR_5='2a01:4f8:110:5461::30/64'
LABEL_5='v6svn'
IPADDR_6='2a01:4f8:110:5461::33/64'
LABEL_6='v6mail'

and to get the routing up and running for both, IPv4 and IPv6, my file /etc/sysconfig/network/routes has the following entries:

# destination ; gateway ; netmask ; interface
2a01:4f8:110:5460::1 - - eth0
default 2a01:4f8:110:5460::1 - eth0
default 178.63.20.1 - -

..and you are done. Just run rcnetwork restart afterwards and enjoy the next generation IP addresses. If you configured your SuSEfirewall2 the right way shows SuSEfirewall2 status – you should see some of those “::/0” rules there.

Setting up the needed DNS entries and finetuning your firewall and applications is of course also needed.

Advertisements

About Lars Vogdt

This is the private blog space of Lars Vogdt, the topics will be in first place work related.
This entry was posted in network, openSUSE, SUSE Linux Enterprise and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s