Sunday, July 1, 2012

Getting Ubuntu Server going with IPv6

I set up a Ubuntu Server in VMware workstation to test things like Quagga, Apache and BIND9. Setting it up in and of itself took a little doing. First, a shot of my virtual networking since for some reason I could not get the typical "Bridged Networking" configuration to work.

So VMnet2 is just bridged to a different adapter than the one supplying my physical machine TCP/IP access. That seemed to solve all the problems I ran into, primarily ubuntu not being able to ping the default gateway.

Then you can just add this below your initial IPv4 configuration in your /etc/network/interfaces file:
iface eth1 inet6 static
pre-up modprobe ipv6
address 2607:f0d0:2001::10
netmask 64
gateway 2607:f0d0:2001::1

Traditionally we put our DNS entries in /etc/resolv.conf but I guess that file now gets overwritten.

You should add your DNS entries to the following file: /etc/resolvconf/resolv.conf.d/base

I use OpenDNS IPv4 & IPv6 Servers:

nameserver 2620:0:ccc::2
nameserver 2620:0:ccd::2

Then you can run: sudo /etc/init.d/resolvconf restart


No comments:

Post a Comment