Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-14-2008, 08:27 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Rep:
|
i can not access internet via my Realtek 8100C Ethernet Card
hi ;
i can not access internet via my Realtek 8100C Ethernet Card ;
any solution for this problem ;any device driver or commands i should do ;
i was accessing internet via my last NIC ;but with this new Card i can not;
thanks ;
Last edited by eramax; 09-14-2008 at 06:42 PM.
|
|
|
|
09-14-2008, 12:09 PM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,612
|
Is this a wired or wireless card?
Please open a konsole and run the command 'ifconfig -a' and post the results.
If it is wireless, also run the command 'iwconfig' and post.
It would also help if we knew if a kernel module is loaded, so please run '/sbin/lsmod' ( all commands with out quotes ) and post the results.
A description of your network hardware would help, router make and model etc.
|
|
|
|
09-14-2008, 06:44 PM
|
#3
|
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
Code:
ubuntu@ubuntu:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet6 addr: fe80::21f:d0ff:fe07:3382/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:4294967284 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:221 Base address:0x4000
eth0:avahi Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet addr:169.254.5.43 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:221 Base address:0x4000
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:1669 errors:0 dropped:0 overruns:0 frame:0
TX packets:1669 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:83653 (81.6 KB) TX bytes:83653 (81.6 KB)
Code:
ubuntu@ubuntu:~$ /sbin/lsmod
Module Size Used by
ipv6 267780 8
binfmt_misc 12808 1
i915 32512 2
drm 82580 3 i915
af_packet 23812 2
rfcomm 41744 2
l2cap 25728 13 rfcomm
bluetooth 61156 4 rfcomm,l2cap
ppdev 10372 0
lp 12324 0
speedstep_lib 6532 0
cpufreq_userspace 5284 0
cpufreq_stats 7104 0
cpufreq_powersave 2688 0
cpufreq_ondemand 9740 0
freq_table 5536 2 cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 8712 0
video 19856 0
output 4736 1 video
sbs 15112 0
sbshc 7680 1 sbs
container 5632 0
dock 11280 0
ac 6916 0
iptable_filter 3840 0
ip_tables 14820 1 iptable_filter
x_tables 16132 1 ip_tables
parport_pc 36260 1
parport 37832 3 ppdev,lp,parport_pc
evdev 13056 3
psmouse 40336 0
serio_raw 7940 0
pcspkr 4224 0
iTCO_wdt 13092 0
iTCO_vendor_support 4868 1 iTCO_wdt
snd_hda_intel 344728 3
snd_pcm_oss 42144 0
snd_mixer_oss 17920 1 snd_pcm_oss
snd_pcm 78596 2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10500 1 snd_hda_intel
snd_seq_dummy 4868 0
button 9232 0
snd_seq_oss 35584 0
snd_seq_midi 9376 0
snd_rawmidi 25760 1 snd_seq_midi
snd_seq_midi_event 8320 2 snd_seq_oss,snd_seq_midi
snd_seq 54224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 24836 2 snd_pcm,snd_seq
shpchp 34452 0
snd_seq_device 9612 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
intel_agp 25492 1
pci_hotplug 30880 1 shpchp
snd 56996 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
agpgart 34760 3 drm,intel_agp
soundcore 8800 1 snd
battery 14212 0
squashfs 49160 1
loop 18948 2
unionfs 76752 1
nls_iso8859_1 4992 1
nls_cp437 6656 1
vfat 14464 1
fat 54556 1 vfat
ext2 73352 0
mbcache 9600 1 ext2
sg 36880 0
sd_mod 30720 4
pata_acpi 8320 0
ata_piix 19588 1
usb_storage 73664 1
libusual 19108 1 usb_storage
floppy 59588 0
ata_generic 8324 0
libata 159344 3 pata_acpi,ata_piix,ata_generic
scsi_mod 151436 4 sg,sd_mod,usb_storage,libata
ehci_hcd 37900 0
r8169 32900 0
uhci_hcd 27024 0
usbcore 146028 5 usb_storage,libusual,ehci_hcd,uhci_hcd
thermal 16796 0
processor 36872 1 thermal
fan 5636 0
fbcon 42912 0
tileblit 3456 1 fbcon
font 9472 1 fbcon
bitblit 6784 1 fbcon
softcursor 3072 1 bitblit
fuse 50580 3
ubuntu@ubuntu:~$
i think that this NIC is not supported with the kernel ;
since my router ip is 62.139.120.193 and DHCP is enabled ;
thanks ;
Last edited by eramax; 09-14-2008 at 06:49 PM.
|
|
|
|
09-15-2008, 12:52 PM
|
#4
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,612
|
Here is what I have found.
Quote:
|
LAN Realtek RTL-8100C Standard network chip, works fine with the kernel 8139too driver (possibly 8139cp also?)
|
So the card is supposed to work. I don't see that module in your lsmod output, however since the card is recognized, support must be in
your kernel.
Some things to try. Use ifconfig to set a fixed IP address, try to ping your router. You probably need to add a default route as well.
You could also run a dhcp request from a konsole, and see what happens. See if it gets an address added with ifconfig. It will show up on
line two of the ifconfig output. The command is run by root, 'dhclient'.
I guess we should also verify the cable from the ethernet card to the router is good. If you have a spare, swap it, or just test this one
on another system. There should be a green led on the ethernet connection ( or on the card ). It should be on and bright green. Also have
a look at your router port where the cable is plugged in. These lights vary a little from router to router. Usually there is one green light
for connection and one for activity. Tell us what you see.
Last edited by camorri; 09-15-2008 at 01:12 PM.
|
|
|
|
09-15-2008, 05:15 PM
|
#5
|
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
my tries:-
Code:
ubuntu@ubuntu:~$ ifconfig 62.139.120.193 eth0
eth0: Unknown host
ifconfig: `--help' gives usage information.
ubuntu@ubuntu:~$
=====================
ubuntu@ubuntu:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default * 0.0.0.0 U 1000 0 0 eth0
=======================
ubuntu@ubuntu:~$ sudo route add default gw 62.139.120.193 eth0
ubuntu@ubuntu:~$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
62.139.120.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 62.139.120.193 0.0.0.0 UG 0 0 0 eth0
=====================
ubuntu@ubuntu:~$ sudo route add default gw 62.139.120.193 eth0
ubuntu@ubuntu:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
62.139.120.0 * 255.255.255.0 U 0 0 0 eth0
default 62.139.120.193 0.0.0.0 UG 0 0 0 eth0
====================
ubuntu@ubuntu:~$ sudo dhclient
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:1f:d0:07:33:82
Sending on LPF/eth0/00:1f:d0:07:33:82
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
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 eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ubuntu@ubuntu:~$
=======================
ubuntu@ubuntu:~$ lsmod
Module Size Used by
ipv6 267780 8
binfmt_misc 12808 1
i915 32512 2
drm 82580 3 i915
af_packet 23812 4
rfcomm 41744 2
l2cap 25728 13 rfcomm
bluetooth 61156 4 rfcomm,l2cap
ppdev 10372 0
lp 12324 0
speedstep_lib 6532 0
cpufreq_userspace 5284 0
cpufreq_stats 7104 0
cpufreq_powersave 2688 0
cpufreq_ondemand 9740 0
freq_table 5536 2 cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 8712 0
video 19856 0
output 4736 1 video
sbs 15112 0
sbshc 7680 1 sbs
container 5632 0
dock 11280 0
ac 6916 0
iptable_filter 3840 0
ip_tables 14820 1 iptable_filter
x_tables 16132 1 ip_tables
parport_pc 36260 1
parport 37832 3 ppdev,lp,parport_pc
evdev 13056 3
psmouse 40336 0
serio_raw 7940 0
pcspkr 4224 0
iTCO_wdt 13092 0
iTCO_vendor_support 4868 1 iTCO_wdt
snd_hda_intel 344728 3
snd_pcm_oss 42144 0
snd_mixer_oss 17920 1 snd_pcm_oss
snd_pcm 78596 2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10500 1 snd_hda_intel
snd_seq_dummy 4868 0
button 9232 0
snd_seq_oss 35584 0
snd_seq_midi 9376 0
snd_rawmidi 25760 1 snd_seq_midi
snd_seq_midi_event 8320 2 snd_seq_oss,snd_seq_midi
snd_seq 54224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 24836 2 snd_pcm,snd_seq
snd_seq_device 9612 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
shpchp 34452 0
pci_hotplug 30880 1 shpchp
snd 56996 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
intel_agp 25492 1
agpgart 34760 3 drm,intel_agp
soundcore 8800 1 snd
battery 14212 0
squashfs 49160 1
loop 18948 2
unionfs 76752 1
nls_iso8859_1 4992 1
nls_cp437 6656 1
vfat 14464 1
fat 54556 1 vfat
ext2 73352 0
mbcache 9600 1 ext2
sg 36880 0
usb_storage 73664 1
libusual 19108 1 usb_storage
sd_mod 30720 5
pata_acpi 8320 0
ata_piix 19588 2
floppy 59588 0
ata_generic 8324 0
libata 159344 3 pata_acpi,ata_piix,ata_generic
scsi_mod 151436 4 sg,usb_storage,sd_mod,libata
ehci_hcd 37900 0
uhci_hcd 27024 0
usbcore 146028 5 usb_storage,libusual,ehci_hcd,uhci_hcd
r8169 32900 0
thermal 16796 0
processor 36872 1 thermal
fan 5636 0
fbcon 42912 0
tileblit 3456 1 fbcon
font 9472 1 fbcon
bitblit 6784 1 fbcon
softcursor 3072 1 bitblit
fuse 50580 5
==============================
ubuntu@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet6 addr: fe80::21f:d0ff:fe07:3382/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:4294966984 overruns:0 frame:0
TX packets:0 errors:0 dropped:2653 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:221 Base address:0x2000
eth0:avahi Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet addr:169.254.5.43 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:221 Base address:0x2000
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:3689 errors:0 dropped:0 overruns:0 frame:0
TX packets:3689 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:306966 (299.7 KB) TX bytes:306966 (299.7 KB)
==========================
i hope their is a Solution for this problem
i can connect to internet by MS- windows without any problems ;
thanks ;
|
|
|
|
09-16-2008, 10:02 AM
|
#6
|
|
LQ Newbie
Registered: Dec 2006
Location: Surrey, UK
Distribution: CentOS 4.5
Posts: 26
Rep:
|
Right well I don't know a great deal about your particular card, config or even Linux distro but a couple of things do come to mind.
Quote:
|
Originally Posted by eramax
ubuntu@ubuntu:~$ ifconfig 62.139.120.193 eth0
eth0: Unknown host
ifconfig: `--help' gives usage information.
ubuntu@ubuntu:~$
|
Seems an inadequate command to me.
Don't you need to supply a subnet mask?
Don't you need to tell the command if you want to take the interface up|down?
As in:
Code:
ifconfig eth0 10.0.0.1 netmask 255.255.255.0 up
Quote:
|
Originally Posted by eramax
...
ubuntu@ubuntu:~$ sudo dhclient
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:1f:d0:07:33:82
Sending on LPF/eth0/00:1f:d0:07:33:82
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
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 eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ubuntu@ubuntu:~$
|
No DHCP offers received.
You sure your router is configured as a DHCP server?
You sure the Linux box doesn't have security or firewall ports blocked preventing receipt of a DHCP offer from the router?
Quote:
|
Originally Posted by eramax
...
eth0:avahi Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet addr:169.254.5.43 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:221 Base address:0x2000
...
|
The fact you get a 169.254.5.43 addr on one of your eth0 configs would appear to confirm the lack of receipt of a DHCP offer.
(169.254.x.x addresses are knows as APIPA or automatic private IP addressing, and are assigned to Windows clients when they can't see a DHCP server.
http://wiki.networkdictionary.com/in..._IP_Addressing)
Not sure about Ubuntu distro, but on CentOS (RHEL look-alike) I'd expect a file:
/etc/sysconfig/network-scripts/ifcfg-eth0
to have content like:
Code:
# more ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:aa:bb:cc:dd:ee
ONBOOT=yes
TYPE=Ethernet
to configure the NIC on boot.
And in fact if you have /etc/sysconfig/network-scripts/ifcfg-eth0 configured correctly you'd only need to use the commands:
ifup eth0
or
ifdown eth0
to bring the interfaces up|down.
I'd recommend taking a look at http://www.linuxhomenetworking.com/w...nux_Networking: it's a very useful read.
Hope that helps. This all assumes the HW, cabling is OK and working (but since you get connectivity with MSWindows that would appear to be the case).
|
|
|
|
09-16-2008, 12:34 PM
|
#7
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,612
|
eramax,
After reading through your posts, there are some things to fix, and clear up.
You have a router. The address your ISP sees is '62.139.120.193'. This is a class A address. ( not private ) Your home lan side should not be using
addresses in this range. Usually routers will use a private class A, B, or C address range. For class C it is usually 192.168.xxx.yyy with
a sub net mask of 255.255.255.0. You can if you want, use private class A 10.x.y.z.
Routers translate the private IP addresses on your lan side to one public IP address on the ISP side. So if you were to use a
class C private range, like 192.168.0.xxx you could have 254 systems attached, all connecting to the ISP through the public address.
It makes no sense to use a public address on your side.
I saw you tried to add an IP address. I don't think you had the command right. Form the man page;
Quote:
|
ifconfig interface [aftype] options | address
|
So to set an ip address, 'ifconfig eth0 192.168.0.10' would set an IP address ( class C private ) to 192.168.0.10. The mask will be
the default class C of 255.255.255.0 if you do not specify it.
Would you post some information about your router? Make model etc. Have you looked at the router configuration?
The dhcp request failed, we need to look to see if DHCP is enabled, and what range of addresses it will hand out. This is usually
configurable.
I had a closer look at your lsmod, you do have an ethernet driver loaded. It is Nothing is using it. note the 0 at the end...
Could you run the command as root 'ethtool -i eth0' and post the results. This should tell us what driver is being used.
Last edited by camorri; 09-16-2008 at 12:48 PM.
Reason: added information.
|
|
|
|
09-16-2008, 03:05 PM
|
#8
|
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
Code:
eramax@eramax-desktop:~$ ping 62.139.120.193
PING 62.139.120.193 (62.139.120.193) 56(84) bytes of data.
From 169.254.5.43 icmp_seq=1 Destination Host Unreachable
From 169.254.5.43 icmp_seq=2 Destination Host Unreachable
From 169.254.5.43 icmp_seq=3 Destination Host Unreachable
From 169.254.5.43 icmp_seq=5 Destination Host Unreachable
From 169.254.5.43 icmp_seq=6 Destination Host Unreachable
===============
eramax@eramax-desktop:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet6 addr: fe80::21f:d0ff:fe07:3382/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:4294967280 overruns:0 frame:0
TX packets:0 errors:0 dropped:276 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:221 Base address:0x2000
eth0:avahi Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet addr:169.254.5.43 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:221 Base address:0x2000
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:904 errors:0 dropped:0 overruns:0 frame:0
TX packets:904 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:53920 (52.6 KB) TX bytes:53920 (52.6 KB)
=================
root@eramax-desktop:~# ifconfig eth0 62.139.120.193 netmask 255.255.255.0 up
root@eramax-desktop:~# ping 62.139.120.193
PING 62.139.120.193 (62.139.120.193) 56(84) bytes of data.
64 bytes from 62.139.120.193: icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from 62.139.120.193: icmp_seq=2 ttl=64 time=0.029 ms
64 bytes from 62.139.120.193: icmp_seq=3 ttl=64 time=0.029 ms
64 bytes from 62.139.120.193: icmp_seq=4 ttl=64 time=0.032 ms
64 bytes from 62.139.120.193: icmp_seq=5 ttl=64 time=0.032 ms
==============================
root@eramax-desktop:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet addr:62.139.120.193 Bcast:62.139.120.255 Mask:255.255.255.0
inet6 addr: fe80::21f:d0ff:fe07:3382/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:4294967257 overruns:0 frame:0
TX packets:0 errors:0 dropped:644 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:221 Base address:0x2000
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:2511 errors:0 dropped:0 overruns:0 frame:0
TX packets:2511 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:191722 (187.2 KB) TX bytes:191722 (187.2 KB)
--- 62.139.120.193 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3996ms
rtt min/avg/max/mdev = 0.029/0.030/0.032/0.006 ms
eramax@eramax-desktop:~$
===============================
root@eramax-desktop:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
62.139.120.0 * 255.255.255.0 U 0 0 0 eth0
=================================
eramax@eramax-desktop:~$ ping www.yahoo.com
ping: unknown host www.yahoo.com
eramax@eramax-desktop:~$ ping www.google.com
ping: unknown host www.google.com
eramax@eramax-desktop:~$
==============================
root@eramax-desktop:~# ifup eth0
Ignoring unknown interface eth0=eth0.
root@eramax-desktop:~# ifdown eth0
ifdown: interface eth0 not configured
root@eramax-desktop:~#
==============================
i could pinging to the router but i can not ping to any other web sites such as www.google.com or www.yahoo.com ;
i also have a problem i can ping to the router correctly But i can not access the router control panel from the browser and the browser is ok and not working in off line mode
the dhcp is enabled and i use it from MS- windows and my current ip is 62.139.120.197 ;
i was using internet from this dist on my pervious computer ;but with this new computer i have these problems
thanks so much ;
|
|
|
|
09-16-2008, 05:49 PM
|
#9
|
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
After Rebooting the system ; i saw that i can access all internet web sites ;
thanks so much ;
i hope the problem is solved thanks too much ;
|
|
|
|
09-16-2008, 07:39 PM
|
#10
|
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
After Rebooting the system another time ,the internet was not running and i can not access any site or even the router from my browser or all browsers on this dist ;
i feel bad from that ,i have alot of days very sad about that ;
i think thier is a problem in configuration or it is not completed ;
when i reboot the system and after login i think the system tries to get ip from dhcp which then stop the internet because the ubuntu have a problem with this dhcp (dhcp is enabled on router )
but what about pinging on router that seem that when i added this route to ubuntu ,it can access it but not uses it as a gateway ;
i want to say also when first time i run the liveCD of this dist on this new computer ,i was enabled to access internet without any problem without any configuration without any thing;
but after rebooting i couldnot;
i tried to run the LiveCd alot of time to see if i can access internet with it ,but i could not accesss internet ;
the internet run on my Linux dist in random ;
i hope thier is a solution ;
thanks
|
|
|
|
09-17-2008, 04:30 AM
|
#11
|
|
LQ Newbie
Registered: Dec 2006
Location: Surrey, UK
Distribution: CentOS 4.5
Posts: 26
Rep:
|
eramax, camorri has given you a heap of good advice (e.g. public vs. private IP addresses) and asked you do a couple of things like post the router make, model, config details and the output of the ethtool command but you're not providing the requested info.
Until you respond to some of the questions this is just going to continue floundering around.
I have no idea why you would need to be adding routes to ubuntu if you are using a standard home router with DHCP server - completely unneccessary.
I'd expect to see something like
Code:
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default netgear-router 0.0.0.0 UG 0 0 0 eth0
#
showing a clear route to your gateway (namely the router) and none of this public address stuff; and all that is dished out by the router/DHCP with no Ubuntu configuration (provided you're using a SOHO router which you have not yet confirmed/denied).
More (of the requested) info please!!
|
|
|
|
09-17-2008, 06:40 AM
|
#12
|
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
Code:
eramax@eramax-desktop:~$ ethtool -i eth0
driver: r8169
version: 2.2LK
firmware-version:
bus-info: 0000:02:00.0
eramax@eramax-desktop:~$
and i am not the owner of this Lan so i can not change the configuration of the router , i was running on it under this dist before on my last computer and i worked two years without any problem;
so i thinks the problem not in my Lan or router , the problem in my configuration of my NIC ;
my router model is conexant and i takes two pictures of its control panel ;
http://img255.imageshack.us/img255/453/ro3ox7.jpg
http://img229.imageshack.us/img229/4928/ro2rm0.jpg
thanks ;
|
|
|
|
09-19-2008, 05:19 PM
|
#13
|
|
LQ Newbie
Registered: Dec 2006
Location: Surrey, UK
Distribution: CentOS 4.5
Posts: 26
Rep:
|
I understand the router LAN config is not under your control.
I am however slightly mystified by the config pictures you posted as the first shows a WAN addr starting 41.xxx. and a LAN start 62.xxx. and then the second shows a LAN of 10.0.0.x subnet address range and yet you are not configuring your Linux box to just acquire the 10.0.0.x by DHCP from the router, i.e. why you do the ifconfig eth0 62.139.120.193 netmask 255.255.255.0 up stuff, I don't understand.
|
|
|
|
09-20-2008, 04:56 PM
|
#14
|
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
hey ;
i have bought a new NIC and tested it and run well without any problem
Code:
eramax@eramax-desktop:~$ ethtool -i eth1
driver: 8139too
version: 0.9.28
firmware-version:
bus-info: 0000:03:01.0
eramax@eramax-desktop:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:4294966550 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:221 Base address:0x2000
eth1 Link encap:Ethernet HWaddr 00:e0:4c:76:04:3a
inet addr:62.139.120.194 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fec0::9:2e0:4cff:fe76:43a/64 Scope:Site
inet6 addr: 2002:3e8b:78de:9:2e0:4cff:fe76:43a/64 Scope:Global
inet6 addr: fe80::2e0:4cff:fe76:43a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2430 errors:0 dropped:0 overruns:0 frame:0
TX packets:1009 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:507558 (495.6 KB) TX bytes:170626 (166.6 KB)
Interrupt:20 Base address:0xd100
eth0:avahi Link encap:Ethernet HWaddr 00:1f:d0:07:33:82
inet addr:169.254.5.43 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:221 Base address:0x2000
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:1762 errors:0 dropped:0 overruns:0 frame:0
TX packets:1762 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:88100 (86.0 KB) TX bytes:88100 (86.0 KB)
eramax@eramax-desktop:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
62.139.120.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth1
default 62.139.120.193 0.0.0.0 UG 100 0 0 eth1
default * 0.0.0.0 U 1000 0 0 eth0
eramax@eramax-desktop:~$ lsmod
Module Size Used by
binfmt_misc 12808 1
i915 32512 2
drm 82580 3 i915
rfcomm 41744 2
l2cap 25728 13 rfcomm
bluetooth 61156 4 rfcomm,l2cap
ppdev 10372 0
speedstep_lib 6532 0
cpufreq_userspace 5284 0
cpufreq_stats 7104 0
ipv6 267780 8
cpufreq_powersave 2688 0
cpufreq_ondemand 9740 0
freq_table 5536 2 cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 8712 0
video 19856 0
output 4736 1 video
sbs 15112 0
sbshc 7680 1 sbs
container 5632 0
dock 11280 0
battery 14212 0
iptable_filter 3840 0
ip_tables 14820 1 iptable_filter
x_tables 16132 1 ip_tables
ac 6916 0
lp 12324 0
af_packet 23812 5
parport_pc 36260 1
parport 37832 3 ppdev,lp,parport_pc
evdev 13056 3
psmouse 40336 0
pcspkr 4224 0
serio_raw 7940 0
iTCO_wdt 13092 0
iTCO_vendor_support 4868 1 iTCO_wdt
snd_hda_intel 344728 3
snd_pcm_oss 42144 0
snd_mixer_oss 17920 1 snd_pcm_oss
snd_pcm 78596 2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10500 1 snd_hda_intel
snd_seq_dummy 4868 0
snd_seq_oss 35584 0
snd_seq_midi 9376 0
snd_rawmidi 25760 1 snd_seq_midi
snd_seq_midi_event 8320 2 snd_seq_oss,snd_seq_midi
button 9232 0
snd_seq 54224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 24836 2 snd_pcm,snd_seq
snd_seq_device 9612 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
shpchp 34452 0
pci_hotplug 30880 1 shpchp
intel_agp 25492 1
agpgart 34760 3 drm,intel_agp
snd 56996 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 8800 1 snd
ext2 73352 1
mbcache 9600 1 ext2
sg 36880 0
sd_mod 30720 3
pata_acpi 8320 0
ata_piix 19588 2
8139too 27520 0
floppy 59588 0
ata_generic 8324 0
libata 159344 3 pata_acpi,ata_piix,ata_generic
scsi_mod 151436 3 sg,sd_mod,libata
8139cp 24704 0
mii 6400 2 8139too,8139cp
ehci_hcd 37900 0
uhci_hcd 27024 0
usbcore 146028 3 ehci_hcd,uhci_hcd
r8169 32900 0
thermal 16796 0
processor 36872 1 thermal
fan 5636 0
fbcon 42912 0
tileblit 3456 1 fbcon
font 9472 1 fbcon
bitblit 6784 1 fbcon
softcursor 3072 1 bitblit
fuse 50580 5
eramax@eramax-desktop:~$ ping 62.139.120.193
PING 62.139.120.193 (62.139.120.193) 56(84) bytes of data.
64 bytes from 62.139.120.193: icmp_seq=1 ttl=64 time=0.873 ms
64 bytes from 62.139.120.193: icmp_seq=2 ttl=64 time=1.36 ms
64 bytes from 62.139.120.193: icmp_seq=3 ttl=64 time=1.36 ms
64 bytes from 62.139.120.193: icmp_seq=4 ttl=64 time=0.747 ms
--- 62.139.120.193 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 0.747/1.087/1.368/0.282 ms
eramax@eramax-desktop:~$
thanks for every one i think the problem that the first NIC was have a bad support
thanks so much ;
|
|
|
|
10-03-2008, 11:40 PM
|
#15
|
|
LQ Newbie
Registered: Oct 2008
Posts: 1
Rep:
|
I think I'm having a similar problem with my Realtex RTL-8169. The symptoms are identical to the previous poster. One thing I'd like to add is that I ran tcpdump on another machine on the network.
00:15:59.244172 IP 0.0.0.0.bootpc > broadcasthost.bootps: BOOTP/DHCP, Request from 00:18:e7:08:32:c1 (oui Unknown), length 300
00:15:59.245229 arp who-has 192.168.1.101 tell 192.168.1.1
00:16:00.273527 IP 192.168.1.1.bootps > broadcasthost.bootpc: BOOTP/DHCP, Reply, length 548
so the request is being issued, and the router is responding, but dhclient quits saying "No DHCPOFFERS received"
I'm going to try swapping out the NIC with another as the eramax has done. I'm a bit skeptical that it will have any effect, as I have been running windows xp on the machine for months without issue.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|