I have a laptop with a wired and wireless interface. At work, it gets the same IP address for both MAC addresses, and this works seemlessly - when I plug or unplug the cable, the network keeps working, and ssh sessions stay open.
I want to have the same config at home, where I use a ReadyNAS Pro with the dualserver add-on. However, whenever I turn on the wifi, the wifi MAC gets an ip address from the free unknown pool instead of the same IP address as the wired got. Consequently the DNS then resolves the name for this host to the new/wrong ip address.
Here\'s part of the config:
# otto wired
# otto wireless
# FIXME: dualserver doesn\'t let you give the same IP to two mac\'s at the same time ? why ?
If in this config I change the second IP_Addr to, say, .26 then the wifi MAC correctly gets that IP address (but that is not what I want). When it\'s at .24, it gets another one:
[31-Dec-11 10:34:08] DHCP discover for 00:24:d7:9d:cd:54 (otto) from interface 192.168.1.4 received
[31-Dec-11 10:34:08] Client 00:24:d7:9d:cd:54 (otto) offered 192.168.1.131
[31-Dec-11 10:34:08] DHCP request for 00:24:d7:9d:cd:54 (otto) from interface 192.168.1.4 received
[31-Dec-11 10:34:08] Client 00:24:d7:9d:cd:54 (otto) allotted 192.168.1.131 for 360000 seconds
Worse, it seems that DNS gets updated based on the name the laptop suggests and overwrites the hardcoded one - why would a random client name\'s suggestion take precedence over a hardcoded one in the config ?