Martes G Wigglesworth
2011-Sep-02 20:55 UTC
wlan0 rc.conf setup does not assign static ip on 8.2-STABLE
The system has been giving me some issues with the ifconfig commands after an unstable world upgrade from 8.1-PRERELEASE. However, after re-installing the kernel all commands result in the appropriate functionality, except for wlan0 devices being assigned their static ip address from the rc.conf script. The device becomes active, and registers as an access point, when using hostap mode, having the desired ssid, however, no IP address is ever issues during the rc.conf setup process. Example: (with hostapd activated on boot) wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:1b:2f:37:02:46 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g<hostap> status: running ssid wireless2 channel 1 (2412 MHz 11g) bssid 00:1b:2f:37:02:46 country US ecm authmode WPA privacy MIXED deftxkey 2 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 23 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs (without hostapd activated on boot) wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:1b:2f:37:02:46 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g<hostap> status: running ssid wrouter0 channel 1 (2412 MHz 11g) bssid 00:1b:2f:37:02:46 country US ecm authmode OPEN privacy OFF txpower 23 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs rc.conf section for this device is as follows: wlans_ath0="wlan0" create_args_wlan0="wlanmode hostap" ifconfig_wlan0="inet 192.168.200.1 netmask 255.255.0.0 ssid "wrouter0" mode 54g channel 1" However, all works perfectly, if I simply assign the intended ip address to the wlan0 device. Any input on this? -- Respectfully, Martes G Wigglesworth M. G. Wigglesworth Holdings, LLC www.mgwigglesworth.net
Kevin Oberman
2011-Sep-02 22:05 UTC
wlan0 rc.conf setup does not assign static ip on 8.2-STABLE
On Fri, Sep 2, 2011 at 1:44 PM, Martes G Wigglesworth <mailinglistmember@mgwigglesworth.net> wrote:> > The system has been giving me some issues with the ifconfig commands after > an unstable world upgrade from 8.1-PRERELEASE. > > However, after re-installing the kernel all commands result in the > appropriate functionality, except for wlan0 devices being assigned their > static ip address from the rc.conf script. > > The device becomes active, and registers as an access point, when using > hostap mode, having the > desired ssid, however, no IP address is ever issues during the rc.conf > setup process. > > Example: > (with hostapd activated on boot) > wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> ?metric 0 mtu 1500 > ? ? ? ?ether 00:1b:2f:37:02:46 > ? ? ? ?media: IEEE 802.11 Wireless Ethernet autoselect mode 11g<hostap> > ? ? ? ?status: running > ? ? ? ?ssid wireless2 channel 1 (2412 MHz 11g) bssid 00:1b:2f:37:02:46 > ? ? ? ?country US ecm authmode WPA privacy MIXED deftxkey 2 > ? ? ? ?AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 23 scanvalid 60 > ? ? ? ?protmode CTS wme burst dtimperiod 1 -dfs > > (without hostapd activated on boot) > wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> ?metric 0 mtu 1500 > ? ? ? ?ether 00:1b:2f:37:02:46 > ? ? ? ?media: IEEE 802.11 Wireless Ethernet autoselect mode 11g<hostap> > ? ? ? ?status: running > ? ? ? ?ssid wrouter0 channel 1 (2412 MHz 11g) bssid 00:1b:2f:37:02:46 > ? ? ? ?country US ecm authmode OPEN privacy OFF txpower 23 scanvalid 60 > ? ? ? ?protmode CTS wme burst dtimperiod 1 -dfs > > rc.conf section for this device is as follows: > > wlans_ath0="wlan0" > create_args_wlan0="wlanmode hostap" > ifconfig_wlan0="inet 192.168.200.1 netmask 255.255.0.0 ssid " " > mode 54g channel 1" > > > However, all works perfectly, if I simply assign the intended ip address > to the wlan0 device. > > Any input on this?The first thing I noticed was the multiple quotation marks and the incorrect mode. Does it work better as: ifconfig_wlan0="inet 192.168.200.1 netmask 255.255.0.0 ssid wrouter0 mode 11g channel 1" or, to make it cleaner: ifconfig_wlan0="inet 192.168.200.1/16 ssid wrouter0 mode 11g channel 1" Will the AP be routed or bridged? If it is bridged, there is no need for it to have an address. -- R. Kevin Oberman, Network Engineer - Retired E-mail: kob6558@gmail.com
Martes G Wigglesworth
2011-Sep-03 01:53 UTC
[SOLVED] wlan0 rc.conf setup does not assign static ip on 8.2-STABLE
On 09/02/2011 06:05 PM, Kevin Oberman wrote:> The first thing I noticed was the multiple quotation marks and the > incorrect mode.This was a complete oversight now my part. I am not sure when this 54g nonsense got in there, but evidently I have been working off an old rc.conf file, and this mode parameter, while still works to setup the device mode to 11g, will also cause the ip addressing to fail. I just looked at the running configuration, and it too lists 11g, and will do exactly what I have been seeing after getting the kernel correctly reinstalled. Thanks for the reply. -- Respectfully, Martes G Wigglesworth M. G. Wigglesworth Holdings, LLC www.mgwigglesworth.net