The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Wireless - setting WEPKEY with DHCP
Author: Dan 
Date:   22-03-08 03:12

If you've been using FreeBSD for even a short while, you will recognize this from /etc/rc.conf as a method for specifying DHCP configuration of a wireless NIC:

ifconfig_ath0="DHCP"

But did you know you can do this?

ifconfig_ath0="ssid MyWAPSSID wepkey 'ThingsYouKnew' wepmode on weptxkey 1 DHCP"

Until tonight, I had thought "DHCP" was an all or nothing option.

The above configures the NIC by specifying:

- ssid
- wepkey
- turns wepmode on
- tells the NIC to use wepkey #1
- assigns an IP address to the card using DHCP

Very nice. :)

--
Webmaster

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org