thinkpad:~ # iwlist ethl scan ethl Scan completed :
Cell 01 - Address: 00:30:BD:62:80:7A ESSID:"WLAN" Mode:Master Frequency:2.462GHz Bit Rate:1Mb/s Bit Rate:2Mb/s Bit Rate:5.5Mb/s Bit Rate:11Mb/s
Quality:20/100 Signal level:-78 dBm Noise level:-98 dBm Encryption key:off
The iwlist command returns all wireless networks in range as well as the frequency and signal strength. In this case, you have found the network WLAN that you need to join and configure.
To join a wireless network, you use the iwconfig command, which is effectively ifconfig for wireless networks:
thinkpad:~ # iwconfig eth1 essid WLAN
The iwconfig command takes two very important parameters: the interface your wireless network card has been attached to (eth1) and the ESSID (the network name of your wireless network) of the wireless LAN you want to connect to.
When the command has completed, you can then enable DHCP (Dynamic Host Configuration Protocol) for that interface. SUSE includes ifup-dhcp and ifdown-dhcp to attach a DHCP client to the network card. In this example, you attach the DHCP process to eth1, which has now been configured and attached to the WLAN wireless network.
thinkpad:~ # ifup-dhcp eth1
Starting DHCP Client Daemon on eth1... . IP/Netmask: 192.168.1.80 / 255.255.255.0
You can see that the wireless network has picked up 192.168.1.80/24 as our network configuration.
r ■ -, r ■- — ■ For more information on using DHCP, take a look at Chapter 20.
Was this article helpful?