i acn not access internet via via my Realtek 8100C Ethernet Card
Linux - HardwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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;
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.
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:
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
Quote:
r8169 32900 0
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.
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 ;
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
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!!
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 ;
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.