Re: Using different IP config than what DHCP provides
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, jo...@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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Using different IP config than what DHCP provides
John Levine writes: > I run FreeBSD 8.0 on my laptop, works great, when I take it with me I > open it up, wpa_supplicanr finds a network and DHCP configures it. > > On a few networks, though, I want to use a different network setup than > the one that DHCP provides. Is there any reasonable way to arrange > so that when I'm connected to specific network SSIDs, It runs a config > script I write rather than running dhclient, perhaps with a shim in > front of dhclient? > > The situation, in case you're wondering, is that the wifi in most of > the local coffee shops is run by the same ISP that hosts my servers, > and when I'm on their network, I want to set up in my IP range rather > 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. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Using different IP config than what DHCP provides
I run FreeBSD 8.0 on my laptop, works great, when I take it with me I open it up, wpa_supplicanr finds a network and DHCP configures it. On a few networks, though, I want to use a different network setup than the one that DHCP provides. Is there any reasonable way to arrange so that when I'm connected to specific network SSIDs, It runs a config script I write rather than running dhclient, perhaps with a shim in front of dhclient? The situation, in case you're wondering, is that the wifi in most of the local coffee shops is run by the same ISP that hosts my servers, and when I'm on their network, I want to set up in my IP range rather than the default one DHCP offers. It is a pain to have to kill dhclient and do the ifconfig and route commands manually. TIA, John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"