[SOLVED] Internet connection problems on a fresh install of Slackware 14.1
SlackwareThis Forum is for the discussion of Slackware 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.
Try a static IP since your eth0 is available an needs to get a IP and support information. You can change the IP below to your network available IP.
I would setup a static IP first, do as root from cli;
For Ethernet(wired) use this part;
Code:
~#/sbin/ifconfig eth0 192.168.0.18 #change to you LAN class
~#/sbin/route add default gw 192.168.0.1
OR
For wireless use this part
Code:
~#ifconfig -a #get recognized devices
~#ifconfig wlan0 192.168.0.10 #set to a available IP
~#route add default gw 192.168.0.1 #set to your gateway
Then proceed to this part;
Code:
~#route -n #show the kernel route table
~#ifconfig wlan0 up #should be up already
Code:
/set to eth0
~#ping 192.168.0.1 #ping your gateway
~#ping 208.69.32.130 #google.com IP
~#ping google.com #test DNS, if fail then
#check /etc/resolv.conf
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers.
Code:
sample '/etc/resolv.conf';
search 192.168.1.1
nameserver xxx.xxx.xxx.xxx #ISP DSN 'replace xxx.xxx.xxx.xxx
#with IP from your ISP DNS
Code:
#sample DNS
nameserver 8.8.8.8 #Google
nameserver 67.215.65.132 #OpenDNS
nameserver 4.2.2.1 #Verizon third level DNS
nameserver 4.2.2.2 #OK to use
nameserver 4.2.2.3
nameserver 4.2.2.4
If you want a script for wireless or wired(you would need to replace wlan0 to eth0 within script) then cut & paste the below script or copy it to the filename 'wlan.sh' or 'eth0.sh' Don't forget to chmod it to +x. (You need to learn some things on your own) Hint you will be root to run it.
Code:
~# cat wlan.sh
#!/bin/bash ###start
#
#10-26-09 13:30 gws
#setup the bcm4312 wlan0 device
#
/sbin/ifconfig wlan0 192.168.0.18
/sbin/route add default gw 192.168.0.1
/sbin/iwconfig wlan0 essid "linksys" #you can use iwlist wlan0 scan #to show available devices
/sbin/iwconfig wlan0 key <PLACE KEY>
/sbin/iwconfig wlan0 ap <00:00:00:00:00:00> <you get this from the 'iwlist wlan0 scan' above ### end
Once you have filled in the correct assignments above then just execute the script. The commands should all be available on any Gnu/Linux.
You will need to setup the '/etc/resolv.conf' with your ISP nameservers.
Quote:
sample '/etc/resolv.conf;
#Verizon third level DNS
#place your ISP DNS first thus ahead of the Verizon DNS
#
nameserver xxx.xxx.xxx.xxx
nameserver 4.2.2.1
nameserver 4.2.2.2
You may want to look at the '/etc/resolv.conf' file before modifying it.
Last edited by onebuck; 03-18-2015 at 12:29 PM.
Reason: typo
Try a static IP since your eth0 is available an needs to get a IP and support information. You can change the IP below to your network available IP.
I would setup a static IP first, do as root from cli;
For Ethernet(wired) use this part;
Code:
~#/sbin/ifconfig eth0 192.168.0.18 #change to you LAN class
~#/sbin/route add default gw 192.168.0.1
OR
For wireless use this part
Code:
~#ifconfig -a #get recognized devices
~#ifconfig wlan0 192.168.0.10 #set to a available IP
~#route add default gw 192.168.0.1 #set to your gateway
Then proceed to this part;
Code:
~#route -n #show the kernel route table
~#ifconfig wlan0 up #should be up already
Code:
/set to eth0
~#ping 192.168.0.1 #ping your gateway
~#ping 208.69.32.130 #google.com IP
~#ping google.com #test DNS, if fail then
#check /etc/resolv.conf
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers.
Code:
sample '/etc/resolv.conf';
search 192.168.1.1
nameserver xxx.xxx.xxx.xxx #ISP DSN 'replace xxx.xxx.xxx.xxx
#with IP from your ISP DNS
Code:
#sample DNS
nameserver 8.8.8.8 #Google
nameserver 67.215.65.132 #OpenDNS
nameserver 4.2.2.1 #Verizon third level DNS
nameserver 4.2.2.2 #OK to use
nameserver 4.2.2.3
nameserver 4.2.2.4
If you want a script for wireless or wired(you would need to replace wlan0 to eth0 within script) then cut & paste the below script or copy it to the filename 'wlan.sh' or 'eth0.sh' Don't forget to chmod it to +x. (You need to learn some things on your own) Hint you will be root to run it.
Code:
~# cat wlan.sh
#!/bin/bash ###start
#
#10-26-09 13:30 gws
#setup the bcm4312 wlan0 device
#
/sbin/ifconfig wlan0 192.168.0.18
/sbin/route add default gw 192.168.0.1
/sbin/iwconfig wlan0 essid "linksys" #you can use iwlist wlan0 scan #to show available devices
/sbin/iwconfig wlan0 key <PLACE KEY>
/sbin/iwconfig wlan0 ap <00:00:00:00:00:00> <you get this from the 'iwlist wlan0 scan' above ### end
Once you have filled in the correct assignments above then just execute the script. The commands should all be available on any Gnu/Linux.
You will need to setup the '/etc/resolv.conf' with your ISP nameservers.You may want to look at the '/etc/resolv.conf' file before modifying it.
Ok, I am trying to understand what you wrote. I followed the commands from the first code box but here is where you lost me. I checked the rc.conf but it didn't have the "search 192.168.1.1" as seen in your sample. It just had the domain name I gave the computer. Is it possible to just edit the rc.conf with the Vi editor and just type out something similar to yours? Also what exactly is the name server? Is the name server the DEFAULT GATEWAY I found in the router status? I went on the router options from my other computer and I found the DNS address but nothing about ISP nameservers.
Ok, I am trying to understand what you wrote. I followed the commands from the first code box but here is where you lost me. I checked the rc.conf but it didn't have the "search 192.168.1.1" as seen in your sample. It just had the domain name I gave the computer. Is it possible to just edit the rc.conf with the Vi editor and just type out something similar to yours? Also what exactly is the name server? Is the name server the DEFAULT GATEWAY I found in the router status? I went on the router options from my other computer and I found the DNS address but nothing about ISP nameservers.
I did state that if you want to use 'wicd' then revert '/etc/rc.d/rc.inet1.conf' file to original state (you can use pkgtool as root to re-run the network setup script or run netconfig from cli as root). Slackware does not use a 'rc.conf' file. Where did you get that from? If you are speaking about '/etc/resolv.conf' then that would contain your nameserver(s) as shown you could use third level DNS or your ISP assigned DNS. A nameserver is what is used to provide the means to translate text based name to a valid IP;
Quote:
From nameserver
A name server is a computer hardware or software server that implements a network service for providing responses to queries against a directory service. It translates an often humanly-meaningful, text-based identifier to a system-internal, often numeric identification or addressing component. This service is performed by the server in response to a service protocol request.
An example of a name server is the server component of the Domain Name System (DNS), one of the two principal name spaces of the Internet. The most important function of DNS servers is the translation (resolution) of human-memorable domain names and hostnames into the corresponding numeric Internet Protocol (IP) addresses, the second principal name space of the Internet which is used to identify and locate computer systems and resources on the Internet.
Most ISP will provide a DNS address for you to use. If your router gets a DHCP assigned IP from your ISP then a DNS will be provided to it. Which is your gateway IP then you can use the router IP as shown in my sample but you would need to use your LANS class IP address that has been assigned. I provided examples that could be used in your '/etc/resolv.conf' file that is editable by vi as root. In those you would need to provide correct IP addresses.
Here is another link that may be of some help;
Quote:
Configuring your network in Slackware <- Alien_Bob's excellent article on the way network cards are configured in Slackware. + Loads of internal reference links + Ethernet & Wireless
I did state that if you want to use 'wicd' then revert '/etc/rc.d/rc.inet1.conf' file to original state (you can use pkgtool as root to re-run the network setup script or run netconfig from cli as root). Slackware does not use a 'rc.conf' file. Where did you get that from? If you are speaking about '/etc/resolv.conf' then that would contain your nameserver(s) as shown you could use third level DNS or your ISP assigned DNS. A nameserver is what is used to provide the means to translate text based name to a valid IP;Most ISP will provide a DNS address for you to use. If your router gets a DHCP assigned IP from your ISP then a DNS will be provided to it. Which is your gateway IP then you can use the router IP as shown in my sample but you would need to use your LANS class IP address that has been assigned. I provided examples that could be used in your '/etc/resolv.conf' file that is editable by vi as root. In those you would need to provide correct IP addresses.
Here is another link that may be of some help;The above article has been modified for Slackware Doc Project You should get a broader idea as what is going on in the Configuring your network in Slackware article.
Hope this helps.
Have fun & enjoy!
Ok, The rc.conf was an error on my part. I was referring to the resolv.conf,which is why i quoted that response and nothing else. My fault, sorry about that. I am just trying to make heads or tails of matching your current response to the one you had previously. You stated that I would have to "revert /etc/rc.d/rc.inet1.conf' file" to use WICD. From your previous post I don't see any of what you are claiming to say. I stated that i followed the commands "~#/sbin/ifconfig eth0 192.168.0.18 #change to you LAN class
~#/sbin/route add default gw 192.168.0.1". After that I checked the resolv.conf and it was not like that sample you provided (it did not have the new gateway 192.168.0.1 for example.) which is why asked if I should just try and change it. my ISP never provided me with a DNS address as they are not required to do so.
Ok, The rc.conf was an error on my part. I was referring to the resolv.conf,which is why i quoted that response and nothing else. My fault, sorry about that. I am just trying to make heads or tails of matching your current response to the one you had previously. You stated that I would have to "revert /etc/rc.d/rc.inet1.conf' file" to use WICD. From your previous post I don't see any of what you are claiming to say. I stated that i followed the commands "~#/sbin/ifconfig eth0 192.168.0.18 #change to you LAN class
~#/sbin/route add default gw 192.168.0.1". After that I checked the resolv.conf and it was not like that sample you provided (it did not have the new gateway 192.168.0.1 for example.) which is why asked if I should just try and change it. my ISP never provided me with a DNS address as they are not required to do so.
For a working network your ISP would provide a DNS address.Who is your ISP? We can find the DNS sever if you do not want to use alternative DNS that I listed. You revert the '/etc/rc.d/rc.inet1.conf' to the original state by running pkgtool as root to re-run the network setup script or run netconfig from cli as root. That way there will be no conflicts with 'wicd'.
You have to manually enter the DNS into '/etc/resolv.conf' via vi or whatever text editor you want to use. If you had selected 'DHCP then the '/etc/resolv.conf' would be setup by that server.
The command '~#/sbin/route add default gw 192.168.0.1' only sets the default gateway for the kernel route table, nothing else. Do a 'man route' to get understanding. If in question you can 'man command' to get the semantics & syntax for any command. If you read some of the links for information that I provided you will have a better understanding of what is going on.
Alright, the internet seems to be working now. I followed all of the advice in this thread at the same time after a fresh reinstall. I figure if I just throw as many solutions at it one of them might work. As a result I am not sure which worked.
Thanks for the help.
Ok, I figured out what did the trick after doing another reinstall.
During installation or after installation with the "netconfig" command I picked static I.P address. At the same time I used the ipconfig -all command on a Windows machine to list the complete network information. From that information I noted the I.Pv4 address, the subnet mask, the default gateway and the two dns nameservers.
Under the static I.P configuration on Slackware I filled out the I.Pv4 as the I.P adddress (with a small edit on the last digit), the subnet mask is filled automatically, the default route is similar to the default gateway, and I used the first DNS name server as the primary DNS name server. After that I restarted the computer and the internet was up and running.
I hope this helps others who had a similar problem. My problem was not being familiar with the terminology.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.