Bridge network in LXD on Ubuntu 16.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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?
16.04 networking server network-bridge lxd
add a comment |Â
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?
16.04 networking server network-bridge lxd
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
add a comment |Â
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?
16.04 networking server network-bridge lxd
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
16.04 networking server network-bridge lxd
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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