auto eno1 & iface inet eno1 static are commented out but gets lost on the formatting below
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
### The primary network interface
auto eno1
iface eno1 inet static
auto br0
iface br0 inet static
address 192.168.5.210
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255
gateway 192.168.5.100
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.5.100
#bridge options
bridge_ports eno1
In /etc/dnsmasq.conf I have to lines enabled:
server=/localnet/192.168.5.210
dhcp-host=id:my_container,192.168.5.215
ps aux
dnsmasq 3250 0.0 0.0 52868 2944 ? S 12:00 0:00 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
sp 4383 0.0 0.0 14224 1080 pts/0 S+ 12:13 0:00 grep --color=auto dnsmasq
ifconfig -a
br0 Link encap:Ethernet HWaddr 00:25:90:f9:50:74
inet addr:192.168.5.210 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::225:90ff:fef9:5074/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2348 errors:0 dropped:0 overruns:0 frame:0
TX packets:1109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:928225 (928.2 KB) TX bytes:194350 (194.3 KB)
eno1 Link encap:Ethernet HWaddr 00:25:90:f9:50:74
inet6 addr: fe80::225:90ff:fef9:5074/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2392 errors:0 dropped:27 overruns:0 frame:0
TX packets:1141 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:964536 (964.5 KB) TX bytes:196702 (196.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:172 errors:0 dropped:0 overruns:0 frame:0
TX packets:172 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:12824 (12.8 KB) TX bytes:12824 (12.8 KB)
rename3 Link encap:Ethernet HWaddr 00:25:90:f9:50:75
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vethNB8V71 Link encap:Ethernet HWaddr fe:94:eb:91:95:de
inet6 addr: fe80::fc94:ebff:fe91:95de/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:648 (648.0 B) TX bytes:21710 (21.7 KB)
sudo lxc profile show default
config:
user.network_mode: link-local
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: default
lxc config show --expanded my_container
architecture: x86_64
config:
user.network_mode: link-local
volatile.base_image: 8fa08537ae51c880966626561987153e72d073cbe19dfe5abc062713d929254d
volatile.eth0.hwaddr: 00:16:3e:45:80:86
volatile.idmap.base: "0"
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":65536}]'
volatile.last_state.power: RUNNING
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
root:
path: /
type: disk
ephemeral: false
profiles:
- default