SlideShare una empresa de Scribd logo
1 de 9
Descargar para leer sin conexión
Setting wireless/ethernet interface using
              Commandline

          M Naresh Babu-2008EET2291

                                IITD


                     April 18, 2009




    M Naresh Babu-2008EET2291          Setting wireless/ethernet interface using Commandline
Making sure you have wireless-tools installed

       Type the following onto your command line:

       $dpkg -l | grep wireless-tools

       This command looks at the list of all of the packages installed
       on your computer, pipes the list into grep, and lets it search
       for wireless-tools. If it does exist on your computer, it returns
       a line of text containing it, looking something like this:

       ii wireless-tools 29-1ubuntu2 Tools for manipulating Linux
       Wireless Extens

       However, if it is not, and your computer is currently
       connected to the internet, install it by typing:

       $sudo apt-get install wireless-tools

                M Naresh Babu-2008EET2291   Setting wireless/ethernet interface using Commandline
Finding and turning on your wireless card


       Before scanning for a wireless network, you need to find the
       name of your wireless card, and turn it on. To find the name
       of your wireless card, type the following command into your
       command line:

       $sudo lshw -C network

       lshw produces the list of hardware connected to your
       computer, and -C network filters the list to show only network
       devices.




               M Naresh Babu-2008EET2291   Setting wireless/ethernet interface using Commandline
Now, before you start connecting to a new wireless network,
you need to make sure that your wireless interface is on and
not still trying to connect to an old network from somewhere
else. To accomplish this, type the following series of
commands:

$sudo ifconfig [interface name] down
$sudo dhclient -r [interface name]
$sudo ifconfig [interface name] up

ifconfig allows you to configure network interfaces, both wired
and wireless; the first command uses this program to turn
your wireless card off. The second command uses dhclient to
release [-r] your wireless card from any IP address it had been
bound to before.The last command uses ifconfig again, this
time to bring your wireless interface back up.

         M Naresh Babu-2008EET2291   Setting wireless/ethernet interface using Commandline
Scanning for a wireless network



       Type the following into your command line:

       $sudo iwlist [interface] scan

       iwlist gives you plenty of information with which to select a
       wireless network. First of all, look at the ”Encryption key”
       field; it will either say on or off. If it says “on”, that means it
       has a WEP [Wireless Encryption Protocol] key, a password to
       get on the network.




                M Naresh Babu-2008EET2291   Setting wireless/ethernet interface using Commandline
Configuring your connection to the wireless network



      Type the following onto your command line:

      $sudo iwconfig [interface name] mode managed key
      [password, or ’off’ if no password] essid [ESSID]

      The mode managed section of the command tells your wireless
      card that it is supposed to associate with a central access
      point that is offering wireless network services, instead of
      trying to connect directly with other computers in a network.




              M Naresh Babu-2008EET2291   Setting wireless/ethernet interface using Commandline
Example

     For using IITDWimax in academic area the following two
     commands are sufficent

     $sudo iwconfig [interface name] essid ”IITD WiMAX”
     $sudo dhclient [interface name]

     If it’s successful, and the network binds your computer to an
     IP address, it will say on the screen:

     bound to [A.B.C.D]

     A.B.C.D. is your IP address on the network; it will be four
     numbers separated by periods.

              M Naresh Babu-2008EET2291   Setting wireless/ethernet interface using Commandline
Example


     To make sure your connection works, go ahead and ping a
     website you know will be up:

     $ping www.google.com

     If the ping starts returning lines like this:

     64 bytes from py-in-f147.google.com (64.233.167.147):
     icmp seq=5 ttl=242 time=60.9 ms

     Congratulations You’re on the internet. Hit ctrl-C to stop the
     pinging, and enjoy using the internet.


               M Naresh Babu-2008EET2291   Setting wireless/ethernet interface using Commandline
Thank U




M Naresh Babu-2008EET2291   Setting wireless/ethernet interface using Commandline

Más contenido relacionado

La actualidad más candente (20)

IP classes
IP classesIP classes
IP classes
 
