How do i know whether my NIC works or not?
arshad
arshad3m at gmail.com
Wed Dec 30 12:31:35 UTC 2009
On Wed, 2009-12-30 at 13:01 +0100, Christian Schult wrote:
> Hello arshad,
>
>
> Well, no dhcp server answered. Maybe because dhcp is turned off in your
> router config. We'll give your eth0 interface a fixed setup without dhcp.
>
> Edit /etc/networking/interfaces as root.
> Comment out the lines belonging to eth0 (those lines i gave you in my
> previous mail).
>
> Take care that empty lines segregate each interface setup from the others.
>
> Add this to /etc/networking/interfaces
>
> iface eth0 inet static
> address 192.168.1.42
> netmask 255.255.255.0
> network 192.168.1.0
> broadcast 192.168.1.255
>
>
> 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
>
> After you saved that file, again do
>
> $ sudo ifdown eth0
> $ sudo ifup eth0
>
> Can you point your webbrowser to http://192.168.1.1 now?
> Can you ping your router:
>
> $ ping 192.168.1.1
>
> Can you access internet now? Send us the output of /sbin/ifconfig again.
>
>
> Christian
>
Hi Christian,
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
thank you very much
More information about the ubuntu-users
mailing list