LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   manual setup for dhcp sever using redhat 7.0 for newbie (https://www.linuxquestions.org/questions/linux-networking-3/manual-setup-for-dhcp-sever-using-redhat-7-0-for-newbie-22825/)

Shaun 06-07-2002 04:48 AM

manual setup for dhcp sever using redhat 7.0 for newbie
 
I have two Pentium 1's, coupled together with a hub.
One machine is loaded with redhat 7 server installation and the other dual boot with Redhat 7 / Windows 98.
I now need to configure dhcp server from scratch using command line syntax.
I have been reading the Minihowto's but feel scared as I might damage a working OS.
Could you please guide me were to start.

Thanking you for your Patience

Shaun:newbie:

system 06-07-2002 11:35 AM

You want to setup the redhat server box as the dhcp server, right? How many NIC cards does it have, just one? Use "ifconfig" to make sure that the network card is turned on.

Setting up dhcpd is EXTREMELY easy. Just follow the DHCP mini-howto. Start with section 4 and ignore the rest of it.

First, run "route add -host 255.255.255.255 dev eth0"
Then use vi, the text editor, to add "/sbin/route add -host 255.255.255.255 dev eth0" on the last line of the file /etc/rc.local

Do you know how to use vi at all?

When you run ifconfig, what address does eth0 have? ex: 192.168.1.1
This will probably be the network you will want dhcpd to assign addresses on. Go ahead and edit the /etc/dhcpd.conf file so that it matches the example in 4.3 of the howto. Don't worry about screwing this file up right now. Dhcpd isn't trying to start up yet, so it doesn't matter if the settings are perfect yet.


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