RE: Simple DHCP server question

From: Kulcsár
Date: Tue Oct 18 2005 - 04:11:11 GMT-3


Hi,

The IOS 12.4 command reference clearly states that using the "no service dhcp" disables the DHCP server and relay agent features.
http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cr/hiad_r/adr_s1h.htm#wp1139885

Which reference did you read?

Best regards,
Andras Kulcsar

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of Javier Tomi
Sent: Tuesday, October 18, 2005 8:23 AM
To: Cisco certification
Subject: Simple DHCP server question

Hi all,

Just a simple question regarding DHCP. On DocCD it is stated that
"service dhcp" is an optional step in order to configure the router as a
DHCP server. In fact that command is suppose to enable dhcp relay
function on the router. Nevertheless, I have notice that according to
"show ip sockets" command the router seems not to be listening to port
67 until "service dhcp" is issued.

This is the output from the router...

RSCbD#
RSCbD#sri service dhcp
no service dhcp
RSCbD#
RSCbD#show ip sockets
Proto Remote Port Local Port In Out Stat TTY OutputIF
 17 --listen-- 192.168.32.31 1985 0 0 1 0
 17 172.31.1.7 162 192.168.32.31 58617 0 0 0 0
 17 172.31.2.7 162 192.168.32.31 51358 0 0 0 0
 17 --listen-- 192.168.32.31 123 0 0 1 0
 17 --listen-- 192.168.32.31 520 0 0 1 0
 17 --listen-- 192.168.32.31 161 0 0 1 0
 17 --listen-- 192.168.32.31 162 0 0 11 0
 17 --listen-- 192.168.32.31 55835 0 0 11 0
 17 --listen-- 224.0.1.40 496 0 0 61 1
RSCbD#
RSCbD#
RSCbD#conf t
Enter configuration commands, one per line. End with CNTL/Z. RSCbD(config)#service dhcp RSCbD(config)#exit RSCbD# RSCbD#show ip sockets
Proto Remote Port Local Port In Out Stat TTY OutputIF
 17 --listen-- 192.168.32.31 1985 0 0 1 0
 17 172.31.1.7 162 192.168.32.31 58617 0 0 0 0
 17 172.31.2.7 162 192.168.32.31 51358 0 0 0 0
 17 --listen-- 192.168.32.31 123 0 0 1 0
 17 --listen-- 192.168.32.31 520 0 0 1 0
 17 --listen-- 192.168.32.31 161 0 0 1 0
 17 --listen-- 192.168.32.31 162 0 0 11 0
 17 --listen-- 192.168.32.31 55835 0 0 11 0
 17 --listen-- 224.0.1.40 496 0 0 61 1
 17 0.0.0.0 0 192.168.32.31 67 0 0 2211 0
RSCbD#

How does the router receives the DHCP request if there is no socket
opened on port 67?...

Thank you in advance....

Javi



This archive was generated by hypermail 2.1.4 : Sun Nov 06 2005 - 22:00:51 GMT-3