LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-26-2003, 01:07 AM   #1
ex0r
Member
 
Registered: Jun 2003
Posts: 36

Rep: Reputation: 15
No internet


I am a complete n00b to linux. I always wanted to learn linux and start using it and now I am.

I installed Slackware linux about a week ago and I can get online with it. I'm using broadband, so I'm not dialing up to anywhere. I tried configuring it with #netconfig but I couldn't get anywhere. I'm actually running through a router, it's a cable connection too. I set it up on Static IP and I think I put in the right IPs for everything, I'm not sure and nothing worked. I also tryed DHCP, cause I'm running through a router, but still nothing. I have no idea what to do.

The computers IP is 68.80.39.180
Through the router its 192.168.0.103

I don't have a damn clue what to do so that I can browse sites on linux. So it will make it easier to learn, instead of loading windoze, browsing for info, rebooting to linux trying stuff that doesn't work then booting back up to windoze to read more. Can anyone help me out?

 
Old 06-26-2003, 01:08 AM   #2
ex0r
Member
 
Registered: Jun 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Yeah I meant CAN'T get online with it... sorry
 
Old 06-26-2003, 01:13 AM   #3
LoungeLizard
Member
 
Registered: Apr 2003
Location: Tampa, Florida
Distribution: Mint 17.2 ,OpenSuse, Kali and Pepermint OS 6
Posts: 276

Rep: Reputation: 30
are you trying to set it up using dhcp or static addresses?
 
Old 06-26-2003, 01:15 AM   #4
ex0r
Member
 
Registered: Jun 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Um.. does it matter? I'm not sure what to use, does that router effect anything, what should I use?
 
Old 06-26-2003, 02:20 AM   #5
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
If you don't mind, do this:

Become root (type "su -")
type "ifconfig -a" and post the output here.

Configuration wise, you might want to tell the router to assign you a static IP, if you can. I think there's a way to do that in, for instance, the little linksys cable/dsl routers.

To configure a static IP:

ifconfig interface ip-address broadcast broadcast-address netmask netmask-address
route add -net default gw gateway netmask 0.0.0.0 metric 1 interface

That looks complicated, but you probably already know what most of it means. Both of these commands are in /sbin, so if they don't run, put an /sbin in front of them. In your terms, this would be:

ifconfig eth0 192.168.1.103 broadcast 192.168.1.255 netmask 255.255.255.0
route add -net default gw 192.168.1.101 netmask 0.0.0.0 metric 1 eth0

This is assuming the IP address assigned to the computer from the router is 192.168.1.103 and that the router's IP is 192.168.1.101 (on the "behind the firewall" side).

eth0 is your network card, broadcast is the last address in the block of IP's your computer is in, netmask is the number of computers in the block. In this case, the netmask is telling it that everything in 192.168.1.* is somewhere close. That's what the 255.255.255.0 means. If it was, for example, 255.255.0.0, it would mean everything in 192.168.* is close at hand, and if you see a netmask of 255.255.255.255 it means basically "i know who I am, but I don't know where or who anyone else is".

Anyway, that should get you up and cooking with some network usage.



As a total aside, what made you decide on slackware? It's fairly hardcore, if you wanna save yourself some headache, pick up redhat 9 - it'll do all this for you, you just tell it that it's dhcp in the install process and it does the rest.
Or, if you want to be hardcore, check out gentoo. More extensive documentation than slack, and it's got better network autodetection.

But, your mileage may vary, distribution choice is very personal.

Last edited by xiaodown; 06-26-2003 at 02:22 AM.
 
Old 06-26-2003, 02:38 AM   #6
ex0r
Member
 
Registered: Jun 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Thank you very much, I seem to understand it somewhat. I haven't tried it yet but I will soon. I chose slackware because it was like 10$ online and I had dial up at the time and didn't feel like downloading a 600MB file... I'll tell you the outcome of this. Thank you again.
 
Old 06-26-2003, 02:51 AM   #7
ex0r
Member
 
Registered: Jun 2003
Posts: 36

Original Poster
Rep: Reputation: 15
WOW! Thank you so much man. It worked. Just had to mess with the IP's. I am posting this from Linux. Thanks alot!
 
Old 06-26-2003, 03:16 AM   #8
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
excellent, good to hear.


If you could, post exactly what you did, so that people that search after us can see and learn....
 
Old 06-26-2003, 12:10 PM   #9
LoungeLizard
Member
 
Registered: Apr 2003
Location: Tampa, Florida
Distribution: Mint 17.2 ,OpenSuse, Kali and Pepermint OS 6
Posts: 276

Rep: Reputation: 30
Glad you got it working.
 
  


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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 05:29 PM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 12:48 PM
Messed up my internet settings (NO internet connection) :( Almazick Linux - Networking 2 09-08-2004 01:05 PM
iptables. Can ping through to internet side nic but can't get to internet gonus Linux - Networking 19 07-15-2004 02:27 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:10 PM.

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