LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   DHCP setup (https://www.linuxquestions.org/questions/slackware-14/dhcp-setup-380638/)

Disqualifier 11-06-2005 09:13 PM

DHCP setup
 
First off when Im doing this at school its statically so im quite confused on setting up dhcp, which im trying to set up on my home box. When I do netconfig and setup the internet is the first time I run into confusion. It is when it asks for a dhcp hostname. Im not sure If I have one Ive googled it Dhcp hostname for adelphia and linksys and havnt found anything. Im not sure. But when its all finished I do route and nothing comes up. Also if i do ifconfig the consol stops working and I have to open up a new shell. Also I looked in the dhcpd file and it just had a little bit about it being a config file all # out. Im figuring something is supposed to be in there heh :p.

Much thanks for any suggestions.

detpenguin 11-06-2005 09:40 PM

the hostname can be anything you want...such as "Disqualifier"...then it will ask for the domain name...this can be "Disqualifier.org" or anything you want to make it...the next box will ask if you want to use a DHCP server...say yeah...then it will ask about the domain hostname...you *probably* don't have to worry about that, so leave it blank...the next will offer you to confirm the setup...if it looks good to you, say yeah...
there is a way to start it without rebooting, but i always reboot, and the dhcp sets up during reboot...

Disqualifier 11-06-2005 09:43 PM

Quote:

Originally posted by detpenguin
the hostname can be anything you want...such as "Disqualifier"...then it will ask for the domain name...this can be "Disqualifier.org" or anything you want to make it...the next box will ask if you want to use a DHCP server...say yeah...then it will ask about the domain hostname...you *probably* don't have to worry about that, so leave it blank...the next will offer you to confirm the setup...if it looks good to you, say yeah...
there is a way to start it without rebooting, but i always reboot, and the dhcp sets up during reboot...

Im sorry I must have misphrased it or something. I know about the first two parts . The part where you said i probably dont have one i did leave blank. And I have tried rebooting after setting it up. Doesnt work tho, Ive basicly tried exactly what you said the first time becuase logically it made sense to me to do that.

detpenguin 11-06-2005 10:00 PM

maybe eth0 isn't coming up? in a terminal, as root, try this:

ifconfig eth0 up

and see if that doesn't bring it up?

Disqualifier 11-06-2005 10:07 PM

Quote:

Originally posted by detpenguin
maybe eth0 isn't coming up? in a terminal, as root, try this:

ifconfig eth0 up

and see if that doesn't bring it up?

It said

Unknow interface : no such device.

Lols i guess that could be a problem.

How would i go about fixing that?

detpenguin 11-06-2005 10:12 PM

wow...not sure. i've used up my ideas, lol...but someone here will help you out and get you going...sorry i can't help more :(

edit...

what do you get when you type, as root:

ifconfig

Disqualifier 11-06-2005 10:15 PM

It just goes down a line and doesn't do anything. I have to open a new shell in order to do anything it kinda just freezes up.

egag 11-06-2005 10:25 PM

check with " lspci " what kind of eth. chip you've got
( or post the output here )

i guess you need to load the kernel-module ( driver ) for your network chip.
you can do that with " modprobe < modulename >

btw.: use " lsmod to see if your driver is currently loaded.
use " lsmod -l " to get a ( looong ) list of available modules.

egag

Disqualifier 11-06-2005 10:39 PM

at the bottom of lspci it had ethernet controller : rEAltek semiconducter ltd rtl08139/8139c/8139c+

and when i did modprobe 8139too it worked. and it was under lsmod before doing that, but still no network is found.

egag 11-07-2005 06:54 AM

ok, the module is loaded.
then check with " ls -l /etc/rc.d/rc.inet1 " if that script is executable.
( if not, make it executable with "chmod +x ... ")

then run it like " /etc/rc.d/rc.inet1 start " and check with " ifconfig " if the interface is up.

egag

Disqualifier 11-07-2005 07:04 AM

Quote:

Originally posted by egag
ok, the module is loaded.
then check with " ls -l /etc/rc.d/rc.inet1 " if that script is executable.
( if not, make it executable with "chmod +x ... ")

then run it like " /etc/rc.d/rc.inet1 start " and check with " ifconfig " if the interface is up.

egag

Hmmm maybe it isnt exectutable. I know ive tried doing while in the /etc/rc.d location./rc.inet1 and nothing happens (once again it goes down one line and does nothing). Ill check when i get home.

Thanks.


All times are GMT -5. The time now is 01:24 PM.