[lxc-users] Networking in Ubuntu with 2 ip failover in LXC
Tamas Papp
tompos at martos.bme.hu
Wed Aug 13 10:35:26 UTC 2014
Try traceroute, show route command output and things like that.
BTW you setup looks the same as before.
tamas
On 08/13/2014 12:32 PM, bryn1u85 . wrote:
> Hey,
>
> I made some changes:
> root at ns321124:~# cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> auto br0
> iface br0 inet static
> bridge_ports eth0
> bridge_stp off
> bridge_maxwait 0
> bridge_fd 0
> address 94.23.237.216
> netmask 255.255.255.0
> network 94.23.237.0
> broadcast 94.23.237.255
> gateway 94.23.237.254
>
> post-up /sbin/ifconfig br0:0 91.121.239.228 netmask
> 255.255.255.255 broadcast 91.121.239.228
> post-down /sbin/ifconfig br0:0 down
>
>
> root at ns321124:~# cat /var/lib/lxc/Oksymoron/config
> # Template used to create this container:
> /usr/share/lxc/templates/lxc-ubuntu
> # Parameters passed to the template:
> # For additional config options, please look at lxc.container.conf(5)
>
> # Common configuration
> lxc.include = /usr/share/lxc/config/ubuntu.common.conf
>
> # Container specific configuration
> lxc.rootfs = /var/lib/lxc/Oksymoron/rootfs
> lxc.mount = /var/lib/lxc/Oksymoron/fstab
> lxc.utsname = Oksymoron
> lxc.arch = amd64
>
> # Network configuration
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = br0
> lxc.network.name <http://lxc.network.name> = eth0
> lxc.network.ipv4 = 91.121.239.228/32 <http://91.121.239.228/32>
> lxc.network.ipv4.gateway = 91.121.239.254
> lxc.network.hwaddr = 00:16:3e:3e:35:9e
>
> root at ns321124:~# ifconfig
> br0 Link encap:Ethernet HWaddr 00:30:48:bd:ee:08
> inet addr:94.23.237.216 Bcast:94.23.237.255 Mask:255.255.255.0
> inet6 addr: fe80::230:48ff:febd:ee08/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1432 errors:0 dropped:4 overruns:0 frame:0
> TX packets:785 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:109849 (109.8 KB) TX bytes:149687 (149.6 KB)
>
> br0:0 Link encap:Ethernet HWaddr 00:30:48:bd:ee:08
> inet addr:91.121.239.228 Bcast:91.121.239.228
> Mask:255.255.255.255
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0 Link encap:Ethernet HWaddr 00:30:48:bd:ee:08
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1507 errors:0 dropped:0 overruns:0 frame:0
> TX packets:826 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:133897 (133.8 KB) TX bytes:163263 (163.2 KB)
> Interrupt:16 Memory:fbce0000-fbd00000
>
> 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:65536 Metric:1
> RX packets:6 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:370 (370.0 B) TX bytes:370 (370.0 B)
>
> #### LXC ###
>
> root at Oksymoron:~# lxc-console -n Oksymoron
>
> root at Oksymoron:~# cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> auto eth0
> iface eth0 inet dhcp
>
>
> root at Oksymoron:~# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:16:3e:3e:35:9e
> inet addr:91.121.239.228 Bcast:255.255.255.255
> Mask:255.255.255.255
> inet6 addr: fe80::216:3eff:fe3e:359e/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:489 errors:0 dropped:0 overruns:0 frame:0
> TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:41460 (41.4 KB) TX bytes:10332 (10.3 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:65536 Metric:1
> RX packets:60 errors:0 dropped:0 overruns:0 frame:0
> TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:4966 (4.9 KB) TX bytes:4966 (4.9 KB)
>
> And failed:
>
>
> root at Oksymoron:~# apt-get update
> 0% [Connecting to archive.ubuntu.com <http://archive.ubuntu.com>]
> [Connecting to security.ubuntu.com <http://security.ubuntu.com>]
> 0% [Connecting to archive.ubuntu.com <http://archive.ubuntu.com>]
> [Connecting to security.ubuntu.com <http://security.ubuntu.com>]
>
> I don;t know what can i do more
> Please give me some advice
>
>
>
>
>
> 2014-08-13 10:29 GMT+02:00 Tamas Papp <tompos at martos.bme.hu
> <mailto:tompos at martos.bme.hu>>:
>
>
> On 08/13/2014 10:28 AM, bryn1u85 . wrote:
>
> Hey,
>
> what do u mean standard configuration ?
>
>
> man interfaces
>
>
>
> t
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> <mailto:lxc-users at lists.linuxcontainers.org>
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140813/11906bd0/attachment-0001.html>
More information about the lxc-users
mailing list