PXEClient, dhcp option 60, what is it for? Can I use PXE without it ?

AID: 2978
  • Status: Published

8650 points

  • Byvivigatt
  • TypeTips/Tricks
  • Posted on2010-04-27 at 14:51:51
Ever wondered why you had to create a custom DHCP option (dhcp opt 60) with "PXEClient" in it in order to use PXE?
Well, you don't!

You have to create this dhcp option only if:
- You have a PXE Service that binds on UDP 4011 and that runs on the same host that also runs a dhcp service (bound on UDP 67)
- You need this PXE Service to provide the "network boot program" details to your PXE clients.
These details are actually: TFTP server IP address (DHCP option 66) and network boot program file name (DHCP option 67)

If you know these details, you can perfectly make the economy of a PXE Service. Just fill these dhcp options (66 and 67) with the needed data.

For instance, if your TFTP server runs on the host with IP address 192.168.1.10, and if your network boot program file name is pxelinux.0, just configure your dhcp server so that its option 66 is "192.168.1.10" and option 67 is "pxelinux.0".
No dhcp option 60, no "PXEClient".
Note that your DHCP server can also run on the same host (192.168.1.10 in this example)

Also, do not set this dhcp option 60 if you have a PXE Service running on an host that does not run any dhcp or bootp service.

The DHCP option 60, when set to "PXEClient" is used only to instruct the PXE clients to try to use a PXE Service bound on UDP port 4011. Actually, if there is a bootp or dhcp service bound on UDP port 67 of an host (usually called a server), a PXE service cannot bind on that port on that host. Since the PXE Service uses BOOTP/DHCP packets to send the options 66 and 67 to the clients, it needs to be able to bind to the associated port (bootps) or to an alternated port (4011) that the clients know they must use as the alternate port. And to instruct the clients to use this alternate port, you have to set dhcp option 60 to "PXEClient".
Asked On
2010-04-27 at 14:51:51ID2978
Tags

PXE

,

RIS

,

WDS

,

DHCP

,

option 60

Topic

Miscellaneous Networking

Views
6690

Comments

Author Comment

by: vivigatt on 2012-02-03 at 06:16:47ID: 41737

One side effect of having a PXE service (whether running on the same host as the DHCP service, thus requiring Dhcp Opt 60 to be set to PXEClient or on another host) is that you should NOT set DHCP opt 66 and 67.
When using a PXEService, dhcp options 66 and 67 are sent to the PXE clients by the PXE service itself, not by DHCP service.

Author Comment

by: vivigatt on 2012-05-11 at 05:33:10ID: 53248

Of course, if your clients and servers are not on the same subnets, you need to set some kind of dhcp-relay (aka ip-helper or dhcp-forwarder) so that the dhcp broadcasts sent by your PXE clients are forwarded to the dhcp server on another subnet.
If your PXE server is not your dhcp server and is not in the same subnet as the PXE clients, then, in addition not to have any dhcp option 60 set to "PXEClient", you also must add the IP address of the PXE server to the list of IP addresses that get the dhcp broadcasts. In the Cisco world, it means adding the address of the PXE server to  "ip-helper" addresses on your routers or (Layer 3) switches

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Misc Networking Experts

  1. giltjr

    142,949

    Master

    0 points yesterday

    Profile
    Rank: Genius
  2. hanccocka

    57,868

    Master

    2,800 points yesterday

    Profile
    Rank: Genius
  3. kevinhsieh

    53,840

    Master

    0 points yesterday

    Profile
    Rank: Genius
  4. keith_alabaster

    49,846

    0 points yesterday

    Profile
    Rank: Genius
  5. Darr247

    46,924

    0 points yesterday

    Profile
    Rank: Genius
  6. pergr

    41,116

    0 points yesterday

    Profile
    Rank: Master
  7. donjohnston

    36,633

    2,000 points yesterday

    Profile
    Rank: Genius
  8. rigan123

    34,141

    0 points yesterday

    Profile
    Rank: Guru
  9. nazsky

    32,574

    0 points yesterday

    Profile
    Rank: Wizard
  10. erniebeek

    31,778

    10 points yesterday

    Profile
    Rank: Genius
  11. ve3ofa

    30,145

    664 points yesterday

    Profile
    Rank: Genius
  12. thinkpads_user

    27,941

    0 points yesterday

    Profile
    Rank: Genius
  13. mattvmotas

    26,898

    0 points yesterday

    Profile
    Rank: Sage
  14. eeRoot

    26,578

    0 points yesterday

    Profile
    Rank: Wizard
  15. fmarshall

    26,541

    0 points yesterday

    Profile
    Rank: Wizard
  16. craigbeck

    26,240

    0 points yesterday

    Profile
    Rank: Sage
  17. TimotiSt

    25,004

    2,000 points yesterday

    Profile
    Rank: Master
  18. fgasimzade

    23,834

    0 points yesterday

    Profile
    Rank: Wizard
  19. RobWill

    23,300

    0 points yesterday

    Profile
    Rank: Savant
  20. arnold

    22,913

    0 points yesterday

    Profile
    Rank: Genius
  21. leew

    21,174

    0 points yesterday

    Profile
    Rank: Savant
  22. Netty

    20,562

    0 points yesterday

    Profile
    Rank: Guru
  23. chakko

    20,000

    0 points yesterday

    Profile
    Rank: Genius
  24. Soulja

    19,800

    0 points yesterday

    Profile
    Rank: Genius
  25. DaveBaldwin

    17,908

    0 points yesterday

    Profile
    Rank: Genius

Hall Of Fame