How do i know whether my NIC works or not?

Christian Schult cschult at gmx.de
Tue Dec 29 22:43:30 UTC 2009


Hello arshad,

arshad wrote:

> and here are the output for commands you put above:
> thank you very much
> 
> $ cat /etc/network/interfaces | grep -v "^#"
> auto lo
> iface lo inet loopback
> 
> 
> $ route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 
> 
> $ /sbin/ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:e0:4d:af:6e:4f  
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>           Interrupt:252 Base address:0xc000 
> 
> lo        Link encap:Local Loopback  
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:20 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
>           RX bytes:1472 (1.4 KB)  TX bytes:1472 (1.4 KB)

Let's try to connect to the router. Please edit /etc/network/interfaces.
You need to be root to edit this file so hit ALT-F2 and enter:

gksudo gedit /etc/network/interfaces

at the bottom add an empty line and then:

auto eth0
iface eth0 inet dhcp

Save that file.
Log out and log in into your gnome desktop again.
Open a terminal window and enter:

$ sudo ifdown eth0
$ sudo ifup eth0

Can you point your webbrowser to http://192.168.1.1 now and see your
routers web interface?

Maybe you need to enter

$ dhclient

Can you reach 192.168.1.1? Can you access internet?


Christian




More information about the ubuntu-users mailing list