How can I connect to a wifi router via CLI?

Asked by pitwalker

"iwlist eth4 scan" is done i have 5 cells, and 2 is available for me (1 mac address filtered, 1 completely free)

iwconfig eth4
eth4 IEEE 802.11bg ESSID:"" Nickname:""
          Mode:Managed Frequency:2.457 GHz Access Point: Not-Associated
          Bit Rate:54 Mb/s Tx-Power:32 dBm
          Retry min limit:7 RTS thr:off Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5 Signal level=-57 dBm Noise level=-97 dBm
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:0 Missed beacon:0

I don't like network-manager -in a minimal system- because too big with dependencies (smbclient, cups, bluetooth...)
I installed a command line system, I manually install the wireless-tools package.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu wireless-tools Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Rouben (rouben) said :
#1

I was going to write out the commands manually, but I found this instead, which actually does a pretty good job of covering iwconfig:

http://www.everyjoe.com/newlinuxuser/howto-use-iwconfig/

Also keep in mind that after you configure and bring up the wireless interface with iwconfig, you will most likely have to run dhclient on it as well (dhclient takes one parameter, your wireless card's name), in order to request an IP address and get onto the network.

In your case: sudo dhclient eth4

Can you help with this problem?

Provide an answer of your own, or ask pitwalker for more information if necessary.

To post a message you must log in.