Bridge network in LXD on Ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I've been trying to build a bridge network so my LXD containers can communicate with my LAN.



So far, I have managed to get the IP address of the LAN for the container, but it does not communicate with LAN and the LAN does not communicate with it.



The scenario is:



NIC enp0s3 = external access to manage Ubuntu(HOST)
NIC enp0s8 = physical interface for bridge
Interface br0 = bridge for LXD


file /etc/network/interfaces:



 auto enp0s3
iface enp0s3 inet static
address 192.168.0.107
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
auto enp0s8
iface enp0s8 inet manual

auto br0
iface br0 inet manual
bridge_ports enp0s8
bridge_stp off
bridge_fd 0
bridge_maxwait 0


ifconfig:



br0 Link encap:Ethernet HWaddr 08:00:27:1a:fe:df
inet6 addr: 2804:2140:1018:12c8:a00:27ff:fe1a:fedf/64 Scope:Global
inet6 addr: fe80::a00:27ff:fe1a:fedf/64 Scope:Link
inet6 addr: 2804:2140:1018:12c8:9c52:6063:a075:e36b/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:672 errors:0 dropped:0 overruns:0 frame:0
TX packets:291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:470101 (470.1 KB) TX bytes:31614 (31.6 KB)

enp0s3 Link encap:Ethernet HWaddr 08:00:27:e7:45:c5
inet addr:192.168.0.107 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fee7:45c5/64 Scope:Link
inet6 addr: 2804:2140:1018:12c8:a00:27ff:fee7:45c5/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:721 errors:0 dropped:0 overruns:0 frame:0
TX packets:364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:302809 (302.8 KB) TX bytes:36979 (36.9 KB)

