www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / CompTIA / Network+ / Section IV: Network Management / Chapter 23: Software Troubleshooting Tools / IPconfig and IFconfig

IPconfig and IFconfig

One of the first and most basic steps in the Layer 3 troubleshooting process is verifying the IP address and other associated parameters of the local interfaces. Depending on the platform you are using, two commands will take care of this operation:

  • Windows: ipconfig
  • Linux: ifconfig

To further troubleshoot any type of connection issue, you must know the devices’ IP address, subnet mask, and gateway. For example, if you want to perform a connectivity test using the ping command to a destination device but you do not know the IP address of that device, you can find it using the ipconfig or ifconfig commands on that machine.

 23.14

Figure 23.14 – Windows ipconfig Command Output

 

As you can see in the screenshot above, if you type ipconfig in Windows CLI, a lot of useful information about the interfaces is provided:

  • List of interfaces (both wired and wireless)
  • IPv4 address of each interface
  • Subnet mask of each interface
  • IPv6 prefix of each interface

If you want to find out more detailed information for each interface, you can issue the ipconfig/? command for a list of available parameters. An interesting option is using the ipconfig/all command, as shown in Figure 23.15 below. This provides the following additional information:

  • General OS addressing information:
    • Routing
    • DNS servers
    • WINS servers
    • Interface description
    • Layer 2 (MAC) address for each interface
    • DNS suffix for each interface
    • DHCP status for each interface
    • DNS server information
    • NetBIOS information

 23.15

Figure 23.15 – Windows ipconfig/all Command Output

 

In Linux environments, issuing the ifconfig command provides the following information, which can be seen in the screenshot below:

  • List of interfaces (including interface id)
  • Link encapsulation
  • Layer 2 address
  • Layer 3 address
  • Network mask
  • Broadcast address
  • Interface packet counters, including dropped packets and collisions

 23.16

Figure 23.16 – Linux ifconfig Command Output

 

You can further tune the output using specific commands. For example, the ifconfig eth0 command will provide information only for the Ethernet0 interface.

 

Note:    Although the ipconfig and ifconfig commands provide similar outputs, one major difference is the ifconfig command does not provide default gateway information. This can be verified using other commands (such as route), which will be covered in detail in later sections.

 

 

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.