Sei sulla pagina 1di 11

Linux network troubleshooting

Quick troubleshooting

Check that network cable is connected and one of NICs leds is lit. Check that computer is powered on! If possible go to switch/hub where our machine is connected and check that connection led is lit.

Is network leds seem to be ok! restart network with following command"

Quick troubleshoot

Is network leds seem to be ok! restart network with following command" ser#ice network restart $works with Cent%&! fedora core and redhat' /etc/init.d/networking restart $should work with other distributions also' Check what ifconfig tells ou. If oure not root user! ou can check ifconfig with following command" /sbin/ifconfig

Check IP Address

Connection and ip(address seems to be ok.


Interface has recei#ed and sent some packages.
Link encap"/thernet 01addr 22"34"fc"55"45".. inet addr"6..6..43.72 8cast"6..6..43.799 :ask"799.799.799.. inet5 addr" fe3.""2534"fcff"fe55"45../52 &cope"Link ;< 8*%=>C=&+ *;NNIN? :;L+IC=&+ :+;"69.. :etric"6 *@ packets"6A967 errors". dropped"2 o#erruns". frame". +@ packets"66BAA errors". dropped". o#erruns". carrier". collisions". txCueuelen"6... *@ b tes"6A655634 $6A.6 :8' +@ b tes"654555B $6.5 :8' Interrupt"27 8ase address".xa...

sisa )*+",- /sbin/ifconfig eth.

Check IP Address

If our ip(address isnt shown! ou most probabl ha#e >0C< enabled and >0C<(ser#er is not gi#ing ou an address.

Dsisa )*+ ,EF ifconfig


eth. Link encap"/thernet 01addr .."6."9="AB"=C"6> ;< 8*%=>C=&+ :;L+IC=&+ :+;"69.. :etric"6 *@ packets". errors". dropped". o#erruns". frame". +@ packets"62 errors". dropped". o#erruns". carrier". collisions". txCueuelen"6... *@ b tes". $... :i8' +@ b tes". $..6 :i8' Interrupt"66 8ase address".xd...

Check IP Address

If ou dont get ip(address! ou can use dhclient command manuall to restart dhcp search.

sisa )*+",- sudo dhclient >0C<>I&C%G/* on eth. to 799.799.799.799 port 54 inter#al A >0C<%HH/* of 6..6..67.99 from 6..6..67.A >0C<*/Q;/&+ of 6..6..67.99 on eth. to 799.799.799.799 port 54 >0C<=CI of 6..6..67.99 from 6..6..67.A bound to 6..6..67.99 (( renewal in 6.72BA2 seconds.

Check the route


sisa )*+",- /sbin/route (n Iernel I< routing table >estination ?atewa ?enmask Hlags :etric *ef ;se Iface 6..6..43.. ....... 799.799.799.. ; 6 . . eth. 65B.792.... ....... 799.799.... ; 6... . . eth. ....... 6..6..43.6 ....... ;? . . . eth.

Check that default ?1 exists! If ou ha#e two network adapters check that theres onl one default ?=+/1=J!

Ubuntu & Debian Interface configuration file (static)

=re located in /etc/network Kfolder. :ost of the sites in internet are missing line auto eth.! which makes our s stem not to refetch interface addresses from the file.

Ubuntu & Debian Interface configuration file (static)


root)ubuntuser#er"/home/test6F more /etc/network/interfaces F +his file describes the network interfaces a#ailable on our s stem F and how to acti#ate them. Hor more information! see interfaces$9'. F +he primar network interface auto eth. iface eth. inet static address 6..6..43.72 netmask 799.799.799.. gatewa 6..6..43.6

Ubuntu & Debian Interface configuration file (dynamic)

=re located in /etc/network Kfolder

root)ubuntuser#er"/home/test6F more /etc/network/interfaces F +his file describes the network interfaces a#ailable on our s stem F and how to acti#ate them. Hor more information! see interfaces$9'. F +he primar network interface auto eth. iface eth. inet dhcp

Quick DN checku!
L Name ser#ers for machine are defined in /etc/resol#.conf Kfile. L Droot)clump coursefilesEF more /etc/resol#.conf search harama a.edu.et nameser#er 6..6..9.67 nameser#er 6..6..9.A5 L /as wa to check that name ser#ers work" 6' ping www.harama a.edu.et 7' ping 6..6..9.AA L If both pings works! then name ser#ers are working L If onl the last ping works! then ou ha#e some problems with our name ser#er configuration L If both pings fail! check ifconfig and default route

Potrebbero piacerti anche