Hi there,
I’m using an LXD Cluster setup across three different host, i’ve been able to setup a fan network manually using the lxc network create fanbr0 bridge.mode=fan fan.underlay_subnet=a.b.c.d/24 lxc profile device add default eth0 nic nictype=bridged parent=fanbr0 name=eth0
commands.
And then once i got it attach unto the cluster the dhcp addressing works perfectly and i can login to each container, and ping to the other container on another host by pinging to it’s ip, but when i use the name of the container such as ping lxd01
it doesn’t work, i understand that this is due to the dnsmasq service, how do i get dnsmasq service to work on the fan network on LXD 3.2
ifconfig -a
dummy0 Link encap:Ethernet HWaddr 1e:32:1a:02:8f:93
BROADCAST NOARP 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)
eth0 Link encap:Ethernet HWaddr 1a:f6:d9:88:c4:ad
inet addr:178.128.4.177 Bcast:178.128.15.255 Mask:255.255.240.0
inet6 addr: fe80::18f6:d9ff:fe88:c4ad/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:266408 errors:0 dropped:269 overruns:0 frame:0
TX packets:349087 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:204404226 (204.4 MB) TX bytes:218151046 (218.1 MB)
fan-250 Link encap:Ethernet HWaddr f6:c4:c7:06:6e:c3
inet addr:250.4.177.1 Bcast:0.0.0.0 Mask:255.0.0.0
inet6 addr: fe80::f4c4:c7ff:fe06:6ec3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:828 (828.0 B)
fanbr0 Link encap:Ethernet HWaddr 0e:93:6a:6c:16:c2
inet addr:240.4.177.1 Bcast:0.0.0.0 Mask:255.0.0.0
inet6 addr: fe80::cdc:7aff:fe2d:7ae4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:750 errors:0 dropped:0 overruns:0 frame:0
TX packets:924 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:52146 (52.1 KB) TX bytes:1602160 (1.6 MB)
fanbr0-fan Link encap:Ethernet HWaddr 0e:93:6a:6c:16:c2
inet6 addr: fe80::c93:6aff:fe6c:16c2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:11 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
fanbr0-mtu Link encap:Ethernet HWaddr 92:9e:a9:ec:e2:79
BROADCAST NOARP MTU:1450 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)
ftun0 Link encap:Ethernet HWaddr f6:c4:c7:06:6e:c3
inet6 addr: fe80::f4c4:c7ff:fe06:6ec3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:18 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
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:709754 errors:0 dropped:0 overruns:0 frame:0
TX packets:709754 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:72257635 (72.2 MB) TX bytes:72257635 (72.2 MB)
vethY88JCX Link encap:Ethernet HWaddr fe:b9:17:3a:ab:cc
inet6 addr: fe80::fcb9:17ff:fe3a:abcc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:163 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15140 (15.1 KB) TX bytes:319811 (319.8 KB)
lxc network show fanbr0
config:
bridge.mode: fan
dns.domain: lxd
dns.mode: managed
fan.underlay_subnet: 178.128.0.0/16
raw.dnsmasq: |-
no-hosts
expand-hosts
dhcp-ttl=3600
description: ""
name: fanbr0
type: bridge
used_by:
- /1.0/containers/clear-ferret
- /1.0/containers/web1
- /1.0/containers/web2
managed: true
status: Created
locations:
- lxd-01
- lxd-02
can someone let me know on what i should do to get DNSMASQ service working on this fan network.