Networking Forums

Networking Forums > Computer Networking > Linux Networking > dhcp douts

Reply
 
 
RajaSekhar.Kavuri
Guest
Posts: n/a

 
      04-07-2005, 12:36 PM
hai


when a dhcp client sends a dhcp request and get the dhcp offer
from the server.that offer will be a unicast packet or again a broad
cast packet.please tell me if there is no dhcp server in the network
and still we start the client how much time it will wait.


thanking you
k.rajasekhar
 
Reply With Quote
 
 
 
 
Horst Knobloch
Guest
Posts: n/a

 
      04-07-2005, 06:54 PM
RajaSekhar.Kavuri <(E-Mail Removed)> wrote:

> when a dhcp client sends a dhcp request and get the dhcp offer
> from the server.


If a dhcp request is sent the server answers with
dhcp ack or dhcp nak, not with a dhcp offer. See
state diagram (Fig. 5) in RFC2131.

I assume you mean client sends dhcp discover and server
sends dhcp offer.


> that offer will be a unicast packet or again a broad
> cast packet.


It depends on the contents of the received dhcp discover
message and whether the message was relayed via a bootp
relay. See RFC 2131 4.1 Constructing and sending DHCP
messages:

..-----
| ...
|
| If the 'giaddr'
| field is zero and the 'ciaddr' field is nonzero, then the server
| unicasts DHCPOFFER and DHCPACK messages to the address in 'ciaddr'.
| If 'giaddr' is zero and 'ciaddr' is zero, and the broadcast bit is
| set, then the server broadcasts DHCPOFFER and DHCPACK messages to
| 0xffffffff. If the broadcast bit is not set and 'giaddr' is zero and
| 'ciaddr' is zero, then the server unicasts DHCPOFFER and DHCPACK
| messages to the client's hardware address and 'yiaddr' address. In
| all cases, when 'giaddr' is zero, the server broadcasts any DHCPNAK
| messages to 0xffffffff.
|
| ...
`-----

Note that a giaddr of nonzero indicates that the client
message was relayed via a (bootp) relay agent.


Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
moved dhcp from w2k to w2k3-clients unable to connect to dhcp server Tony Villani Windows Networking 8 04-17-2008 12:09 PM
How DHCP decide which scope to give thourgh dhcp relay agent? cs Windows Networking 3 01-04-2007 03:48 AM
DHCP Option : Release DHCP Lease on Shutdown (1) doesn't work Antoine Golio Windows Networking 0 12-06-2005 08:10 AM
DHCP Option : Release DHCP Lease on Shutdown (1) doesn't work Antoine Golio Windows Networking 2 11-30-2005 08:49 AM
Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update Mads Ravn Linux Networking 0 06-29-2004 05:27 PM



1 2 3 4 5 6 7 8 9 10 11