SlideShare uma empresa Scribd logo
1 de 9
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados (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
 

Destaque (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
 

Semelhante 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
 

Semelhante 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

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 

Último (20)

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 

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