How do i know whether my NIC works or not?
arshad
arshad3m at gmail.com
Wed Dec 30 06:16:25 UTC 2009
On Tue, 2009-12-29 at 23:43 +0100, Christian Schult wrote:
> 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
>
Hi Christian,
the /etc/network/interfaces file already have only those two lines what
you asked me to add. (but without an empty line at the top) so i just
added an empty live above those two lines. ;-)
after saving the file i re-logged in and still unable to access the
router page.
here is the output for your codes:
$ sudo ifdown eth0
[sudo] password for arshad:
ifdown: interface eth0 not configured
arshad at arshad-desktop:~$ sudo ifup eth0
Ignoring unknown interface eth0=eth0.
arshad at arshad-desktop:~$ dhclient
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
can't create /var/lib/dhcp3/dhclient.leases: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
Open a socket for LPF: Operation not permitted
arshad at arshad-desktop:~$ sudo dhclient
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/pan0/4a:50:8d:30:6c:ca
Sending on LPF/pan0/4a:50:8d:30:6c:ca
Listening on LPF/usb0/02:80:37:14:03:00
Sending on LPF/usb0/02:80:37:14:03:00
Listening on LPF/eth0/00:e0:4d:af:6e:4f
Sending on LPF/eth0/00:e0:4d:af:6e:4f
Sending on Socket/fallback
DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on pan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on pan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on pan0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on pan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
thank you very much
More information about the ubuntu-users
mailing list