[lxc-users] Ubuntu Server LXC networking Problem

CDR venefax at gmail.com
Fri May 9 19:13:53 UTC 2014


The issue happens only with libvirt's virbr0 default network.
It does not happen with lxc lxcbr0

I am attaching the required information

On Fri, May 9, 2014 at 2:03 PM, CDR <venefax at gmail.com> wrote:
> No, my container has only one interface, and the host has many cards
> but only one with an IP address, the rest are UP but are not
> configured.
> This scenario males policy routing unnecessary.
>
>
> On Fri, May 9, 2014 at 10:51 AM, Michael H. Warfield <mhw at wittsend.com> wrote:
>> On Fri, 2014-05-09 at 08:00 -0400, CDR wrote:
>>> Does anybody know where in Canonical I may get support for LXC
>>> bridged-NAT networking?
>>> If the box is multihomed, it does not work.Although only one of the
>>> NICs has an IP address, it simply cannot route packets to the network.
>>> You may ping the default gateway, but that is it.
>>
>>> The same happens in every other distribution, but I switched over to
>>> Ubuntu Server for a host.
>>
>> I seem to recall in another message you sent that you were not just
>> using nat/bridge but also policy routing.  Is that still true.  If so,
>> please be sure to mention that along with the bridge networking.  You've
>> got a very unusual setup.
>>
>>> Philip
>>
>> Regards,
>> Mike
>> --
>> Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
>>    /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
>>    NIC whois: MHW9          | An optimist believes we live in the best of all
>>  PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
>>
>>
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
'eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.122.17  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 00:16:3b:d4:cd:ea  txqueuelen 1000  (Ethernet)
        RX packets 750  bytes 41204 (40.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19  bytes 3422 (3.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet XXXXXXXX  netmask 255.255.255.128  broadcast XXXXXXX
        ether 00:16:3c:d3:cd:ea  txqueuelen 0  (Ethernet)
        RX packets 31450  bytes 1909128 (1.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16  bytes 2336 (2.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 0  (Local Loopback)
        RX packets 2  bytes 140 (140.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 140 (140.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
-------------- next part --------------
ifconfig
eth0      Link encap:Ethernet  HWaddr c8:1f:66:dc:98:c0
          inet addr:XXXXXXXXX.156  Bcast:XXXXXXXXX.255  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:348168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8916 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:23279848 (23.2 MB)  TX bytes:1313982 (1.3 MB)

eth1      Link encap:Ethernet  HWaddr c8:1f:66:dc:98:c2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:777578 errors:0 dropped:48 overruns:0 frame:0
          TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:119205975 (119.2 MB)  TX bytes:15715 (15.7 KB)

eth2      Link encap:Ethernet  HWaddr c8:1f:66:dc:98:c4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:332853 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21860357 (21.8 MB)  TX bytes:4224 (4.2 KB)

eth3      Link encap:Ethernet  HWaddr c8:1f:66:dc:98:c6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:330596 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21714991 (21.7 MB)  TX bytes:0 (0.0 B)

eth4      Link encap:Ethernet  HWaddr 00:0a:f7:33:0f:08
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth5      Link encap:Ethernet  HWaddr 00:0a:f7:33:0f:0a
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:241 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:35186 (35.1 KB)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:404 (404.0 B)  TX bytes:404 (404.0 B)

lxcbr0    Link encap:Ethernet  HWaddr fe:0d:89:62:db:a0
          inet addr:10.0.3.1  Bcast:10.0.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:242 errors:0 dropped:0 overruns:0 frame:0
          TX packets:214 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:21093 (21.0 KB)  TX bytes:29404 (29.4 KB)

veth16O3HQ Link encap:Ethernet  HWaddr fe:0d:89:62:db:a0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1694 (1.6 KB)  TX bytes:3514 (3.5 KB)

veth7IK752 Link encap:Ethernet  HWaddr fe:fe:68:10:fe:7f
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1974 (1.9 KB)  TX bytes:2951 (2.9 KB)

vethOWP6Q5 Link encap:Ethernet  HWaddr fe:23:42:fe:28:a7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1498 (1.4 KB)  TX bytes:2634 (2.6 KB)

vethVLBAWO Link encap:Ethernet  HWaddr fe:42:e8:a2:cb:9f
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
          TX packets:728 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3242 (3.2 KB)  TX bytes:40132 (40.1 KB)

virbr0    Link encap:Ethernet  HWaddr 0a:7c:e9:b1:77:4f
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:166 errors:0 dropped:0 overruns:0 frame:0
          TX packets:144 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15600 (15.6 KB)  TX bytes:17156 (17.1 KB)

vnet0     Link encap:Ethernet  HWaddr 0a:7c:e9:b1:77:4f
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:63 errors:0 dropped:0 overruns:0 frame:0
          TX packets:831 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5090 (5.0 KB)  TX bytes:47552 (47.5 KB)

vnet1     Link encap:Ethernet  HWaddr 62:14:d3:5e:34:d5
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:779 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3422 (3.4 KB)  TX bytes:42712 (42.7 KB)
-------------- next part --------------
auto lo eth0 eth1 eth2 eth3 eth4 eth5
iface lo inet loopback
allow-hotplug eth0 eth1 eth2 eth3 eth4 eth5
iface eth0 inet static
        address XXXX
        netmask 255.255.255.128
        gateway XXXXXC
        hwaddress ether c8:1f:66:dc:98:c0
pre-up echo "Configuring Interface $IFACE"
iface eth1 inet manual
        hwaddress ether c8:1f:66:dc:98:c2
iface eth2 inet manual
        hwaddress ether c8:1f:66:dc:98:c4
iface eth3 inet manual
        hwaddress ether c8:1f:66:dc:98:c6
iface eth4 inet manual
        hwaddress ether 00:0a:f7:33:0f:08
iface eth5 inet manual
        hwaddress ether 00:0a:f7:33:0f:0a
-------------- next part --------------
default via 192.168.122.1 dev eth0
169.254.0.0/16 dev eth0  scope link  metric 1037
169.254.0.0/16 dev eth1  scope link  metric 1039
192.168.122.0/24 dev eth0  proto kernel  scope link  src 192.168.122.80
XXXXXXXXX.128/25 dev eth1  proto kernel  scope link  src XXXXXXXXX.194
-------------- next part --------------
default via XXXXXXXXX.129 dev eth0
10.0.3.0/24 dev lxcbr0  proto kernel  scope link  src 10.0.3.1
169.254.0.0/16 dev eth0  scope link  metric 1000
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1
XXXXXXXXX.128/25 dev eth0  proto kernel  scope link  src XXXXXXXXX.156


More information about the lxc-users mailing list