connecting to a wireless network via command line
Hi,
I am trying to write a script to connect my system with a wireless network. The following were the commands I tried for the same: Quote:
Then I ran dhclient wlan0 for which i got an message saying that dhclient is already running. so i killed that and ran 'dhclient wlan0' which eventually failed. Can you guys help me in this? I am not good at anything particularly with network. If this is a dumb question please ... I am using Fedora 12 with Hp pavilion laptop. Thanks |
I would suggest that you disable encryption on your router at first. Once you have connected, then you should look into how to use wpa_supplicant to connect to a password protected router. For what it's worth, these commands allow me to connect this netbook to my router:
Code:
ip addr add 192.168.1.4 dev wlan0 |
I do a fully manual non-DHCP connection on my home network.
Code:
wireless_interface=wlan0 When connecting to DHCP networks over wireless I often have to set a few of the things like channel, rate, essid, and mode before running dhclient3. Sometimes I even have to set an IP address for myself before it actually works. Something like this for the local McD's, before I realized you had to PAY for access, but CAN'T pay IN STORE. Code:
f_WIRELESS_DHCP() { |
Hi Guys,
As I said, I am nobody in networking. I appreciate your response,Still I didnt get anything :-). Will google with your responses. Thank you guys. Thanks, |
All times are GMT -5. The time now is 09:54 PM. |