[Lxc-users] static IPv6 address on more than one interface

Benoit Lourdelet blourdel at juniper.net
Wed Jan 16 16:17:56 UTC 2013


Hello,

I am running Lxc 0.8.0 on ubuntu kernel 3.7.1.

I try to configure 2 static addresses on 2 different interfaces but only one is actually configured  :

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br2001 
lxc.network.name = eth1
lxc.network.hwaddr = 00:50:56:a8:03:03
lxc.network.ipv6 = 2003:1339:0:12::2/64

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br12001
lxc.network.name = eth2
lxc.network.ipv6 = 2003:1339:0:3::2/64
lxc.network.hwaddr = 00:50:57:b8:00:01

I start the container and only one IPv6 address is assigned :

ifconfig in the container :

eth1      Link encap:Ethernet  HWaddr 00:50:56:a8:03:03  
          inet6 addr: fe80::250:56ff:fea8:303/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:408 (408.0 B)  TX bytes:1674 (1.6 KB)

eth2      Link encap:Ethernet  HWaddr 00:50:57:b8:00:01  
          inet6 addr: fe80::250:57ff:feb8:1/64 Scope:Link
          inet6 addr: 2003:1339:0:3::2/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:408 (408.0 B)  TX bytes:706 (706.0 B)


Is there something I am missing ?  I tried the same idea with IPv4 on the same exact config  and it works perfectly.

regards

Benoit




More information about the lxc-users mailing list