LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-06-2004, 03:37 AM   #1
orangeh
LQ Newbie
 
Registered: Aug 2004
Distribution: Deli Linux
Posts: 18

Rep: Reputation: 0
Help Setting up internet through commandline!


Hello,

I have recently installed linux on an old computer. I had to do some research to find something that would run and settled on deli-linux so I have a GUI but I dont see a control panel of any sorts so I'm figuring that I will have to learn how to use linux through commandline (sounds like fun! this is just a box im using to teach myself stuff anyhow)

Anyways, I am trying to setup this box as a web surfing / mp3 box and I cannot get connected to the internet. I have my box plugged into a d-link router which is running DHCP. I have my windows box plugged into the router as well and, as you can tell by this post, its working fine.

I have tried to research this topic but everything I find is redhat this or suse that and unfortunately I dont have a GUI with any sort of control panel that I can find. I have ran netconfig from the commandline but were not sure of what I should set my hostname or domain as ( I filled both in as my router IP ) and i set it for DHCP but no luck. It doesnt connect and I cant even ping my router. Please help me get this going or direct me to a good tutorial for commandline commands as everything I do I will be doing from the commandline

as a linux newbie this is probably the hardest way to learn :/ Thanks for any help
 
Old 08-06-2004, 12:48 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Hostname can be whatever you choose. Use hostname command to change it (must be root.)
hostname spongebob

Make sure you have correct module loaded for your NIC using lsmod.
lsmod

Use ifconfig to setup and start/stop your nic.
ifconfig eth0 down
ifconfig eth0 up
ifconfig

Use route to check that the nic can reach the router, and if necessary you can add default route.
route

Finally put your DNS nameserver in /etc/resolv.conf file.
nameserver 255.224.247.235
nameserver 255.224.247.236
 
Old 08-06-2004, 07:22 PM   #3
orangeh
LQ Newbie
 
Registered: Aug 2004
Distribution: Deli Linux
Posts: 18

Original Poster
Rep: Reputation: 0
thanks for the response. Unfortunately its a little over my head I remember when i ran netconfig it said a i have a nic that uses tulip.o

anyhow i did lsmod and it shows tulip in there and says its used by "(unused)"

i assume ifconfig eth0 down stops your nic and up starts it. I did "ifconfig eth0 up" and it said SIOCSIFFLAGS: Resources temporarily unavailable

i did route and it did a loopback so i tried "route 192.168.0.1" which is my router ip and it didnt work

I'm sorry but I am so used to windows and now I have to do things by typing instead of clicking! I'm up for the challenge but I cant wrap my head around it or at least havent yet.

Also why would you set DNS servers? All of my stuff including DNS is assigned through DHCP from my ISP

Thanks again for reply!
 
Old 08-06-2004, 09:29 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Well I don't know anything about Deli Linux but you should be able to get your network up by using just a few commands.

Lets try starting from scratch and adding an IP address then a route and then ping the router:

ifconfig eth0 down

ifconfig eth0 192.168.0.2

route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0

ping -c2 192.168.0.1

Try to include as much info as you can when you reply, such as the output from commands and any errors you get.
 
Old 08-06-2004, 10:07 PM   #5
orangeh
LQ Newbie
 
Registered: Aug 2004
Distribution: Deli Linux
Posts: 18

Original Poster
Rep: Reputation: 0
I really appreciate the help. I did "ifconfig eth0 192.168.0.2" and it gave me an error message that say "SIOCSIFFLAGS: Resource temporarily unavailable"



thanks for any help you can offer i really dont know what to do lol
 
Old 08-06-2004, 10:17 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
What does '/sbin/ifconfig -a' (no quotes) say?
 
Old 08-06-2004, 11:21 PM   #7
orangeh
LQ Newbie
 
Registered: Aug 2004
Distribution: Deli Linux
Posts: 18

Original Poster
Rep: Reputation: 0
ok im typing this all. Hope its helpful. This is what i get when i type "/sbin/ifconfig -a"

dummy:

link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:00 frame:0
TX packets:0 errors:0 dropped:0 overruns:00 frame:0
collisions:0 txqueuelen:0

eth0:

Link encap:Ethernet HWaddr 00:C0:F0:96:3E:F3
inet addr: 192.168.0.2 Bcast:192.168.0.255 Mask 255.255.255.0
BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:00 frame:0
TX packets:0 errors:0 dropped:0 overruns:00 frame:0
collisions:0 txqueuelen:0
Base address:0xfc00

lo:

Link encap:Local Loopback
inet addr:127.0.0.1 Mask: 255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric: 1
RX packets:18 errors:0 dropped:0 overruns:00 frame:0
TX packets:18 errors:0 dropped:0 overruns:00 frame:0
collisions:0 txqueuelen:0
 
Old 08-07-2004, 12:53 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
googling I found this quote (http://www.scyld.com/pipermail/tulip...ry/001767.html):
jlhagen@collins.rockwell.com <jlhagen@collins.rockwell.com> wrote:
>
> [root@cutlass /dev]# /sbin/ifconfig eth0 192.168.1.3 netmask 255.255.255.0 up
> SIOCSIFFLAGS: Resource temporarily unavailable
> SIOCSIFFLAGS: Resource temporarily unavailable

The only place I see in the Tulip driver that can return EAGAIN (the
error code for "Resource temporarily unavailable") is when the IRQ is
being allocated. In other words, the IRQ for the network card is being
used by some other bit of hardware.


Last edited by jschiwal; 08-07-2004 at 12:54 AM.
 
Old 08-07-2004, 02:44 AM   #9
orangeh
LQ Newbie
 
Registered: Aug 2004
Distribution: Deli Linux
Posts: 18

Original Poster
Rep: Reputation: 0
oh no i never understood IRQ things It was hard enough in windows and now from the commandline its impossible!

If i remove all my cards in my expansion slots and leave just the NIC will this fix it? And also i saw a reference to "modules" is this the linux equivalent of "drivers"? Again, thanks for any help. Once i get this baby on the internet it should be a lot easier to teach myself things
 
Old 08-07-2004, 10:08 PM   #10
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Quote:
If i remove all my cards in my expansion slots and leave just the NIC will this fix it?
Maybe, maybe not. Sometimes all you have to do is move the card to another slot.
Quote:
And also i saw a reference to "modules" is this the linux equivalent of "drivers"?
Yes, that is correct.
 
Old 08-07-2004, 11:00 PM   #11
orangeh
LQ Newbie
 
Registered: Aug 2004
Distribution: Deli Linux
Posts: 18

Original Poster
Rep: Reputation: 0
I've tried removing all cards except sound card and moving my network card to a different pci slot but still get errors. I have to have sound working as well so thats why I left it in. Does anyone have any ideas how to edit IRQ settings through commandline? I figure its going to be hard so I'm looking for guides but in the meantime anyone have some light they can shed on the topic? Perhaps a link to some IRQ through commandline information. Thanks
 
  


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
Commandline to change firewall setting? Arodef Fedora 2 01-06-2005 04:38 PM
Help setting up Internet doody Linux - Newbie 14 09-01-2004 02:02 PM
Setting up internet smoko Linux - Newbie 10 04-18-2004 02:13 AM
setting up internet utsav_verma Linux - Newbie 7 04-13-2004 01:31 AM
Help with setting up internet Ekim Gram Linux - Newbie 1 05-08-2003 07:49 PM

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

All times are GMT -5. The time now is 03:49 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