LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2015, 12:27 PM   #16
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response


Hi,

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
 
Old 03-18-2015, 03:36 PM   #17
bopeetion
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by onebuck View Post
Hi,

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.
 
Old 03-18-2015, 05:05 PM   #18
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

Quote:
Originally Posted by bopeetion View Post
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
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!
 
Old 03-18-2015, 05:59 PM   #19
bopeetion
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by onebuck View Post
Hi,



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.
 
Old 03-18-2015, 06:37 PM   #20
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,
Quote:
Originally Posted by bopeetion View Post
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.
 
Old 03-19-2015, 11:01 AM   #21
bopeetion
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
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.

Last edited by bopeetion; 03-19-2015 at 12:58 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problems booting Slackware 14.1 fresh install with UEFI spudgunner Slackware 9 11-20-2013 07:13 AM
Slackware 14 fresh install problems *unknown* SlackFanForever Slackware 6 10-09-2012 03:56 PM
Fresh Ubuntu 8.04.1 install on AMD64 - NO internet connection ToniMe Linux - Networking 3 07-29-2008 01:31 PM
fresh install Slackware 12 with BCM4318 problems elvenson Slackware 5 09-29-2007 12:19 AM
Problems with launching programs in Fresh Slackware 10.0 Install Cecil Linux - Software 5 11-22-2004 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration