The problem with the bridge at LXC

Discussion in 'Installation/Configuration' started by barneby, Jun 26, 2016.

  1. barneby

    barneby New Member

    Hello,
    I am trying to deploy LXC on Debian Jessie. I proceeded so that I installed lxc then in / etc / network / interfaces, add the following lines to the connection I had a bridge and not behind a NAT server hostovacího.

    auto br0
    iface br0 inet dhcp
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

    In /etc/lxc/default.conf added these lines to each system added to the bridge

    lxc.network.type = veth
    lxc.network.flags = up
    lxc.network.link = br0
    lxc.network.name = eth0
    lxc.network.mtu = 1500

    Then I created a new container with Debian and turned it on. When I log into the console and give ifconfig to see that he got an IP address from the DHCP on the router. But I can not give ping 192.168.2.1 gateway or to any other IP address.
    I'll be glad for any advice, thank you.
     
  2. barneby

    barneby New Member

    VPS on which I try to deploy runs on VMware ESXi
     

Share This Page