The referenced directory is empty. But it gets worse...
I re-imaged the SD card in the Pi to a state before I started messing with networking. I booted the Pi and observed that it had an IP address of 192.168.0.100 assigned to the one Ethernet interface. This is coming from the router to which it is connected and is as expected. I plugged in the USB to Internet dongle and connected its Ethernet port to a switch. Using the NetworkManager applet I configured it as "Shared to other computers." It obtained an IP address 10.42.0.1 as per my prior experience. I plugged two PCs into the switch. Both obtained Ip addresses in the 10.42.0.xxx range and could ping each other by name!
This is wonderful except that I have NO control over what is happening. Specifically I cannot change the sub-net upon which the shared connection operates, nor can I control the range of addresses served by the DHCP function.
I again re-imaged the Pi and removed the second NIC. I connected the first NIC to my "real" network which uses dhcpd (I think, more about that in a moment). I booted the Pi and it obtained an address in the 10.42.0.xxx range as expected. I connected the USB to Ethenet dongle and configured as above. AGAIN it gained an address 10.42.0.1. This will NOT work as that is the address of the dhcpd server.
I examined the dhcpd server and it is also running dnsmasq.
Code:
[root@taylor16 etc]# ps aux | grep dnsmasq
nobody 864 0.0 0.0 15580 1300 ? S 08:28 0:00 /usr/sbin/dnsmasq --conf-file --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.254,60m --dhcp-option=option:router,10.42.0.1 --dhcp-lease-max=50 --pid-file=/var/run/nm-dnsmasq-enp0s20u1.pid --conf-dir=/etc/NetworkManager/dnsmasq-shared.d
root 3077 0.0 0.0 112664 980 pts/1 S+ 08:53 0:00 grep --color=auto dnsmasq
I note here that the address range conflicts with what I have configured in dhpcd.conf (10.42.100-10.42.0.200). My physical devices have reserved addresses in dhcpd.conf and I do not have enough virtual machines at the moment to determine which dhcp server is serving.
I did determine that dnsmasq has taken upon itself a role in passing DNS requests to the Internet. When I did a killall of dnsmasq on this box I lost connection to the Internet from my LAN.
As to it's config directory
Quote:
--conf-dir=/etc/NetworkManager/dnsmasq-shared.d
|
empty.
I think NetworkManager must have been written by Microsoft
If works "perfectly" provided "perfectly" is the author's definition of perfect. Seriously, I DO appreciate the hard work of the NetworkManager developers to take the hard work out of setting up a simple network. Still... when I need to make one little change...
I see that there is a NetworkManager mailing list. Let me have a try there and see what I can find out. Arch and Gentoo also have NetworkManager pages. Sometimes these distros provide some useful tips. Gentoo says
Quote:
Important
NetworkManager and other network management services typically do not work together. That includes a standalone instances of dhcpcd and Gentoo's default netifrc scripts. Be sure only one network management service is running at a time. Adding more than one network management service will lead to unpredictable results!
|
Ken