momohumtolearnfree home Grab your ads here. Only $4.99 for one month

How to Connect onto OPEN / WEP WLAN via Terminal | Linux

My special thanks to Blogger and Visitors. If You like this, please help us to share:
Digg Technorati del.icio.us Stumbleupon
Bookmark and Share

When you lost your network manager on Ubuntu or another linux distro, you will need command line to help you, so can connect on internet or network connection. Network manager is a GUI application that can make ease us to configure our wireless card to be connected on wireless connection. We will share how to connect on wireless connection using terminal, this way can help you when your network manager was disappearing on kicker :P or if you have been using linux server.


    Note: replace yourinterface with your wireless interface.
    Open terminal to check the name of wireless interface,

    iwconfig

    iwconfig
  1. Connecting to an OPEN / WEP WLAN (DHCP)
    Note: for OPEN WLAN DHCP, please follow line b and c.

    1. iwconfig yourinterface mode managed key yourwepkey(128 bit WEP use 26 hex characters, 64 bit WEP uses 10)

    2. iwconfig yourinterface essid youressid (Specify ESSID for the WLAN)

    3. dhclient yourinterface(to receive an IP address, netmask, DNS server and default gateway from the Access Point)

  2. Connecting to an OPEN / WEP WLAN (Manual IP Setup)
    Note: for open, please follow line b - e.
    It may be necessary to run some packet capture software (e.g. Ethereal) to determine the IP addresses of both the Default Gateway and DNS servers.

    1. iwconfig yourinterface mode managed key yourwepkey (128 bit WEP use 26 hex characters, 64 bit WEP uses 10)

    2. iwconfig yourinterface essid youressid (Specify ESSID for the WLAN)

    3. ifconfig yourinterface youripaddress netmask yoursubnetmask

    4. route add default gw yourgateway (Configure your default gateway; usually the IP of the Access Point)

    5. echo nameserver yourdnsserver >> /etc/resolve.conf (Configure your DNS server)

iwconfig Commands:
Note: replace [interface] with your interface name as required (e.g. eth1, wlan0, ath0 etc.)

iwconfig [interface] mode master (set the card to act as an access point mode)

iwconfig [interface] mode managed (set card to client mode on a network with an access point)

iwconfig [interface] mode ad-hoc (set card to peer to peer networking or no access point mode)

iwconfig [interface] mode monitor (set card to RFMON mode our favourite)

iwconfig [interface] essid any (with some cards you may disable the ESSID checking)

iwconfig [interface] essid “your ssid_here” (configure ESSID for network)

iwconfig [interface] key 1111-1111-1111-1111 (set 128 bit WEP key)

iwconfig [interface] key 11111111 (set 64 bit WEP key)

iwconfig [interface] key s:mykey (set key as an ASCII string)

iwconfig [interface] key off (disable WEP key)

iwconfig [interface] key open (sets open mode, no authentication is used and card may accept non-encrypted sessions)

iwconfig [interface] channel [channel no.] (set a channel 1-14)

iwconfig [interface] channel auto (automatic channel selection)

iwconfig [interface] freq 2.422G (channels can also be specified in GHz)

iwconfig [interface] ap 11:11:11:11:11:11 (Force card to register AP address)

iwconfig [interface] rate 11M (card will use the rate specified)

iwconfig [interface] rate auto (select automatic rate)

iwconfig [interface] rate auto 5.5M (card will use the rate specified and any rate below as required)


ifconfig Commands:
Note: replace [interface] with your interface name as required (e.g. eth1, wlan0, ath0 etc.)

ifconfig [interface] up (bring up specified interface)

ifconfig [interface] down (take down specified interface)

ifconfig [interface] [IP address] netmask [subnet-mask] (manually set IP and subnet-mask details)

ifconfig [interface] hw ether [MAC] (Change the wireless cards MAC address, specify in format 11:11:11:11:11:11)

More detail on Madwifi Docs

Comments :

4 comments to “How to Connect onto OPEN / WEP WLAN via Terminal | Linux”
Best Jokes said...
on 

Nice blog..

----
Best Jokes
http://jokesbaskets.blogspot.com/

Lauraiz said...
on 

real cool blog..

---
entertainment
http://sportjournal2020.blogspot.com/

GF said...
on 

very very nice!!!!!
Gracias!

Anonymous said...
on 

I seldom comment, but i did some searching and wound up here "How to Connect onto OPEN / WEP WLAN via Terminal | Linux".

And I do have a couple of questions for you if you don't mind. Is it only me or does it seem like a few of the responses appear like left by brain dead individuals? :-P And, if you are writing at additional online social sites, I would like to keep up with everything fresh you have to post. Would you make a list of all of all your shared pages like your linkedin profile, Facebook page or twitter feed?
my web site - ankle and foot swelling

Post a Comment

 

Tolearnfree Tags

Translator

Follow

The Directories of Tolearnfree