Assigning A Static IP Address
Assigning A Static IP AddressAssigning A Static IP Address
Assigning A Static IP Address
 
TLE 10 (ICT): Configuring a Wireless Router
TLE 10 (ICT): Configuring a Wireless RouterTLE 10 (ICT): Configuring a Wireless Router
TLE 10 (ICT): Configuring a Wireless Router
 
Chapter1ccna
Chapter1ccnaChapter1ccna
Chapter1ccna
 
How to make a simple application on packet tracer
How to make a simple application on packet tracerHow to make a simple application on packet tracer
How to make a simple application on packet tracer
 
CCNA ppt Day 1
CCNA ppt Day 1CCNA ppt Day 1
CCNA ppt Day 1
 
CCNA SUMMER TRAINNING PPT
CCNA SUMMER TRAINNING PPTCCNA SUMMER TRAINNING PPT
CCNA SUMMER TRAINNING PPT
 
Computer Networking Lab File
Computer Networking Lab FileComputer Networking Lab File
Computer Networking Lab File
 
Design of a campus network
Design of a campus networkDesign of a campus network
Design of a campus network
 
Ip address
Ip addressIp address
Ip address
 
Ip Addressing
Ip AddressingIp Addressing
Ip Addressing
 
iP Address ,
 iP Address , iP Address ,
iP Address ,
 
