Using different IP config than what DHCP provides
John R. Levine
johnl at iecc.com
Fri May 7 14:56:38 UTC 2010
>> than the default one DHCP offers. It is a pain to have to kill
>> dhclient and do the ifconfig and route commands manually.
>
> There are enough hooks in dhclient-script(8) to do this, assuming you
> have some way for the system to recognize where it is programatically.
Ah, right. It looks like can put it in /etc/dhclient-enter-hooks, check
for the SSID and change $new_host_name, $new_ip_address,
$new_subnet_mask, $new_broadcast_address, and $new_routers.
Regards,
John Levine, johnl at iecc.com, Primary Perpetrator of "The Internet for Dummies",
Information Superhighwayman wanna-be, http://www.johnlevine.com, ex-Mayor
"More Wiener schnitzel, please", said Tom, revealingly.
More information about the freebsd-questions
mailing list