Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

12/12/2014

5.4.Usingthecommandlineinterface

Prev

Next

5.4. Using the command line interface


The following steps demonstrate how to configure a wireless connection in Fedora Documentation using the command
line interface (CLI) using the iwconfig command. This is an example only and demonstrates how simple wireless
connections are configured in Fedora Documentation using the iwconfig command. Using NetworkManager is the
recommended method to configure a wireless network, and knowing how to use iwconfig is usually not required.
1. First make sure NetworkManager is not controlling the interface. Deselect the
ControlledbyNetworkManager option that is shown in the image available here: Section 5.3, Using
NetworkManager at Step 4, then click OK and save changes.
2. Reboot the machine to make sure NetworkManager is not controlling the interface.
iwconfig is a commandline utility that sets the parameters of a network interface that connects to a wireless
network. Open a terminal and run su and enter the root/administrative password to switch to the root user. Run
iwconfig without any arguments to show which interface has wireless capabilities:
[scott@localhost~]$su
Password:
[root@localhost~]#iwconfig
lonowirelessextensions.
eth0nowirelessextensions.
eth1unassociatedMode:ManagedFrequency=2.427GHz
AccessPoint:NotAssociatedBitRate:0kb/sTxPower=20dBm
Sensitivity=8/0
Retrylimit:7RTSthr:offFragmentthr:off
Encryptionkey:off
PowerManagement:off
LinkQuality:0Signallevel:0Noiselevel:0
Rxinvalidnwid:0Rxinvalidcrypt:0Rxinvalidfrag:0
Txexcessiveretries:0Invalidmisc:0Missedbeacon:0
[root@localhost~]#

Note that eth1 is a working wireless interface, and is currently not associated to any network.
The following output shows the use of iwconfig to connect to a simple wireless network with an ESSID of mynet with a
WEP key of 16a12bd649ced7ce42ee3f383f:
[root@localhost~]#iwconfigeth1essidmynetkey16a12bd649ced7ce42ee3f383f
[root@localhost~]#ifconfigeth1up
[root@localhost~]#dhclienteth1

Once these commands are entered, run iwconfigeth1 to show the connection details:
[root@localhost~]#iwconfigeth1
eth1IEEE802.11gESSID:"mynet"
Mode:ManagedFrequency:2.427GHzAccessPoint:00:1D:A2:88:A9:41
BitRate:54Mb/sTxPower=20dBmSensitivity=8/0
Retrylimit:7RTSthr:offFragmentthr:off
Encryptionkey:16A12BD649CED7CE42EE3F383FSecuritymode:open
PowerManagement:off
LinkQuality=84/100Signallevel=43dBmNoiselevel=85dBm
Rxinvalidnwid:0Rxinvalidcrypt:0Rxinvalidfrag:0
Txexcessiveretries:0Invalidmisc:7Missedbeacon:12
http://docs.fedoraproject.org/enUS/Fedora/13/html/Wireless_Guide/sectWireless_GuideFedora_And_Wirelessiwconfig.html

1/2

12/12/2014

5.4.Usingthecommandlineinterface

Prev
5.3. Using NetworkManager

Up

Home

Next
Chapter 6. Other Wireless Technologies

http://docs.fedoraproject.org/enUS/Fedora/13/html/Wireless_Guide/sectWireless_GuideFedora_And_Wirelessiwconfig.html

2/2

You might also like