Popular Posts

Linux WLAN NIC Configuration



Linux WLAN NIC Configuration
By D.Kankam

The linux kernel will assign a name to interfaces usually by their
driver and/or chipset after linux installation.

Your wired interface is usually eth0 and can
incrementally become eth1, eth2 depending on how many network
cards are installed.

Wireless interfaces use ath0 (our atheros based ubiquity cards), wlan0 (for our
external prism based card) and eth1 (internal intel wireless card).
Checking status of cards:

ifconfig

list information about eth1 interface

ifconfig eth1

View wireless information about all
wireless extensions including interface
name, signal, AP, etc.

iwconfig

view wireless information of eth1

iwconfig eth1

to view what channel
the card is currently on
iwlist eth1 channel

Changing the channel number
iwconfig eth1 channel 6

Change the state of the cards:

ifconfig eth1 up
ifconfig eth1 down


Allow a DHCP address to
be assigned to eth1

dhcpcd eth1


To change operating modes of your wireless cards:
By default your cards should be Managed however we will need to
change that to Monitor quite often.

To switch your atheros based card into monitor mode type:
./ath_mon

To switch your prism based card into monitor mode type:
./airmon-ng start wlan0

To quickly verify if your card is now in monitor mode type the
Command found above:

iwconfig

look for Mode:Monitor under the information of your wireless
extension.

Using all these commands in combination with each other and putting ath0 into monitor mode listening to listen on channel 11:

./ath_mon
ifconfig ath0 down
iwconfig ath0 channel 11
ifconfig ath0 up


By D.K




 

Tags


Powered by WidgetsForFree

Featured Content

Our Partners

© 2010 Logical Network Security. All Rights Reserved Thesis WordPress Theme Converted into Blogger Template by Hack Tutors.info