Network questions
Jess Hampshire (158) 865 posts |
I notice that the dhcp system does a microsoft style 169 address if no server is avalable. Is there any way this can be user defined? (So I can be on the same subnet as my client wifi access point to access the control panel.) (I think I already asked this Thanks |
Steve Pampling (1551) 8172 posts |
The behaviour is what MS label APIPA (Automatic Private IP Addressing) and 169.254.0.0/16 is the designated range. The feature could probably be made configurable but that wouldn’t be a legal feature of the network stack. There is another feature in other stacks that allow the setting of an alternate address such that an interface that doesn’t get a DHCP offer will use an alternate configuration where APIPA is an option and manually assigned IP is another. Off hand I think the feature is provided by ZeroConf in BSD (there appears to be a ZeroConf module in Select (for the same purpose?) Sounds like a wish list item. |
Jess Hampshire (158) 865 posts |
Are there commands that can reset the ip address on the fly and set it back to dhcp? |
Steve Pampling (1551) 8172 posts |
I have noted that Select was modified to allow IP settings changes on the fly (no reboot) Anyway – if I was using the windows laptop I have here at work right now – the change method I would use is to save the current settings using NETSH INT IP DUMP > SET1.TXT then make changes to the settings I want and use NETSH INT IP DUMP > SET2.TXT After that you have two text files describing particular settings and they can be loaded with NETSH EXEC SET1.TXT or NETSH EXEC SET2.TXT So, the stack has rebooted, a few tests and go home… |
Sprow (202) 1158 posts |
You can *DHCPEXECUTE at any time you want, since that’s all the boot sequence does, there’s no magic. |
Steve Pampling (1551) 8172 posts |
…provided you specify the interface you are targeting. As Jess has raised the issue, what would be useful is if the -p option was 1. Request DHCP assigned IP – if success complete and end else fail and goto 2 |