LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 12-24-2008, 04:47 AM   #1
legeipsnelU
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Rep: Reputation: 0
How to setup the internet connection on Slackware 12.2?


Hi guys! Here is the info on the network: my host is connected to a router(via WiFi), router is connected to a DSL modem. A typical dorm network.

I get the signal, connect to the wireless network and the connection is Ok. But I still don't have a connection to the internet. Since it's a Slackware, I think I'd have to "tell" my OS manually where to send the generated packets. So, I guess I have to specify the IP of my edge router as a gateway to the Internet. And I also don't know whether I have to assign myself an IP and if yes then how to do it. From my Ubuntu 8.10 I've run "traceroute" to get the IP of the router and it found out to be 192.168.0.1.

Now, could you, please, tell me which steps exactly do I have to take in order to set the router as a gateway and get connected to the Internet? I have to use "route" somehow. I know that there is info on in in the web, but it's really hard to experiment, since I have to switch between my Slackware and Ubuntu Live Disk. Once I get connected from Slack, I'd be able to practise Slack normally, without asking trivial questions.

--------
Thanks is advance & Happy Xmas.

Last edited by legeipsnelU; 12-24-2008 at 04:51 AM.
 
Old 12-24-2008, 05:10 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,953

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Start learning:

There's plenty out there. Make sure of your /etc/hosts, /etc/resolv.conf, and /etc/host.conf - as a last resort read the PPP-HOWTO from chapter 10(when he finally gets to the subject) onwards.

Then you need to connect. presuming your wireless card is automagically set up, try 'dhcpcd wlan0' or whatever it is. Get online and start reading. Put in "your errors" into google and press search. Google will show you previous posts from people who had this.
 
Old 12-25-2008, 08:10 AM   #3
legeipsnelU
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Hi again. I haven't got any connection yet, but at least I've understood a bit about that network stuff.

Please correct me if I'm wrong, but what I have to do is:
1) Set my IP address via "ifconfig wlan0 [myIp] netmask [myNetmask]"
2) Set a route to my edge router via "route add -net [routerIp] netmask [routerMask] dev wlan0"
3) Set a default gateway for my packets via "route add default gw [routerIp]"
4) Edit "/etc/resolv.conf" appending there "nameserver [dnsIp]"
5) Activate my WLAN card and connect to a network.
6) Enjoy my web browsing...


Even if all of the steps are correct I still don't understand something. While being able to normally surf in the internet with my "Ubuntu 8.10 Live" I try to get all the IP addresses I need for my configuration of the network in Slackware. So, I run "ifconfig wlan0" and in "inet addr" field it shows me that my IP is "192.168.0.100". Then I run "traceroute" to get the IP of my edge router and in the first line of the route it shows me exactly "192.168.0.1". Finally I examine "resolv.conf" and what I see there is "nameserver 192.168.0.1". I'm host & router & DNS. Howcome? How can I get correct values of IP in order to use them in my Slackware network configuration. Thanks in advance.
 
Old 12-25-2008, 09:37 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by legeipsnelU View Post
Please correct me if I'm wrong, but what I have to do is:
1) Set my IP address via "ifconfig wlan0 [myIp] netmask [myNetmask]"
2) Set a route to my edge router via "route add -net [routerIp] netmask [routerMask] dev wlan0"
3) Set a default gateway for my packets via "route add default gw [routerIp]"
4) Edit "/etc/resolv.conf" appending there "nameserver [dnsIp]"
5) Activate my WLAN card and connect to a network.
6) Enjoy my web browsing...
Not quite.

IN slackware network configuration (specifying gateway and ip addresses for cards) is done by either:
1) running netconfig as root
or
2) manually editing /etc/rc.d/rc.inet1.conf . This file has a lot of comments inside, so it isn't difficult to figure out what is what.

To specify nameservers, you still will have to edit /etc/resolv.conf.

After that you'll have to either reboot machine or run "/etc/rc.d/rc.inet1 restart" as root.

