Re: [lxc-users] Create bridge between LXC Container and Ethernet device

2021-01-09 Thread Guido Jäkel
Dear Patrick, congratulations! Now as you seems to have a running setup, you'll probably want to keep it. Said that, I want to give 5ct more on your statement of the fixed IP and MAC you have to use: Maybe you have pay attention of the MACs used by the veth's attaching to the software bridge:

Re: [lxc-users] Create bridge between LXC Container and Ethernet device

2021-01-08 Thread Patrick
Hi, I installed dnsmasq and configured the container to use it and I could finally ping domain names. After that, I tried to install some packages, but I just got http timeouts when trying to do that, so something was still wrong. Finally I decided to use lxc-net to create a private subnet and

Re: [lxc-users] Create bridge between LXC Container and Ethernet device

2021-01-07 Thread Patrick
Hi, thanks to everyone for your answers. I was able to create a bridge so that my container gets it's own dedicated public IP, but it was a bit more complicated than expected. > In your case, you may: > * assign 1.2.3.4/24 to br0 instead of eth0, leave IP level of eth0 > unconfigured > * assig

Re: [lxc-users] Create bridge between LXC Container and Ethernet device

2021-01-07 Thread Guido Jäkel
Hi Patrick, (eighter change the hoster or) you may install a simple forwarding DNS resolver like dnsmasq on you lxc host and configure the container(s) to use this. Guido On 2021-01-07 18:55, Patrick wrote: > There is only one problem left. The DNS doesn't work. I can ping 8.8.8.8, but > I can

Re: [lxc-users] Create bridge between LXC Container and Ethernet device

2021-01-04 Thread Andrey Repin
Greetings, Patrick! > I'm trying to create a bridge device between my LXC Container and my > Ethernet Device, which has 2 public IPs. The bridge device creation fails, > as you can see here: https://paste.debian.net/hidden/c81c8832/. I want to > bridge the LXC Container with the secondary IP addre

Re: [lxc-users] Create bridge between LXC Container and Ethernet device

2021-01-03 Thread Guido Jäkel
Dear Patrick, a Bridge is a router device at layer 2, not a layer 3 one! At layer 2, all routing is determined by the MAC addresses, not by the IP adresses. In the other hand, an Interface is an L2-to-L3 connector, it will arbitrate between a L3 identifier (an IP) and an L2 identifier (a MAC).

Re: [lxc-users] Create bridge between LXC Container and Ethernet device

2021-01-02 Thread Serge E. Hallyn
Right, eth0:0 is just an alias so enslaving eth0:0 will actually enslave eth0. You're probably better off just using iptables. On Fri, Jan 01, 2021 at 08:57:00PM +0100, Patrick wrote: > Hi, > > I'm trying to create a bridge device between my LXC Container and my Ethernet > Device, which has 2 pu

[lxc-users] Create bridge between LXC Container and Ethernet device

2021-01-01 Thread Patrick
Hi, I'm trying to create a bridge device between my LXC Container and my Ethernet Device, which has 2 public IPs. The bridge device creation fails, as you can see here: https://paste.debian.net/hidden/c81c8832/. I want to bridge the LXC Container with the secondary IP address of the Ethernet in