Ubuntu Network Troubleshooting Tips

Sponsored Link
Networking is sometimes considered to be complex, and hard to troubleshoot and manage. However, Linux provides you with Some tools to figure out exactly what's going wrong on your network, and how to fix it.Here we are going see some tools and how to check the network connectivity.


Ping is a computer network tool used to test whether a particular host is reachable across an IP network. Ping works by sending ICMP “echo request” packets to the target host and listening for ICMP “echo response” replies (sometimes dubbed "Pong!" as an analog from the Ping Pong table tennis sport.) Using interval timing and response rate, ping estimates the round-trip time (generally in milliseconds although the unit is often omitted) and packet loss (if any) rate between hosts.

This is very basic and powerful tool to check Internet connection


ping -c 4 google.com

-c option is used to pass how many packets you're sending

If everything working file you should get reply looks like below

Pinging www.l.google.com [] with 32 bytes of data:

Reply from bytes=32 time=12ms TTL=244
Reply from bytes=32 time=12ms TTL=244
Reply from bytes=32 time=12ms TTL=244
Reply from bytes=32 time=12ms TTL=244

Ping statistics for
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 12ms, Maximum = 12ms, Average = 12ms


traceroute is a computer network tool used to determine the route taken by packets across an IP network. An IPv6 variant, traceroute6, is also widely available.Very useful to trace IP packets.


traceroute google.com


The Unix command ifconfig can function as a tool to configure a network interface for TCP/IP from the command line interface (CLI).This is another easy tool to see if your interface is actually loading correctly.



eth0 Link encap:Ethernet HWaddr 00:0A:E6:C6:07:85
inet addr: Bcast: Mask:
inet6 addr: fe80::20a:e6ff:fec6:785/64 Scope:Link
RX packets:18458 errors:0 dropped:0 overruns:0 frame:0
TX packets:8982 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4015093 (3.8 MiB) TX bytes:1449812 (1.3 MiB)
Interrupt:10 Base address:0xd400


This is very useful to check routing config


route -n


If you want to see Routing Tables,all open ports,all listen ports

netstat -nr

-n means return numeric output (ie, IP address instead of hostname)

-r means print the routing table

find all open ports

netstat -a

find listening ports

netstat -l

Sponsored Link

You may also like...

3 Responses

  1. asdf says:

    Hi, how can I log on to MS network at my office. Everything is run under windows and i’ve just install Ubuntu on my office com.

  2. the_guv says:

    er, install linux on everything else?

    (cheers UG!)

  3. mohamad says:

    hi i am new user in ubuntu 6.06 linux
    i have two network card on my box
    eth0 is internet ^^^^^^ eth1 is my network
    eth0 & eth1
    eth0 is set dhcp and it work fine (be internet on box)
    eth1 is set static but”””””
    how i will put ip address to have internet on my network??
    for example my network ip is

Leave a Reply

Your email address will not be published. Required fields are marked *