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 ; |
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. |
Code:
ubuntu@ubuntu:~$ ifconfig -a Code:
ubuntu@ubuntu:~$ /sbin/lsmod since my router ip is 62.139.120.193 and DHCP is enabled ; thanks ; |
Here is what I have found.
Quote:
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. |
my tries:-
Code:
ubuntu@ubuntu:~$ ifconfig 62.139.120.193 eth0 i can connect to internet by MS- windows without any problems ; thanks ; |
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:
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:
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:
(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 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). |
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:
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:
Could you run the command as root 'ethtool -i eth0' and post the results. This should tell us what driver is being used. |
Code:
eramax@eramax-desktop:~$ ping 62.139.120.193 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 ; i saw that i can access all internet web sites ;
thanks so much ; i hope the problem is solved thanks too 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 More (of the requested) info please!! |
Code:
eramax@eramax-desktop:~$ ethtool -i eth0 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. |
hey ;
i have bought a new NIC and tested it and run well without any problem Code:
eramax@eramax-desktop:~$ ethtool -i eth1 thanks so much ; |
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. |
All times are GMT -5. The time now is 10:56 AM. |