enp0s8 Link encap:Ethernet HWaddr 08:00:27:1a:fe:df
inet6 addr: fe80::a00:27ff:fe1a:fedf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:852 errors:0 dropped:0 overruns:0 frame:0
TX packets:339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:515423 (515.4 KB) TX bytes:34740 (34.7 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:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:5920 (5.9 KB) TX bytes:5920 (5.9 KB)

veth11T3WJ Link encap:Ethernet HWaddr fe:e7:09:12:05:73
inet6 addr: fe80::fce7:9ff:fe12:573/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:311 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1812 (1.8 KB) TX bytes:30303 (30.3 KB)


Container with IP



root@ubuntu:/etc/network# lxc list
+---------+---------+----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------+---------+----------------------+------+------------+-----------+
| CentOS7 | RUNNING | 192.168.0.110 (eth0) | | PERSISTENT | 0 |
+---------+---------+----------------------+------+------------+-----------+


I followed the steps in this topic:



How to setup LXD containers that communicate over the LAN | Stack Overflow



Can someone give me a light on this?










share|improve this question























  • I found the problem, the configuration is correct, however I was testing in VirtualBox. Even with the Promiscuous mode it did not work. I tested it on VMware Workstation and on a physical machine and ran perfectly.
    – Leandro T
    Mar 29 at 16:07














up vote
0
down vote

favorite












I've been trying to build a bridge network so my LXD containers can communicate with my LAN.



So far, I have managed to get the IP address of the LAN for the container, but it does not communicate with LAN and the LAN does not communicate with it.



The scenario is:



NIC enp0s3 = external access to manage Ubuntu(HOST)
NIC enp0s8 = physical interface for bridge
Interface br0 = bridge for LXD


file /etc/network/interfaces:



 auto enp0s3
iface enp0s3 inet static
address 192.168.0.107
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
auto enp0s8
iface enp0s8 inet manual

auto br0
iface br0 inet manual
bridge_ports enp0s8
bridge_stp off
bridge_fd 0
bridge_maxwait 0


ifconfig:



br0 Link encap:Ethernet HWaddr 08:00:27:1a:fe:df
inet6 addr: 2804:2140:1018:12c8:a00:27ff:fe1a:fedf/64 Scope:Global
inet6 addr: fe80::a00:27ff:fe1a:fedf/64 Scope:Link
inet6 addr: 2804:2140:1018:12c8:9c52:6063:a075:e36b/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:672 errors:0 dropped:0 overruns:0 frame:0
TX packets:291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:470101 (470.1 KB) TX bytes:31614 (31.6 KB)

enp0s3 Link encap:Ethernet HWaddr 08:00:27:e7:45:c5
inet addr:192.168.0.107 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fee7:45c5/64 Scope:Link
inet6 addr: 2804:2140:1018:12c8:a00:27ff:fee7:45c5/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:721 errors:0 dropped:0 overruns:0 frame:0
TX packets:364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:302809 (302.8 KB) TX bytes:36979 (36.9 KB)

enp0s8 Link encap:Ethernet HWaddr 08:00:27:1a:fe:df
inet6 addr: fe80::a00:27ff:fe1a:fedf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:852 errors:0 dropped:0 overruns:0 frame:0
TX packets:339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:515423 (515.4 KB) TX bytes:34740 (34.7 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:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:5920 (5.9 KB) TX bytes:5920 (5.9 KB)

veth11T3WJ Link encap:Ethernet HWaddr fe:e7:09:12:05:73
inet6 addr: fe80::fce7:9ff:fe12:573/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:311 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1812 (1.8 KB) TX bytes:30303 (30.3 KB)


Container with IP



root@ubuntu:/etc/network# lxc list
+---------+---------+----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------+---------+----------------------+------+------------+-----------+
| CentOS7 | RUNNING | 192.168.0.110 (eth0) | | PERSISTENT | 0 |
+---------+---------+----------------------+------+------------+-----------+


I followed the steps in this topic:



How to setup LXD containers that communicate over the LAN | Stack Overflow



Can someone give me a light on this?










share|improve this question























  • I found the problem, the configuration is correct, however I was testing in VirtualBox. Even with the Promiscuous mode it did not work. I tested it on VMware Workstation and on a physical machine and ran perfectly.
    – Leandro T
    Mar 29 at 16:07












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I've been trying to build a bridge network so my LXD containers can communicate with my LAN.



So far, I have managed to get the IP address of the LAN for the container, but it does not communicate with LAN and the LAN does not communicate with it.



The scenario is:



NIC enp0s3 = external access to manage Ubuntu(HOST)
NIC enp0s8 = physical interface for bridge
Interface br0 = bridge for LXD


file /etc/network/interfaces:



 auto enp0s3
iface enp0s3 inet static
address 192.168.0.107
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
auto enp0s8
iface enp0s8 inet manual

auto br0
iface br0 inet manual
bridge_ports enp0s8
bridge_stp off
bridge_fd 0
bridge_maxwait 0


ifconfig:



br0 Link encap:Ethernet HWaddr 08:00:27:1a:fe:df
inet6 addr: 2804:2140:1018:12c8:a00:27ff:fe1a:fedf/64 Scope:Global
inet6 addr: fe80::a00:27ff:fe1a:fedf/64 Scope:Link
inet6 addr: 2804:2140:1018:12c8:9c52:6063:a075:e36b/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:672 errors:0 dropped:0 overruns:0 frame:0
TX packets:291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:470101 (470.1 KB) TX bytes:31614 (31.6 KB)

enp0s3 Link encap:Ethernet HWaddr 08:00:27:e7:45:c5
inet addr:192.168.0.107 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fee7:45c5/64 Scope:Link
inet6 addr: 2804:2140:1018:12c8:a00:27ff:fee7:45c5/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:721 errors:0 dropped:0 overruns:0 frame:0
TX packets:364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:302809 (302.8 KB) TX bytes:36979 (36.9 KB)

enp0s8 Link encap:Ethernet HWaddr 08:00:27:1a:fe:df
inet6 addr: fe80::a00:27ff:fe1a:fedf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:852 errors:0 dropped:0 overruns:0 frame:0
TX packets:339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:515423 (515.4 KB) TX bytes:34740 (34.7 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:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:5920 (5.9 KB) TX bytes:5920 (5.9 KB)

veth11T3WJ Link encap:Ethernet HWaddr fe:e7:09:12:05:73
inet6 addr: fe80::fce7:9ff:fe12:573/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:311 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1812 (1.8 KB) TX bytes:30303 (30.3 KB)


Container with IP



root@ubuntu:/etc/network# lxc list
+---------+---------+----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------+---------+----------------------+------+------------+-----------+
| CentOS7 | RUNNING | 192.168.0.110 (eth0) | | PERSISTENT | 0 |
+---------+---------+----------------------+------+------------+-----------+


I followed the steps in this topic:



How to setup LXD containers that communicate over the LAN | Stack Overflow



Can someone give me a light on this?










share|improve this question















I've been trying to build a bridge network so my LXD containers can communicate with my LAN.



So far, I have managed to get the IP address of the LAN for the container, but it does not communicate with LAN and the LAN does not communicate with it.



The scenario is:



NIC enp0s3 = external access to manage Ubuntu(HOST)
NIC enp0s8 = physical interface for bridge
Interface br0 = bridge for LXD


file /etc/network/interfaces:



 auto enp0s3
iface enp0s3 inet static
address 192.168.0.107
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
auto enp0s8
iface enp0s8 inet manual

auto br0
iface br0 inet manual
bridge_ports enp0s8
bridge_stp off
bridge_fd 0
bridge_maxwait 0


ifconfig:



br0 Link encap:Ethernet HWaddr 08:00:27:1a:fe:df
inet6 addr: 2804:2140:1018:12c8:a00:27ff:fe1a:fedf/64 Scope:Global
inet6 addr: fe80::a00:27ff:fe1a:fedf/64 Scope:Link
inet6 addr: 2804:2140:1018:12c8:9c52:6063:a075:e36b/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:672 errors:0 dropped:0 overruns:0 frame:0
TX packets:291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:470101 (470.1 KB) TX bytes:31614 (31.6 KB)

enp0s3 Link encap:Ethernet HWaddr 08:00:27:e7:45:c5
inet addr:192.168.0.107 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fee7:45c5/64 Scope:Link
inet6 addr: 2804:2140:1018:12c8:a00:27ff:fee7:45c5/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:721 errors:0 dropped:0 overruns:0 frame:0
TX packets:364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:302809 (302.8 KB) TX bytes:36979 (36.9 KB)

enp0s8 Link encap:Ethernet HWaddr 08:00:27:1a:fe:df
inet6 addr: fe80::a00:27ff:fe1a:fedf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:852 errors:0 dropped:0 overruns:0 frame:0
TX packets:339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:515423 (515.4 KB) TX bytes:34740 (34.7 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:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:5920 (5.9 KB) TX bytes:5920 (5.9 KB)

veth11T3WJ Link encap:Ethernet HWaddr fe:e7:09:12:05:73
inet6 addr: fe80::fce7:9ff:fe12:573/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:311 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1812 (1.8 KB) TX bytes:30303 (30.3 KB)


Container with IP



root@ubuntu:/etc/network# lxc list
+---------+---------+----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------+---------+----------------------+------+------------+-----------+
| CentOS7 | RUNNING | 192.168.0.110 (eth0) | | PERSISTENT | 0 |
+---------+---------+----------------------+------+------------+-----------+


I followed the steps in this topic:



How to setup LXD containers that communicate over the LAN | Stack Overflow



Can someone give me a light on this?







16.04 networking server network-bridge lxd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 9:27









Drakonoved

7421515




7421515










asked Mar 23 at 0:26









Leandro T

33




33











  • I found the problem, the configuration is correct, however I was testing in VirtualBox. Even with the Promiscuous mode it did not work. I tested it on VMware Workstation and on a physical machine and ran perfectly.
    – Leandro T
    Mar 29 at 16:07
















  • I found the problem, the configuration is correct, however I was testing in VirtualBox. Even with the Promiscuous mode it did not work. I tested it on VMware Workstation and on a physical machine and ran perfectly.
    – Leandro T
    Mar 29 at 16:07















I found the problem, the configuration is correct, however I was testing in VirtualBox. Even with the Promiscuous mode it did not work. I tested it on VMware Workstation and on a physical machine and ran perfectly.
– Leandro T
Mar 29 at 16:07




I found the problem, the configuration is correct, however I was testing in VirtualBox. Even with the Promiscuous mode it did not work. I tested it on VMware Workstation and on a physical machine and ran perfectly.
– Leandro T
Mar 29 at 16:07















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018404%2fbridge-network-in-lxd-on-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018404%2fbridge-network-in-lxd-on-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491