You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case, when a user would like to set a fixed IP (i.e in /etc/network/interfaces), Raspbian still ask for, and get a DHCP address. I found this out first by looking at the device table of my router, and found that one of my Raspberry Pis had two IP addresses.
It is not visible by only using "ifconfig", but both IP addresses works when connecting to the system.
pi@d1wire-r001fry /etc/network $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
auto eth0
iface eth0 inet static
address 192.168.2.62
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.2.1
#iface default inet dhcp
Have you tried this before or after a reboot? I expierienced very funny ip config behaviours on debian prior a reboot and after a interface change. Particular with ipv6 stuff. I could imaging the same may happens with ipv4...
Yes, I have. And it is due to a not so easy to get around quirk with Raspbian.
I wrote a summary on the previous version of Raspbian, which is similar but that has a couple of other quirks as well, here: http://www.kmggroup.ch/?p=638
It is due to how "dhcpcd" is configured per default. An interface can be ignored, or one can disable dhcpcp.
In the case, when a user would like to set a fixed IP (i.e in /etc/network/interfaces), Raspbian still ask for, and get a DHCP address. I found this out first by looking at the device table of my router, and found that one of my Raspberry Pis had two IP addresses.
It is not visible by only using "ifconfig", but both IP addresses works when connecting to the system.
References
The text was updated successfully, but these errors were encountered: