![]() |
|
#1
|
|||
|
|||
network card problem - cannot connect to InternetHi all,
I am new in linux. few weeks ago I have just installed knoppix 4.0.1. everything is fine, the only problem is that i couldnt access the internet. I have search through many forums and try out the solution, but still it doesnt work. I can use Internet when in windows (dual booting), and this make me sure that I am using the correct IP address, I am using static Ip address, not DHCP).. During the installation using the live cd, there is warning about the network card is not detected. Therefore, I have tried to download the appropriate network driver for my network card . I am using Realtek RTL8168/8111 PCI Gigabit Ethernet NIC (I have checked in windows). So am I right that I have to download driver for that network card but for linux. I couldn't find the driver for that version, instead I only can find for 'linux-8169(221)'..Is it compatible??. so I have downloded the file, and use unzip command to unzip it (since it is in the .zip)..below is my command used and the result obtained: su unzip linux-8169(221).zip cd src # since there is no linux-8169(221) after unzip make clean modules here are what I get: Makefile:28:/home/myname/Desktop/src/src/makefile-linux26x: No such file or directory Make: *** No rule to make target '/home/myname/Desktop/src/src/Makefile-linux26x'. Stop. For your information, the src folder contains those files: Makefile, Makefile-linux24x, Makefile-linux26x, README, /modules, r8169_n.c, /src and inside the modules and src folder there is nothing except ., .., and .tmp_versions I have also try out this: 'pump -i eth0' which i got "Operation failed".. then i tried to 'modprobe 8168 (and also 8169)' and it returned "FATAL: module 8168(or 8169) not found" when I tried to do 'ifconfig -a', I got the following message: eth0 link encap:UNSPEC HWaddr 00-E0-18-00-03-EE-EC-b9-00-00-00-00-00-00-00 Broadcast MULTICAST MTU:1500 metric:1 AX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:4 dropped:4 overruns:0 carrier:0 collision:0 txqueuelen:1000 RX bytes:0 (0.0.b) TX bytes:432 (432.0 b) lo Link encap: Local lookback inet addr: 127.0.0.1 mask:255.0.0.0 up LOOKBACK RUNNING MTU:16436 metric:1 RX packets:86 errors:0 dropped:0 overruns:0 frame:0 TX packets:86 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6105 (5.9 KiB) Tx bytes:6105 (5.9 KiB) then I did 'netcardconfig', and here is the output: xlib: connection to ':0.0" refused by server xlib: No protocol specified I have read through one forum, that suggest to edit the /etc/modules-2.6.12. I have added 8168100 and 8169100, save and restart my laptop (ASUS A8F),..Before that i configured my IP address. so when I login back after rebooting my laptop, I tried to once again make 'ifconfig -a'..and this time it can recognize the ip address, broadcast and mask, which is better I have also try the 'route -n' command in which i get kernel IP routing table. In the table, it state that the interface is eth0, which means it can detect the 'eth0', other columns only state the ip address, gateway, mask, flag, metrics, ref, and use.. Can anybody help me?..i am really (really) stuck in this..I really need to figure out this and solve the problem, since it is quite tedious and tiring for me to switch between linux and windows each time i want to get connected to the internet.. Or anybody knows where can i find the correct driver for my network card? I have search through almost related website and couldnt find any. thanks in advance for your help..! |
|||
|
#2
|
|||
|
|||
Re: network card problem - cannot connect to Internettry something like
#ifconfig eth0:0 192.168.0.4 #route add -host 192.168.0.4 dev eth0:0 great article http://www.debianadmin.com/network-interface-configuration-using-ifconfig.html |
|
#3
|
||||
|
||||
Re: network card problem - cannot connect to InternetQuote:
Is netcardconfig a X (GUI) type application? The connection to :0.0 looks like something you would get if you can not connect to the X server. This will happen if you do a su command from a console window in X and then try to run an application as that other user. Are you connecting to a DHCP enabled network? Or are you trying to set your connections manually. If it is manual, try something similar to what sk3ptic said (only use eth0 instead of eth0:0 unless you want to set two IP addresses to the card). If it is dhcp, try: Code:
Good luck! __________________
The best damn Sports Blog period. |
|
#4
|
|||
|
|||
Re: network card problem - cannot connect to InternetQuote:
If this happens and you really want to use netcardconfig (or some other X program) as su from the command line, here's something to try: 1. You are logged into the gui desktop (gnome or kde or whatever...) as a "regular" user (not su), right? 2. Enter the following on the command line: "xhost +" 3. su to root or whatever user you want. 4. Now you should be able to execute X-type gui applications from the command line. (Try it with gvim or gedit just as a test.) Regards, Dave Footnote: The reason that the defaults are set up this way is for security purposes (so that remote machines can't run X applications on your machine). Since you can't connect to the network, security of this nature doesn't seem to be an issue. |
|
#5
|
|||
|
|||
Re: network card problem - cannot connect to Internethi,
I have tried all suggested solutions but none works.. by the way, I am using static IP setp, not DHCP. Someone have suggested me to disable IPv6, but still, nothing change. I have also force the link statuss by using the following command: insmod eth0 speed 100 duplex full autoneg on therefore I can see that during booting, it state that status link is :linked with the speed of 100M..I expected to have internet connection, but no.. What else should I do now? thanks in advance |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MSR-206 Retailer needs to manually input card number help | foso | eCommerce / Merchant Account Forum | 2 | 14-Sep-2006 22:07 |
| Card class help | verticalvoid | C++ Forum | 2 | 29-Jun-2006 21:51 |
| Need Help with my Cards Program (C++) | krisopotamus | C++ Forum | 2 | 06-Oct-2005 16:48 |
| Card Reader program problem | meepok | C++ Forum | 6 | 04-Sep-2005 11:23 |
| can't solve the sum | ryz | C++ Forum | 0 | 30-Oct-2003 18:55 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The