This indeed was a case of RTFM.

However, according to the default /etc/network/interfaces:


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

But interfaces(5) does not tell you the whole story.
The part about DNS resolution sits in resolvconf(8).

So in the end my configuration looks like this:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.87.30.54
        netmask 255.255.255.192
        gateway 192.87.30.1

# This is an autoconfigured IPv6 interface
iface eth0 inet6 static
        autoconf 0
        address 2001:610:148:dead::54
        gateway 2001:610:148:dead::1
        netmask 64
        dns-search terena.org
        dns-domain terena.org
        dns-nameservers 2001:610:1:800a:192:87:106:106 
2001:610:188:140:145:100:188:188


And this works as expected, i.e. static addresses and no automatic fluff for my 
servers:

root@precise:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:56:86:00:24
          inet addr:192.87.30.54  Bcast:192.87.30.63  Mask:255.255.255.192
          inet6 addr: 2001:610:148:dead::54/64 Scope:Global
          inet6 addr: fe80::250:56ff:fe86:24/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1848 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:180870 (180.8 KB)  TX bytes:387716 (387.7 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1272 (1.2 KB)  TX bytes:1272 (1.2 KB)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/978037

Title:
  Impossible to configure static IPv6 address

Status in “network-manager” package in Ubuntu:
  Invalid

Bug description:
  Our 10.04 machines have this in /etc/network/interfaces:

  auto lo
  iface lo inet loopback

  # The primary network interface
  auto eth0
  iface eth0 inet static
      address 192.87.30.54
      netmask 255.255.255.192
      gateway 192.87.30.1

  iface eth0 inet6 static
      pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf
      address 2001:610:148:dead::54
      netmask 64
      gateway 2001:610:148:dead::1 dev eth0

  And all would be fine.
  The pre-up line takes care of disabling autoconf, the address line add a 
static address.

  Neither of them work in 12.04 beta2.
  When the system boots up, the staticly configured address is not there, and 
instead there are dynamicly configured addresses.
  Interestingly, /proc/sys/net/ipv6/conf/eth0/autoconf still is 1, despite the 
"pre-up echo 0 .." line, which indicates something with /proc?

  This basically prevents me from any furthers testing...
  It might be a case of RTFM but I couldn't find any.

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/978037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to