Laser Article
Laser ArticleLaser Article
Laser Article
 
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {2013...
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {2013...Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {2013...
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {2013...
 
CCNA Packet Tracer 1.6.1
CCNA Packet Tracer 1.6.1CCNA Packet Tracer 1.6.1
CCNA Packet Tracer 1.6.1
 
Packet Tracer Tutorial # 1
Packet Tracer Tutorial # 1Packet Tracer Tutorial # 1
Packet Tracer Tutorial # 1
 
Vlsm
VlsmVlsm
Vlsm
 
Basic network training2
Basic network training2Basic network training2
Basic network training2
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
CCNA DUMPS 200-120
CCNA DUMPS 200-120CCNA DUMPS 200-120
CCNA DUMPS 200-120
 

Destacado (9)

Project Eduvid
Project EduvidProject Eduvid
Project Eduvid
 
Vi
ViVi
Vi
 
video tools
video toolsvideo tools
video tools
 
Shellscripting
ShellscriptingShellscripting
Shellscripting
 
Develop FOSS project using Google Code Hosting
Develop FOSS project using Google Code HostingDevelop FOSS project using Google Code Hosting
Develop FOSS project using Google Code Hosting
 
JavaScript Prototype and Module Pattern
JavaScript Prototype and Module PatternJavaScript Prototype and Module Pattern
JavaScript Prototype and Module Pattern
 
Introduction to FOSS world
Introduction to FOSS worldIntroduction to FOSS world
Introduction to FOSS world
 
Openoffice
OpenofficeOpenoffice
Openoffice
 
Python Presentation
Python PresentationPython Presentation
Python Presentation
 

Similar a wireless conf

Paxton Access 477-901-US Instruction Manual
Paxton Access 477-901-US Instruction ManualPaxton Access 477-901-US Instruction Manual
Paxton Access 477-901-US Instruction ManualJMAC Supply
 
D link router_setup_example
D link router_setup_exampleD link router_setup_example
D link router_setup_example97148881557
 
Network configuration in Linux
Network configuration in LinuxNetwork configuration in Linux
Network configuration in LinuxMohammed Yazdani
 
OSTU - Using Microsoft Netsh (by Tony Fortunato)
OSTU - Using Microsoft Netsh (by Tony Fortunato)OSTU - Using Microsoft Netsh (by Tony Fortunato)
OSTU - Using Microsoft Netsh (by Tony Fortunato)Denny K
 
Wireless routers Presentation
Wireless routers PresentationWireless routers Presentation
Wireless routers PresentationFahd Allebdi
 
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidth
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidthAn Express Guide ~ "dummynet" for tweaking network latencies & bandwidth
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidthAbhishek Kumar
 
CSS L17 - DOS COMMANDS IN COMPUTER NETWORKING
CSS L17 - DOS COMMANDS IN COMPUTER NETWORKINGCSS L17 - DOS COMMANDS IN COMPUTER NETWORKING
CSS L17 - DOS COMMANDS IN COMPUTER NETWORKINGMarvin Bronoso
 
Configuring Wds
Configuring WdsConfiguring Wds
Configuring Wds925351jay1
 
Tcpip networking basics_and_troubleshooting
Tcpip networking basics_and_troubleshootingTcpip networking basics_and_troubleshooting
Tcpip networking basics_and_troubleshootingKumar
 
communicate with instrument by using lan
communicate with instrument by using lancommunicate with instrument by using lan
communicate with instrument by using lanAbdosalam Arif
 
cisco lab_1.pptx
cisco lab_1.pptxcisco lab_1.pptx
cisco lab_1.pptxSelfUse
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_trainingvideos
 
Loopback address
Loopback addressLoopback address
Loopback addressCEC Landran
 
Configuring a gns3 ethernet nio cloud free ccna workbook
Configuring a gns3 ethernet nio cloud   free ccna workbookConfiguring a gns3 ethernet nio cloud   free ccna workbook
Configuring a gns3 ethernet nio cloud free ccna workbookDare Tintin
 
adhoc network workshop
adhoc network workshopadhoc network workshop
adhoc network workshopAli Nezhad
 
Configuring windows 7 to provide secure wireless access point services to wi fi
Configuring windows 7 to provide secure wireless access point services to wi fiConfiguring windows 7 to provide secure wireless access point services to wi fi
Configuring windows 7 to provide secure wireless access point services to wi fiRavi Kumar Lanke
 
Saad baig practical file
Saad baig practical fileSaad baig practical file
Saad baig practical fileSaadBaig33
 

Similar a wireless conf (20)

Zxdsl 9210 guide
Zxdsl 9210 guideZxdsl 9210 guide
Zxdsl 9210 guide
 
Paxton Access 477-901-US Instruction Manual
Paxton Access 477-901-US Instruction ManualPaxton Access 477-901-US Instruction Manual
Paxton Access 477-901-US Instruction Manual
 
D link router_setup_example
D link router_setup_exampleD link router_setup_example
D link router_setup_example
 
Network configuration in Linux
Network configuration in LinuxNetwork configuration in Linux
Network configuration in Linux
 
OSTU - Using Microsoft Netsh (by Tony Fortunato)
OSTU - Using Microsoft Netsh (by Tony Fortunato)OSTU - Using Microsoft Netsh (by Tony Fortunato)
OSTU - Using Microsoft Netsh (by Tony Fortunato)
 
Wireless routers Presentation
Wireless routers PresentationWireless routers Presentation
Wireless routers Presentation
 
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidth
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidthAn Express Guide ~ "dummynet" for tweaking network latencies & bandwidth
An Express Guide ~ "dummynet" for tweaking network latencies & bandwidth
 
CSS L17 - DOS COMMANDS IN COMPUTER NETWORKING
CSS L17 - DOS COMMANDS IN COMPUTER NETWORKINGCSS L17 - DOS COMMANDS IN COMPUTER NETWORKING
CSS L17 - DOS COMMANDS IN COMPUTER NETWORKING
 
Configuring Wds
Configuring WdsConfiguring Wds
Configuring Wds
 
Backtrack Manual Part10
Backtrack Manual Part10Backtrack Manual Part10
Backtrack Manual Part10
 
Tcpip networking basics_and_troubleshooting
Tcpip networking basics_and_troubleshootingTcpip networking basics_and_troubleshooting
Tcpip networking basics_and_troubleshooting
 
PICDriver
PICDriverPICDriver
PICDriver
 
communicate with instrument by using lan
communicate with instrument by using lancommunicate with instrument by using lan
communicate with instrument by using lan
 
cisco lab_1.pptx
cisco lab_1.pptxcisco lab_1.pptx
cisco lab_1.pptx
 
9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training9 creating cent_os 7_mages_for_dpdk_training
9 creating cent_os 7_mages_for_dpdk_training
 
Loopback address
Loopback addressLoopback address
Loopback address
 
Configuring a gns3 ethernet nio cloud free ccna workbook
Configuring a gns3 ethernet nio cloud   free ccna workbookConfiguring a gns3 ethernet nio cloud   free ccna workbook
Configuring a gns3 ethernet nio cloud free ccna workbook
 
adhoc network workshop
adhoc network workshopadhoc network workshop
adhoc network workshop
 
Configuring windows 7 to provide secure wireless access point services to wi fi
Configuring windows 7 to provide secure wireless access point services to wi fiConfiguring windows 7 to provide secure wireless access point services to wi fi
Configuring windows 7 to provide secure wireless access point services to wi fi
 
Saad baig practical file
Saad baig practical fileSaad baig practical file
Saad baig practical file
 

Último

Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 

Último (20)

Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 

wireless conf

  • 1. Setting wireless/ethernet interface using Commandline M Naresh Babu-2008EET2291 IITD April 18, 2009 M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline
  • 2. Making sure you have wireless-tools installed Type the following onto your command line: $dpkg -l | grep wireless-tools This command looks at the list of all of the packages installed on your computer, pipes the list into grep, and lets it search for wireless-tools. If it does exist on your computer, it returns a line of text containing it, looking something like this: ii wireless-tools 29-1ubuntu2 Tools for manipulating Linux Wireless Extens However, if it is not, and your computer is currently connected to the internet, install it by typing: $sudo apt-get install wireless-tools M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline
  • 3. Finding and turning on your wireless card Before scanning for a wireless network, you need to find the name of your wireless card, and turn it on. To find the name of your wireless card, type the following command into your command line: $sudo lshw -C network lshw produces the list of hardware connected to your computer, and -C network filters the list to show only network devices. M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline
  • 4. Now, before you start connecting to a new wireless network, you need to make sure that your wireless interface is on and not still trying to connect to an old network from somewhere else. To accomplish this, type the following series of commands: $sudo ifconfig [interface name] down $sudo dhclient -r [interface name] $sudo ifconfig [interface name] up ifconfig allows you to configure network interfaces, both wired and wireless; the first command uses this program to turn your wireless card off. The second command uses dhclient to release [-r] your wireless card from any IP address it had been bound to before.The last command uses ifconfig again, this time to bring your wireless interface back up. M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline
  • 5. Scanning for a wireless network Type the following into your command line: $sudo iwlist [interface] scan iwlist gives you plenty of information with which to select a wireless network. First of all, look at the ”Encryption key” field; it will either say on or off. If it says “on”, that means it has a WEP [Wireless Encryption Protocol] key, a password to get on the network. M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline
  • 6. Configuring your connection to the wireless network Type the following onto your command line: $sudo iwconfig [interface name] mode managed key [password, or ’off’ if no password] essid [ESSID] The mode managed section of the command tells your wireless card that it is supposed to associate with a central access point that is offering wireless network services, instead of trying to connect directly with other computers in a network. M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline
  • 7. Example For using IITDWimax in academic area the following two commands are sufficent $sudo iwconfig [interface name] essid ”IITD WiMAX” $sudo dhclient [interface name] If it’s successful, and the network binds your computer to an IP address, it will say on the screen: bound to [A.B.C.D] A.B.C.D. is your IP address on the network; it will be four numbers separated by periods. M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline
  • 8. Example To make sure your connection works, go ahead and ping a website you know will be up: $ping www.google.com If the ping starts returning lines like this: 64 bytes from py-in-f147.google.com (64.233.167.147): icmp seq=5 ttl=242 time=60.9 ms Congratulations You’re on the internet. Hit ctrl-C to stop the pinging, and enjoy using the internet. M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline
  • 9. Thank U M Naresh Babu-2008EET2291 Setting wireless/ethernet interface using Commandline