How do i know whether my NIC works or not?
Joep L. Blom
jlblom at neuroweave.nl
Tue Dec 29 22:14:31 UTC 2009
arshad wrote:
> On Mon, 2009-12-28 at 20:14 +0100, Christian Schult wrote:
>> Hello arshad,
>>
>> arshad wrote:
>>
>>> $ 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:0x8000
>>>
>>> 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:2037 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:2037 errors:0 dropped:0 overruns:0 carrier:0
>>> collisions:0 txqueuelen:0
>>> RX bytes:1049382 (1.0 MB) TX bytes:1049382 (1.0 MB)
>>>
>>> ppp0 Link encap:Point-to-Point Protocol
>>> inet addr:10.200.216.210 P-t-P:10.64.64.64
>>> Mask:255.255.255.255
>>> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
>>> RX packets:5205 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:5124 errors:0 dropped:0 overruns:0 carrier:0
>>> collisions:0 txqueuelen:3
>>> RX bytes:4945403 (4.9 MB) TX bytes:767624 (767.6 KB)
>>>
>>> usb0 Link encap:Ethernet HWaddr 02:80:37:14:03:00
>>> inet6 addr: fe80::80:37ff:fe14:300/64 Scope:Link
>>> 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)
>>>
>>> and i don't know how to find the dhcp server :( (very sorry)
>> Ok, we also need the output of
>>
>> $ cat /etc/network/interfaces | grep -v "^#"
>>
>> This will print the content of the file /etc/network/interfaces but with
>> no comments. Copy that output into your answer.
>>
>> Then please do
>>
>> $ route -n
>>
>> and also send us the output.
>>
>> What's that ppp0 device and usb0 device? Is it your mobile phone and
>> your router connected via USB? Pull them out, configure network manager
>> (that GUI you posted the screenshot of) to use eth0 automatically and
>> with dhcp server located at 192.168.1.1, then restart your computer and
>> see if you get connected. Else show again output of /sbin/ifconfig and
>> route -n.
>>
>>
>> Christian
>>
>
> Hello Christian,
> yes usb0 device is my mobile phone. and after pulling it out, i can't
> select eth0 as the radio button is not active and also if i don't plug
> the mobile phone the name of the eth0 is not shown; i mean, if i plug
> the mobile the wirednetwork is shown along with its name - Biostar
> Microtech Int'l....
>
> another thing,
> today i took the machine to the service center, there with their router
> internet is working. but with my router its not working. but my router
> works with my friens machine. what kind of mystery is this?....
>
> 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)
>
>
>
Arshad,
The output shows that you don't have an IP address for eth0, not even
the standard address given by the standard network tools.
Either you don't have a DHCP server or your system cannot see it.
I suggest > http://www.linuxhomenetworking.com/
and look especially to:
# Introduction to Networking
# Linux Networking
# Simple Network Troubleshooting
Also the rest is valuable to study carefully.
Success,
Joep
More information about the ubuntu-users
mailing list