Code: Select all
iface eth0 inet static address 10.10.10.2 netmask 255.255.255.0 gateway 10.10.10.1
How many is too many?morgon wrote:Maybe I don't understand your posting (and I may have one beer too many)
dhcpd is the dhcp-SERVER. It is normally configured in /etc/dhcp/dhcpd.conf. This configuration has nothing at all to do with what is in /etc/network/interfaces.rpdom wrote: The new dhcpd seems to ignore the normal /etc/network/interfaces settings and just do its own thing.
dhcpcd is the Client daemon. Not the server. It seems to ignore the "dhcp" entries and use "manual" instead.morgon wrote:I am sober again but I still don't quite understand your posting...
When you see an "dhcp"-entry in /etc/network/interfaces it means that the interface should be configured via a dhcp-CLIENT.
So I guess there are 3 scenarios:
If you want a static (hardcoded) ip for your interface use "static" in the stanza in /etc/network/interfaces.
If you want an ip via dhcp then use "dhcp".
If you want an ip via dhcp but need to ensure that a system always gets the same ip from the dhcp-server you need to configure the dhcp-server on the machine where it runs on to map a specific mac-adress to a specific ip.
I don't know if this was of any help at all..
Have a look in this forum thread viewtopic.php?f=63&t=110606&p=768633#p768633knute wrote:It's still not clear to me what "manual" means in the /etc/network/interfaces file. When I installed the raspberrypi-net-mods it overwrote my /etc/network/interfaces file that had my static IP setup in it. When I reboot it it still comes up with the old static IP address even though all of that is now missing from the /etc/network/interfaces file. I don't understand where it is getting the IP address from now.
The two IP addresses seems to be a bug in dhcpcd5 and raspberrypi-net-mods.koudstaald wrote:
Have a look in this forum thread viewtopic.php?f=63&t=110606&p=768633#p768633
However, in that thread is not solution either to the issue of two IP addresses when creating a static IP in /etc/network/interfaces
Would this also work for a OpenVPN environement since I need DHCP for the VPN clients?DougieLawson wrote:koudstaald wrote: The two IP addresses seems to be a bug in dhcpcd5 and raspberrypi-net-mods.
I've purged those two (along with isc-dhcp*) and replaced them with network-manager & dhcpcd.