Bug 41691

Summary: Combining WLAN-SSID & DHCP in rc.conf
Product: Base System Reporter: Volker Stolz <vs>
Component: confAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-RELEASE   
Hardware: Any   
OS: Any   

Description Volker Stolz 2002-08-15 19:20:01 UTC
Currently there's no way of setting a preferred SSID for wireless NICs
and asking for DHCP-setup in rc.conf.

You can either configure the NIC manually using e.g.
ifconfig_wi0="... ssid foo..." *or* set ifconfig_wi0 to DHCP and hope
you end up in the correct network.

Fix: 

Add an option to rc.conf which gets queried before setting up the
NIC and which contains the preferred SSID, e.g.

  ifconfig_wi0_ssid="foo"

Modify /etc/rc.network accordingly.

Another, more generic approach would be to have

  wicontrol_wi0="..."

in rc.conf, which would allow for setting *any* parameter
understood by wicontrol, including the SSID.
How-To-Repeat: Use two accesspoints to offer two different networks, enable DHCP in both
and then try setting up your NIC correctly in rc.conf.
Comment 1 Doug Barton freebsd_committer freebsd_triage 2003-02-02 12:52:36 UTC
State Changed
From-To: open->closed


The proper way to do this is to use /etc/dhclient-exit-hooks. Take 
a look at the man page for dhclient.conf, and dhclient-script. 
It's not that tough to set up. 

Good luck,
Comment 2 Doug Barton freebsd_committer freebsd_triage 2003-02-02 12:52:36 UTC
Responsible Changed
From-To: freebsd-bugs->dougb


I closed this one.