Click to See Complete Forum and Search --> : DHCP Newbe Problem
Zefiro
03-20-2002, 12:15 AM
Hello, I am newbe with linux and i am having problems with the dhcp client with red hat 7.1, I cant take the dinamic ip from the server. I setup the dhcp protocol at boot, but the client cant find the ip. I dont know what is happened. What can I do in order to take the ip of the client. I am using pump as dhcp client. Thanks for yours answers. :rolleyes:
SpinyNorman
03-20-2002, 02:32 AM
What do the contents of your /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0 files look like? Post their contents, and also run the ifconfig command and post its output.
Zefiro
03-20-2002, 03:56 AM
Originally posted by SpinyNorman:
<STRONG>What do the contents of your /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0 files look like? Post their contents, and also run the ifconfig command and post its output.</STRONG>
OK my /etc/sysconfig/network is
*********************************
NETWORKING=yes
HOSTNAME=NODE1
GATEWAYDEV=
CATEWAY=
AND
/etc/sysconfig/network-scripts/ifcfg-eth0
***********************************
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
AND the ifconfig
***********************************
eth0 link encap: Ethernet HWaddr:00:A0 :D2:AF:12 :DE
UP BROADCAST RUNNING MTU:1500 METRIC:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 carrier:0
COLLISIONS:0 TX QUEUETEN:100 INTERRUPT:10
BASE ADDRESS:0X5000
***************************************
That the informatión. I have not a DNS Server, is it necesary for dhcp clients ??????
Thanks for your help
:rolleyes:
Your network card seems O.K., but as you said, you aren't getting your network settings. Can you give us more information concerning your network setup:
- how are you connecting (through a router, direct to cable modem/DSL modem,etc.)?
- where is your DHCP server (is it on your network,do you have a cable/DSL router acting as the server, or is it your ISP's)?
As far as DNS servers go, that is part of the information that the DHCP server should feed you.
Zefiro
03-20-2002, 02:19 PM
Originally posted by DMR:
<STRONG>Your network card seems O.K., but as you said, you aren't getting your network settings. Can you give us more information concerning your network setup:
- how are you connecting (through a router, direct to cable modem/DSL modem,etc.)?
- where is your DHCP server (is it on your network,do you have a cable/DSL router acting as the server, or is it your ISP's)?
As far as DNS servers go, that is part of the information that the DHCP server should feed you.</STRONG>
ok :p
I have only a little LAN with a server, one node and a switch, and thats all :rolleyes:
This is the information in dhcpd.conf
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
subnet 192.168.1.0 netmask 255.255.255.0
{
range 192.168.1.1 192.168.1.124;
}
host NODE1
{
hardware 00:60:97:A1:EF:E0;
fixed-address 192.168.1.2;
}
Thanks for yours answers :D
jumpedintothefire
03-20-2002, 08:21 PM
Ok, I'm a little confused.....
Your having a problem with pump (dhcp client)
/etc/dhcpd.conf is for a server....
Is the client trying to grab an ip from your server or the isp's?? Who is your isp?
Zefiro
03-20-2002, 09:05 PM
Originally posted by jumpedintothefire:
<STRONG>Ok, I'm a little confused.....
Your having a problem with pump (dhcp client)
/etc/dhcpd.conf is for a server....
Is the client trying to grab an ip from your server or the isp's?? Who is your isp?</STRONG>
The problem is with the client. The client dont grab an ip from my server.
OK, I know that the dhcpd.conf is a dhcp server file, I put the file in my message because I dont know if the dhcp server have a problem too.
I think the server is correctly because I dont have any problem with the deamons, but I want to be sure.
About the last question. I am not using a gui tool, I am modifying
the configuration files.
Sorry for my English y don´t speak very well, I am from México.
Thanks for your help :)
jumpedintothefire
03-21-2002, 09:47 AM
Your options need for the subnet need to be within the subnet statement.
try:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.1 192.168.1.124;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
}
host NODE1 {
hardware 00:60:97:A1:EF:E0;
fixed-address 192.168.1.2;
}
hope it helps...
cowanrl
03-30-2002, 10:10 AM
I don't know if you've solved your problem yet but it looks to me like the trouble is with your network file and the settings in your dhcpd.conf file.
In your network file, you're setting your hostname to NODE1. In dhcpd.conf your assigning a fixed IP address for NODE1 but the hardware address in dhcpd.conf does not match the hardware address displayed by the ifconfig command.
Take the HOSTNAME setting out of your network file. In the dhcpd.conf file, match the hardware address to what is displayed with the ifconfig command.
Hope this helps.
Zefiro
03-30-2002, 01:45 PM
Originally posted by cowanrl:
<STRONG>I don't know if you've solved your problem yet but it looks to me like the trouble is with your network file and the settings in your dhcpd.conf file.
In your network file, you're setting your hostname to NODE1. In dhcpd.conf your assigning a fixed IP address for NODE1 but the hardware address in dhcpd.conf does not match the hardware address displayed by the ifconfig command.
Take the HOSTNAME setting out of your network file. In the dhcpd.conf file, match the hardware address to what is displayed with the ifconfig command.
Hope this helps.</STRONG>
I still having problems, let me check your recommendations. Thanks and Regards :rolleyes:
jumpedintothefire
03-30-2002, 02:37 PM
Darn, I missed that. Good catch, cowanrl.
The mac address from the client card must match what is in /etc/dhcpd.conf.