I’m in trouble with network configuration.
Ubuntu 1804 as host and netplan configuration is the follow:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 172.16.12.209/24
gateway4: 172.16.12.10
nameservers:
search: [name.company]]
addresses: [172.16.12.218, 172.16.12.208]
bridges:
br0:
addresses:
- 172.16.12.55/24
gateway4: 172.16.12.10
nameservers:
search: [name.company]
addresses: [172.16.12.218, 172.16.12.208]
interfaces:
- bond0
bonds:
bond0:
dhcp4: no
interfaces:
- eth3
- eth2
parameters:
mode: active-backup
primary: eth3
ethernets:
eth2:
addresses: []
dhcp4: false
dhcp6: false
eth3:
addresses: []
dhcp4: false
dhcp6: false
bridges:
br10:
dhcp4: no
interfaces:
- vlan10
bridges:
br310:
dhcp4: no
interfaces:
- vlan310
vlans:
vlan10:
id: 10
link: bond0
vlan310:
id: 310
link: bond0
lxc network list
+---------+----------+---------+-------------+---------+
| NAME | TYPE | MANAGED | DESCRIPTION | USED BY |
+---------+----------+---------+-------------+---------+
| bond0 | bond | NO | | 0 |
+---------+----------+---------+-------------+---------+
| br0 | bridge | NO | | 1 |
+---------+----------+---------+-------------+---------+
| br10 | bridge | NO | | 0 |
+---------+----------+---------+-------------+---------+
| br310 | bridge | NO | | 2 |
+---------+----------+---------+-------------+---------+
| eth0 | physical | NO | | 0 |
+---------+----------+---------+-------------+---------+
| eth1 | physical | NO | | 0 |
+---------+----------+---------+-------------+---------+
| eth2 | physical | NO | | 0 |
+---------+----------+---------+-------------+---------+
| eth3 | physical | NO | | 0 |
+---------+----------+---------+-------------+---------+
| idrac | physical | NO | | 0 |
+---------+----------+---------+-------------+---------+
| vlan10 | vlan | NO | | 0 |
+---------+----------+---------+-------------+---------+
| vlan310 | vlan | NO | | 0 |
+---------+----------+---------+-------------+---------+
And I attach the eth0 of ubuntu and centos container to br310, I have a dhcp server configured on vlan310 but I don’t have IP address on either of the container.
If I do a tcpdump I can see on bond0 and also on br0:
IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:16:3e:49:bc:38, length 276
where the mac address listed is the one of the centos8 container and similar behavior for the ubuntu container. Also if I setup a static IP on those interfaces don’t work and I can’t ping the default gateway.
Also do the follow:
lxc network attach vlan310 centos8
Error: Failed to start device "vlan310": Failed to run: ip link add dev mac7b45ee8b link vlan310 type macvlan mode bridge: RTNETLINK answers: Device or resource busy
Thanks for any suggestion