Help please I don't have access to lan from container

Hello, I am trying to configure the containers correctly to be able to have from and to my lan but so far I have not been able to get it.

This is my current configuration on the host:

File: /etc/network/interfaces  

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

# The loopback network interface
auto lo enp3s0
iface lo inet loopback

# Configurar interfaces manualmente, evitando conflictos con, por ejemplo, el administrador de red
auto enp3s0
#       iface enp3s0 inet dhcp
  iface enp3s0 inet static

 # Configuración del puente
auto bt0
#       iface bt0 inet dhcp
  iface bt0 inet static
        bridge_ports enp3s0

Currently I can only go online from the container but I cannot access the LAN. I have used several examples that I have found in web pages, use the macvlan option but I have not been able to configure it correctly, please help !, in advance, thank you very much.


I notice from your previous posts that you are using LXC.
This post is tagged as General. Do you use at the moment LXD or LXD?

For networking questions, it is good to provide

  1. Which Linux distribution you are using for the host, and version.
  2. Which version of LXC or LXD.
  3. Whether the host is in a virtual machine or not.
  4. Whether the network interface of the host is on Ethernet or WiFi. I see a bt0 interface, is that for Bluetooth?

I can help with LXD. If you use LXC, something else should be able to help if you provide the necessary details.

1 Like

Hello @simos thank you for answering, I will answer:

I am using LXC, sorry I have already updated the label.

Using Debian 9.5
Version Lxc 2.0.7
The host is not in virtual machine
Host network interface is in Ethernet
It is not for Bluetooth
Having “bto” is for Bluetooth, what bridge mode should I use for Ethernet?

Thank you very much again,

Regards! :smiley::beers: