LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-16-2006, 07:12 PM   #1
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Rep: Reputation: 15
Setting up an internet connection


I have installed Slackware 10.2 on my hard drive, and I love the whole set up of this distrobution, but cannot figure out how to get my internet connection to work. I have a cable internet connection, so I have a cable modem, and I was wondering if one of you could tell me how to set it up.

thanks
 
Old 09-16-2006, 07:47 PM   #2
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 32
Code:
root@drkstr:~# ifconfig eth0 up
root@drkstr:~# dhcpcd eth0
Or even better:
Code:
root@drkstr:~# netconfig
will automate the process if it can be automated.

This is a good start, from www.slackbook.org. It's all explained there.

The slackbook is an excellent reference and will help you more often than not with "easy" things.

Good luck.

Last edited by zetabill; 09-16-2006 at 07:49 PM.
 
1 members found this post helpful.
Old 09-17-2006, 12:28 AM   #3
CamelofCamelot
Member
 
Registered: Aug 2003
Distribution: Slackware, ClusterKnoppix, Gentoo
Posts: 85

Rep: Reputation: 15
I have an almost identical problem, but when I type ifconfig eth0 up, it says that eth0 cannot be found. Any ideas? I'm on a Sony VAIO laptop if that matters.

Last edited by CamelofCamelot; 09-17-2006 at 12:30 AM.
 
Old 09-17-2006, 12:32 AM   #4
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 32
Code:
ifconfig -a
will list all the available devices. Check to make sure that it's not eth1 or something else. If there isn't anything except lo then that's a symptom of other problems.
 
1 members found this post helpful.
Old 09-17-2006, 09:26 AM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Cool

Quote:
Originally Posted by underworld288
I have installed Slackware 10.2 on my hard drive, and I love the whole set up of this distrobution, but cannot figure out how to get my internet connection to work. I have a cable internet connection, so I have a cable modem, and I was wondering if one of you could tell me how to set it up.

thanks
Take a look at /etc/rc.d/rc.inet1.conf. There is a section for eth0. If you are using DHCP then
just change USE_DHCP[0]="YES" and leave everything else blank. If you are using static IP
then fill in IPADDR[0].

That's pretty much it. Make sure you have rc.inet1 and rc.inet2 executable (they probably are).

Do ifconfig from root to see what the status is.

If you aren't running behind a router think about arno iptables firewall script or some other iptables firewall configurator.
 
1 members found this post helpful.
Old 09-17-2006, 01:40 PM   #6
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
thanks for all the help guys, I finally got it working .
 
Old 09-17-2006, 01:45 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Glad you got it working. Please describe what you did so other newbies can learn from it
 
Old 09-17-2006, 02:03 PM   #8
underworld288
Member
 
Registered: Sep 2006
Distribution: slackware, ubuntu, and kubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
to get it working I just followed what zetabill said, type
Code:
root@drkstr:~# ifconfig eth0 up
root@drkstr:~# dhcpcd eth0
in the terminal
 
1 members found this post helpful.
Old 09-17-2006, 02:12 PM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Thanks. Nice work, Zeta
 
0 members found this post helpful.
Old 09-17-2006, 02:33 PM   #10
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 32
Excellent..

If you want to make sure that it comes up when you turn the computer on, you can run the netconfig command and set it up that way. Randux' post about rc.inet1.conf (post #5) is the explanation of what netconfig is doing.

So now you know how to do it on the fly, automatically, and manually!
 
0 members found this post helpful.
Old 12-01-2009, 01:59 AM   #11
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by zetabill
Or even better:
Code:

root@drkstr:~# netconfig
I tried netconfig on suse 10.3 as root. It said command not found. Is it a slackware specific command ?

Last edited by TheIndependentAquarius; 12-01-2009 at 02:07 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Setting up Internet Connection harbir Linux - Hardware 1 07-25-2004 08:33 AM
Setting Up Internet Connection unosaso Linux - Networking 2 07-21-2004 07:26 AM
Need help setting up internet connection deram Linux - Newbie 2 10-29-2003 02:42 AM
Setting up an internet connection dalraidia Linux - Networking 10 02-17-2003 04:03 PM
setting up internet connection classWizard Linux - Newbie 12 09-28-2002 05:22 AM

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

All times are GMT -5. The time now is 05:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration