On Tue, Jul 05, 2005 at 10:09:22PM +1000, Rob B wrote: > At 06:18 PM 5/07/2005, Erik Nørgaard wrote: > >I am running -CURRENT with the new port of dhclient from OpenBSD. The > >problem is that dhclient most often associante with my neighbours AP > >instead of mine. > > > >The man-pages mentions the "media" statement and according to the examples > >I can find in google I should add an entry like this: > > > >interface "ath0" { > > media "ssid MYAP mode 11g"; > >} > > > >in dhclient.conf. But on boot, dhclient enters into an infinite loop > >bringing up and down the interface, until I break it. I have to manually > >run "ifconfig ath0 ssid MYAP mode 11g" and then start dhclient manually to > >force it to associate correctly with MYAP. > > Have you tried putting the appropriate ifconfig command line into > /etc/start_if.ath0. That works for me. The correct method is to just add: ifconfig_ath0="ssid MYAP mode 11g DHCP" to /etc/rc.conf. With exception of devices that load firmware, you probably do not need /etc/start_if.* these days. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC