(newbie) Cannot access Internet: Slackware 12, Ethernet: Realtek
Hello, my exact system is in my sig. I can use static or dyanmic IP, because I am behind a Linksys router/switch. My Windows computer can access Internet just fine, and so could my laptop before removing Windows. I cannot access any website. I thought it would work out-of-the-box, but it does not even after attempting to configure. I installed Slackware off the DVD, only networking packages I did not install are things definitely not needed, like "bootp" (diskless workstations), "snmp" (insecure protocol used in some business networks), etc.
I should note that I have no other available network connection, so I am hand-typing all this on my PC. What I want to do: get my laptop to connect to the Internet, laptop is one of 3 computers behind a Linksys router/switch. Static IP should work, it works on my other machines, since they are private IPs behind my router, and it worked when this laptop had Windows. ********** BEFORE CONFIGURATION ************ Using KInfoCenter (on KDE): Quote:
Confirms that eth0 status is that it is not up. From dmesg (tailed to a text file): Quote:
Quote:
Quote:
Quote:
I used this page as a guide: http://www.linuxhomenetworking.com/w...nux_Networking I did: ifconfig eth0 192.168.1.101 netmask 255.255.255.0 up The guide also said to put the line permanently in /etc/rc.local in order to apply settings at boot, but no such file or directory exists on my machine. Where do I put it (assuming it worked, which it didn't anyway)? There are also a lot of special configurations shown, please let me know if any of them should apply to me! ********** AFTER CONFIGURATION ************ (without reboot) Output of ifconfig -a: Quote:
Confirms that eth0 status is that it now IS up. However, attempts to view any page results in unable to find host, for example, "Firefox could not find the server at www.linuxquestions.org". When starting KDE's "Network Settings" applet: I get a dialogue titled "Unsupported Platform", with a list of supported platforms to choose. Only includes up to Slackware 10.0.1, warns to be sure platform is the right one or could damage network configuration. (Of course, if I reboot, settings are back to what they were.) Edit: part of my hardware address is getting replaced by a smiley! Here, I will add spaces: 00 : A0 : D1 : 63 : 46 : 8d |
Hi ShellyCat!
In your network configuration you also need to add the gateway and the DNS. The DNS should be added forever into /etc/resolv.conf (add a line like "NameServer YourDNS_IP_Here"). The gateway is a little bit more complicated. You'd use the route command as follows (use your own network device instead of eth0, and your gateway IP address instead of 192.168.0.1): Code:
route add default gw eth0 Wishing it's useful for you, emi |
Got Ethernet to work, until reboot? Where to save for all reboots?
Here is everything I did:
Entered these commands: Quote:
Quote:
Quote:
Quote:
As expected, Kernel routing table wasn't saved; on reboot, ifconfig -a shows my eth0 device is not up again, and routing table only has "lo" device. I do not have /etc/rc.local file! Where do I save my "ifconfig..." and/or "route..." lines so they will be applied at every boot? None of the books I consulted had the correct config file for Slackware 12. Also, the man pages for ifconfig and route did not talk about saving the info for next reboot at all! |
I don't use Slackware. I'm debian user from far ago, and let Slackware over it's 6 (!) version. So I can't help you on that issue. But you can try looking if you have the /etc/network/interfaces file. Here is where debians (and may be other distros) put their net config.
If you don't have this directory, try making a NetworkStartUp script and put it into system starting up scripts (I don't know how slackware handles this). I wish it'll be useful for you. emi |
Thank you, Emi, I will try that one. Only reason I didn't answer right away is because I haven't been able to get online (time constraints) during the last few days.
|
The best thing you can do is to run
Code:
netconfig Regards |
Quote:
|
Quote:
Quote:
|
Quote:
Regards |
Thanks.
The Slackbook site is back up, and I'm trying to read that first to see if it has more detail than the man pages. It can be confusing with so many scripts.
|
Worked when I modified those 2 files [SOLVED]
Quote:
This is all I needed to do for Static IP:
|
Quote:
|
netconfig is the better choice
Hi again,
netconfig is a very good tool to manipulate network configuration. Only if you are grateful scripting and editing options directly that's not for you. As said before by someone, you'd use a fake domain (as myhome, local, localdomain, ...) for domain name. That's the way all local networks work (with window$, you don't see that, but it's there). See you. emi |
All times are GMT -5. The time now is 02:15 PM. |