Notice that I have no experience with wireless and it might (or might not) require some additional steps.
 
Old 12-25-2008, 10:03 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,363
Blog Entries: 3

Rep: Reputation: 169Reputation: 169
kcontrol center . net settings you will find it. then click admin type your root password. configure your wlan0 dhcpd then apply save what ever. if you do not need to set a password for your wep. then all is cool then click kde internet more then you will see a wifi program click it and set up your conection.if you ned to put in a passphrase then there is where you do it. if you do a scan then and nothing comes up tells me you need a driver.or your device is not being loaded. .look at in a terminal as root. su then password. then type lsmod if you see your devices module cool but then type lspci -n will give you your card. then you will need to get the drivers. if you have bcm or broadcam chip get the open souce one. if not you will need a ndiswraper why a ndiswrapper or firmware. is because 90 percent of todays hardware are for windows. if though your system recognizes the card it still will need a small program that runs there chip on the card. we use ndiswraper ubuntu uses ndiswrapper except for the bcm broadcom chips. either way. you can try to connect all day and never get the connection.
why does this work off a live disk is because the live disk is set up to do limted things but it also is configured for the net. Slack where is very simple but you need to make sure you have your drivers and stuff.the program ndiswrapper is not on the disk. so you need to get it and install if you have cards that are not working with the kernel.
i use a broadcom chip my module comes with slackware but i have to down load the firmware for it to use the chip.
 
Old 12-25-2008, 01:40 PM   #6
legeipsnelU
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Hi. I have no luck with it...
There is no problem with the hardware part. My card is recognized and connects to the wireless network normally. What I cannot do is set up all this internal network configuration stuff. I've edited the "rc.inet1.conf" and "resolv.conf" files manually setting up the IPs.
The IP of DNS I got from the ISPs web site. The IP of my edge router I got from running "traceroute" on my Ubuntu 7.10 Live and it was 192.168.0.1. My own IP I've set to 192.168.0.4. This doesn't work.

I've also tried to use "dhcpcd wlan0" and it just stucks broadcasting the message. The "dhcpcd.conf" file is empty.


What should I do?
 
Old 12-25-2008, 02:12 PM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,363
Blog Entries: 3

Rep: Reputation: 169Reputation: 169
well my card is reconized right out of the box to they all are lspci reads the chip info. that does not mean the module is loaded for it. My broadcom chip is recognized and it even loads the module but the firm ware drivers need to run it are going to have to be down loaded . That is why ubuntu has automatic set ups when you down load the ndiswrapers or bcm-fmcutter programs. it installs them for you. so what is your device products name. you can read this thread my answer to the cable modem wifi problem. http://www.linuxquestions.org/questi...driver-692665/
 
Old 12-25-2008, 02:44 PM   #8
legeipsnelU
LQ Newbie
 
Registered: Nov 2008
Posts: 13

Original Poster
Rep: Reputation: 0
My card is "Intel Corporation Wireless WiFi Link 5100MC".

Last edited by legeipsnelU; 12-25-2008 at 02:46 PM.
 
Old 12-25-2008, 04:19 PM   #9
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,363
Blog Entries: 3

Rep: Reputation: 169Reputation: 169
thing to give us type of computer note book desk top then post your lspci and your lspci -n then do as I asked you to do get ndiswrapper and use the driver that came from the disk or go here and get the driver you will need the inf file for the ndiswrapper program you have hardware made for xp and vista. http://www.fujitsu-siemens.com/support/downloads.html
this is the company that makes it.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet connection setup?!?!? toymakerii Slackware 7 09-05-2006 09:16 AM
Internet Connection Setup adds2one Slackware - Installation 3 08-28-2005 12:45 PM
Setup internet connection DanielTan Linux - Networking 29 01-14-2005 10:40 AM
need help on internet connection setup dzan Linux - Networking 2 10-18-2004 04:44 AM
Internet Connection Setup lilcap Linux - Networking 1 07-20-2003 06:43 AM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration