Image

Imageillubrious wrote in Imagelinux

Dhcpd dynamic designation

Wondering how I would go about telling ifconfig in linux to connect to a dhcp server of my specification? I know this can be done with Kismet, or manually entered in a NAT environment: after Kismet detects various wireless ssids and their respective dhcp servers one clicks the server they wish to use. I want to write a script for this functionality via the command line, however I can't quite find the arguments to pass to ifconfig on specefication of servers.

I've done this with the dhclient before via its dhclient.conf file, and in use via conjunction with the dhcpd daemon - However, I would like to avoid all that and do it directly with ifconfig arguments for my script. Restarting the daemon and editing the conf file each time is cumbersome, even if it is scripted.