LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Not connecting to the internet (https://www.linuxquestions.org/questions/slackware-14/not-connecting-to-the-internet-431592/)

Deelk 04-04-2006 09:20 AM

Not connecting to the internet
 
Hi,

I've finally installed Slackware succesfull,well allmost.I can't connect to the internet.During the installation I had to choose a modem type,but I didn't know which one was the right one for me,so I just picked one.I have cable internet.Could anyone help me solving this problem?

kind regards,
Deelk

Alien_Hominid 04-04-2006 09:23 AM

Run # netconfig.

Deelk 04-04-2006 09:38 AM

Quote:

Originally Posted by Alien_Hominid
Run # netconfig.

It says that the command is not found.

Alien_Hominid 04-04-2006 09:46 AM

How could that be? You don't need # sign - it only shows that the command must be run in terminal by root.

Randux 04-04-2006 10:30 AM

Quote:

Originally Posted by Deelk
Hi,

I've finally installed Slackware succesfull,well allmost.I can't connect to the internet.During the installation I had to choose a modem type,but I didn't know which one was the right one for me,so I just picked one.I have cable internet.Could anyone help me solving this problem?

kind regards,
Deelk

It sounds like you chose the wrong connection type. Don't worry it's not a big deal. Edit rc.inet1.conf in /etc/rc.d

If you're using eth0 (1st ethernet card) for your connection, which would be pretty normal, then set DHCP to yes like this.

Code:

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

This will make your ISP assign you an IP address and everything should work without much setup.

Deelk 04-04-2006 10:30 AM

Quote:

Originally Posted by Alien_Hominid
How could that be? You don't need # sign - it only shows that the command must be run in terminal by root.

I logged in as root,opened xterm typed netconfig and when I press enter it says that the command is not found.

@Randux:I will try that.I will let you know how it went.

Thanx

Edit:How do I know what I have to fill in after NETMASK and DCHP_HOSTNAME?

Alien_Hominid 04-04-2006 10:42 AM

If you installed Slackware normally, the command should be there. You should have tcpip installed. Check it with pkgtool.

Randux 04-04-2006 10:49 AM

DHCP fills that stuff in, you don't have to do anything except exactly as shown.

Deelk 04-04-2006 11:20 AM

For some reason I don't have rc.inet1.conf in /etc/rc.d.

@Alien_Hominid:
I will try that asap,but I have to run now.Thanx

Alien_Hominid 04-04-2006 11:28 AM

This is also from tcpip package. In addition, check if you have etc package installed.

Randux 04-04-2006 11:37 AM

Quote:

Originally Posted by Deelk
For some reason I don't have rc.inet1.conf in /etc/rc.d.

Then it will be hard to connect to the internet :p

Deelk 04-04-2006 02:16 PM

Quote:

Originally Posted by Alien_Hominid
This is also from tcpip package. In addition, check if you have etc package installed.

Could you maybe explain how to install tcpip from pkgtool?And what do you mean with etc installed?Do you mean that packages category that you can choose at the installation of slack?Thanks for your effort guys:)

Alien_Hominid 04-04-2006 02:25 PM

Ok. Firstly run pkgtool in your terminal.
By selecting view in the opened window, you can check which packages are installed. If you press enter on the package name, you will get detailed description of the installed package. So check if you have tcpip and etc packages installed. If not, go to http://www.slackware.it/en/pb/, enter package name (for example, tcpip), download it and install by issuing installpkg tcpip-version.tgz, then run netconfig. That's all.
As well, you can install tcpip (like any other official) package from your Slackware 1CD n/ series running the same installpkg command, which is used for installing all Slackware packages (they should end in tgz).
Tell if you didn't understand something.

mdarby 04-04-2006 02:45 PM

Code:

su root
wget ftp://slackware.cs.utah.edu/pub/slackware/slackware-current/slackware/n/tcpip-0.17-i486-36.tgz
installpkg tcpip-0.17-i486-36.tgz
netconfig


Deelk 04-04-2006 03:01 PM

Quote:

Originally Posted by Alien_Hominid
Ok. Firstly run pkgtool in your terminal.
By selecting view in the opened window, you can check which packages are installed. If you press enter on the package name, you will get detailed description of the installed package. So check if you have tcpip and etc packages installed. If not, go to http://www.slackware.it/en/pb/, enter package name (for example, tcpip), download it and install by issuing installpkg tcpip-version.tgz, then run netconfig. That's all.
As well, you can install tcpip (like any other official) package from your Slackware 1CD n/ series running the same installpkg command, which is used for installing all Slackware packages (they should end in tgz).
Tell if you didn't understand something.

First of all,thanx a bunch.I've installed tcpip succesfully from the slackware cd1.Now I'm trying to set it up correctly by using he netconfig.I don't know how,so I'm going to follow these instructions:
http://www.slackware.com/config/network.php

@mdarby:Thanx for your effort.As you see,it already worked using the methof of Alien_Hominid :)

Alien_Hominid 04-04-2006 03:04 PM

His method is much quicker but idea is the same.

Deelk 04-05-2006 09:35 AM

I can't get it to work.Could anyone please tell me how to configure it correctly?I've got cable internet.Thanx in advance

mdarby 04-05-2006 10:22 AM

Have you installed the TCPIP package?
Do you get any errors?
What exactly happens when you ping google.com?
Did your ISP give you any information regarding IPs or gateways?

Deelk 04-05-2006 10:35 AM

Quote:

Originally Posted by mdarby
Have you installed the TCPIP package?
Do you get any errors?
What exactly happens when you ping google.com?
Did your ISP give you any information regarding IPs or gateways?

When I launch firefox,it says that the url is not found.I don't get any errors.Uhm,what is ISP?

Alien_Hominid 04-05-2006 11:25 AM

Isp - internet service provider. As mdarby said ping google.com. If it doesn't respond, ping your gateway.

Randux 04-05-2006 11:27 AM

Quote:

Originally Posted by Deelk
When I launch firefox,it says that the url is not found.I don't get any errors.Uhm,what is ISP?

Looking in your browser is a very quick way to see if you are connected, but it's not the best way.

Try this as root:

Code:

ifconfig
And paste that into the entry. It will help see what is the status of your connections. And see if you can find any messages about DHCP connecting- it will give you the address of your ISP (internet service provider- fancy name for internet company).

Make sure that you have rc.inet1 and rc.inet2 scripts in /etc/rc.d with executable attribute (x) something like this when you do ls -l in /etc/rc.d

Code:

rwxr-xr-- 1 root root 7K rc.inet1
because these scripts have to be executed at startup

wchild 04-06-2006 01:58 AM

Quote:

Originally Posted by Alien_Hominid
As mdarby said ping google.com.

Don't ping google.com - it's a search engine not a test sandbox.
Don't ping microsoft.com - it doesn't reply to ICMP packets AFAIK
Just ping some random address.

Alien_Hominid 04-06-2006 08:42 AM

Does it harm google for pinging it? If pinging harmed in some way, they would disable response to icmp packets. Pinging google is good because their server is always online not like some random address.

mdarby 04-06-2006 10:01 AM

Quote:

Originally Posted by wchild
Don't ping google.com - it's a search engine not a test sandbox.
Just ping some random address.

This is bad advice. You know that google.com is going to be online, "some random address" will get you some random results.

Alien_Hominid 04-06-2006 10:07 AM

Here is google's ip - 72.14.207.99, if your dns for somehow is not working.

Randux 04-06-2006 12:10 PM

Everybody's posting except the OP ;) There, now I did it too.


All times are GMT -5. The time now is 12:55 AM.