LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-09-2006, 11:24 AM   #1
CiscoGeek
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 11, Fedora 6, RHEL 3.0
Posts: 18

Rep: Reputation: 0
Need the commands to setup my internet connection


Alright, I am very new to linux i am currently running slackware 10.2 and using the kde enviornment. I am not sure where to even begin to start setting up my nic and such, i trolled around and looked at some of the other threads and the output of my ifconfig gave me my loopback address. Not sure what else you need as far as info... Let me know
 
Old 04-09-2006, 11:32 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What kind of network card are you using? Also, give us the output of lsmod, that will tell us whether the required module is loaded or not. As well as this, give us some info about how you're connecting. Are you connected to a router? If so does your router use DHCP? I think it's most likely. After we get your network card ready for use, you'll probably want to use netconfig.

Edit: this will be useful to you .

Last edited by Nylex; 04-09-2006 at 11:33 AM.
 
Old 04-09-2006, 12:31 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
First off, Welcome to Slackware!

Nylex's advice is dead on the money. We can't go much further until we know what the results are.

Here's how:

Login as 'root' (Since you're not on the net, it won't hurt, and you'll get the outputs we need)
From a console (Kinda like a DOS box) type:
Code:
# lspci
# lsmod
# ifconfig
Note: Don't type the '#', it's just a prompt for the root user.

Post the results of all three commands (Copy/paste to a file you can get to on another OS, i.e, a floppy...lol)
 
Old 04-09-2006, 12:45 PM   #4
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
Quote:
Originally Posted by CiscoGeek
Alright, I am very new to linux i am currently running slackware 10.2 and using the kde enviornment. I am not sure where to even begin to start setting up my nic and such, i trolled around and looked at some of the other threads and the output of my ifconfig gave me my loopback address. Not sure what else you need as far as info... Let me know
1. list your hardware, look for nic(lspci)
2. check if the module for your nic is loaded(lsmod)
3. follow my simple tutorial

--My simple tutorial to set up for nic(static ip)--

#ifconfig eth0 10.0.0.6 broadcast 10.0.0.254 netmask 255.0.0.0 up
#route add default gw 10.0.0.2
#pico /etc/resolv.conf

10.0.0.6: your workstations/lappies static ip
10.0.0.2: gateway(router, computer with net connection etc)
/etc/resolv.conf: add 'nameserver <name-server-ip-here>

umm... just ask me if you want to know how to do this if you use a dhcpd on your network.
 
Old 04-09-2006, 12:48 PM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Much easier to use 'netconfig' in Slackware, ecspecially for a newuser. It will do all the above, plus setup the correct conf files.
 
Old 04-09-2006, 03:24 PM   #6
CiscoGeek
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 11, Fedora 6, RHEL 3.0
Posts: 18

Original Poster
Rep: Reputation: 0
alright here we go here is the first one
00:12.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet (that is my nic)
lsmod
Module Size Used by Not tainted
usb-storage 62432 1
snd-pcm-oss 36736 0 (unused)
snd-mixer-oss 12376 0 [snd-pcm-oss]
usb-ohci 19368 0 (unused)
usbcore 59148 1 [usb-storage usb-ohci]
snd-ali5451 11364 0
snd-ac97-codec 58556 0 [snd-ali5451]
snd-pcm 54344 0 [snd-pcm-oss snd-ali5451 snd-ac97-codec]
snd-timer 13764 0 [snd-pcm]
snd 32772 0 [snd-pcm-oss snd-mixer-oss snd-ali5451 snd-ac97-codec snd-pcm snd-timer]
snd-page-alloc 4712 0 [snd-mixer-oss snd-pcm snd-timer snd]
soundcore 3396 3 [snd]
ds 6548 2
yenta_socket 10436 1
pcmcia_core 39172 0 [ds yenta_socket]
ide-scsi 9392 0
agpgart 45508 0 (unused)

and for the ifconfig
lo Linkencap:local loopback
inet addr:127.0.0.1 Mask 255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 ovveruns:0 frame:0
TX packets:8 errors:0 dropped:0 ovveruns:0 frame:0
collisions:0 txqueuelen:0
RX bytes:688 (688.0 b) TX bytes:688 (688.0 b)
\
AS for my network...I have everything plugged into a Catylst 2900 series switch and i am using a Cisco 2621 as my router... Overkill i know for just a home network but it helped when i was studying for my ccna and i would like to set the linux box to accept dhcp at first and then later on i will look into a static route
 
Old 04-09-2006, 03:34 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Did you run 'netconfig' as root at a console?
 
Old 04-09-2006, 03:36 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The module I think you need doesn't appear to be loaded.

The National Semiconductor Corporation seem to have Linux drivers available on their site here, but you may not need to download and install those. There should be a module called natsemi that you can use.

Right, I'm not at my Slackware machine right now (it's a bit dead ), so I'll try to guide as well as I can. Can you try

$ ls /lib/modules/`uname -r`/kernel/drivers/net | grep natsemi

please? Hopefully this is the right folder. Make sure you use the same type of quotes that I have when you write uname (they're called backticks). Post the output here.
 
Old 04-09-2006, 03:49 PM   #9
CiscoGeek
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 11, Fedora 6, RHEL 3.0
Posts: 18

Original Poster
Rep: Reputation: 0
natsemi.o.gz is what i come up with
 
Old 04-09-2006, 03:51 PM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Ok, now try

# modprobe natsemi.

If nothing appears to happen, that's usually a good sign!

Last edited by Nylex; 04-09-2006 at 03:54 PM.
 
Old 04-09-2006, 03:53 PM   #11
CiscoGeek
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 11, Fedora 6, RHEL 3.0
Posts: 18

Original Poster
Rep: Reputation: 0
nothing happend, i got moved down to the command line again
 
Old 04-09-2006, 03:55 PM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Again, that's usually a good thing . If you do a

$ dmesg | tail

is there anything relating to natsemi?

Edit: actually, you can probably go ahead and just run netconfig. Hopefully cwwilson721 doesn't shout at me! Oops..

Last edited by Nylex; 04-09-2006 at 04:04 PM.
 
Old 04-09-2006, 04:05 PM   #13
CiscoGeek
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 11, Fedora 6, RHEL 3.0
Posts: 18

Original Poster
Rep: Reputation: 0
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: LEXAR Model: JUMPDRIVE SECURE Rev: 1000
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 1010784 512-byte hdwr sectors (518 MB)
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
usb.c: USB disconnect on device 00:02.0-1 address 2
bash-3.00#
is what it gave me
 
Old 04-09-2006, 04:07 PM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Ok, seems related to a flash drive, but never mind. Try running netconfig (as root). The instructions should be quite easy to follow (I hope, I haven't used it in a while!).
 
Old 04-09-2006, 04:10 PM   #15
CiscoGeek
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware 11, Fedora 6, RHEL 3.0
Posts: 18

Original Poster
Rep: Reputation: 0
alright i ran it
 
  


Reply

Tags
netconfig, slackware


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
Internet Connection Setup adds2one Slackware - Installation 3 08-28-2005 12:45 PM
need help on internet connection setup dzan Linux - Networking 2 10-18-2004 04:44 AM
what commands do I use to start and stop my internet connection? babyboss Slackware 2 10-17-2004 01:35 PM
internet connection setup robby737 Linux - Newbie 2 06-26-2004 05:37 PM
Internet Connection Setup lilcap Linux - Networking 1 07-20-2003 06:43 AM


All times are GMT -5. The time now is 02:59 AM.

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