How do i know whether my NIC works or not?

Christian Schult cschult at gmx.de
Wed Dec 30 13:44:12 UTC 2009


Hello arshad,

arshad wrote:

> On Wed, 2009-12-30 at 13:01 +0100, Christian Schult wrote:

> > Your /etc/network/interfaces now looks like this:
> > 
> > $ cat /etc/network/interfaces
> > 
> > auto lo
> > iface lo inet loopback
> > 
> > #auto eth0
> > #iface eth0 inet dhcp
> > 
> > iface eth0 inet static
> >     address 192.168.1.42
> >     netmask 255.255.255.0
> >     network 192.168.1.0
> >     broadcast 192.168.1.255

> this time no errors when upping the eth0
> but still cannot ping:
> 
> $ sudo ifdown eth0
> arshad at arshad-desktop:~$ sudo ifup eth0
> arshad at arshad-desktop:~$ ping 192.168.1.1
> PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
> >>From 192.168.1.42 icmp_seq=2 Destination Host Unreachable
> >>From 192.168.1.42 icmp_seq=3 Destination Host Unreachable
> >>From 192.168.1.42 icmp_seq=4 Destination Host Unreachable
> >>From 192.168.1.42 icmp_seq=5 Destination Host Unreachable
> >>From 192.168.1.42 icmp_seq=6 Destination Host Unreachable
> >>From 192.168.1.42 icmp_seq=7 Destination Host Unreachable

I think you tested reaching http://192.168.1.1 with your webbrowser too,
didn't you?

Your interface eth0 is now in the same network as your router (you've
stated in a previous mail, maybe in another thread, that the router has
192.168.1.1). So he must be reachable now if he is up and running.

We have now:

1 the NIC is known by your kernel as Realtec something, lspci showed the
  device.
2 the NIC is set up now as eth0 with ip 192.168.1.42/255.255.255.0
3 the router has ip 192.168.1.1
4 ping 192.16.1.1 is routed through eth0 but the router is not reachable
  for ping, i fear it not even does not respond to ping but is
  completely unreachable

Are you sure the ruter has ip 192.168.1.1?

Please check the ethernet cable between your PC and the router, perhaps
you can replace it with an other one.


Christian




More information about the ubuntu-users mailing list