1833861 Members
2579 Online
110063 Solutions
New Discussion

Re: DHCP config question

 

DHCP config question

Hello,How can I configure a DHCP client? I tried to set the DHCP_ENABLE variable to 1, set IP_ADDRESS to blank, set SUBNET_MASK to blank, ROUTE_GATEWAY to blank. What else do I need to get an IP from the DHCP server??

Thanks in advance
Afrikaaner
6 REPLIES 6
S.K. Chan
Honored Contributor

Re: DHCP config question

This is how I got one of my machine to be a DHCP client. (/etc/rc.config.d/netconf)

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]=""
SUBNET_MASK[0]="255.255.255.255"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=1

YOu'll have to shutdown -r your system for these values to take effect.
Ravi_8
Honored Contributor

Re: DHCP config question

Hi,

after doing all these exercises
#set_parms initial

will take u through, when it asked for to enable DHCP say yes
never give up

Re: DHCP config question

Hi all,
I tried to set the values as you told me, but after reboot it fails in LAN interfaces setting step. In the other hand, if I try set_parms initial, I don't pass through DHCP config question.
Afrikaaner
ASSIST
Frequent Advisor

Re: DHCP config question

see man page from dhcptools (1m) for troubleshooting

S.K. Chan
Honored Contributor

Re: DHCP config question

What's your DHCP server ? And just to be sure is your router configured to relay any DHCP broadcasts across your network ?

Re: DHCP config question

Hi,
I don't know which kind of server it is, it is a corporate server, and it broadcasts IPs to any PC that is connected to the LAN. The quizz of the question is that our IT service "don't allow" to have UNIX machines at the desks, but we need it for a project....so...I cannot ask support to our IT people ;)
Afrikaaner