Solved

configuring dhcp server

Posted on 2008-10-27
1
633 Views
Last Modified: 2013-12-23
i want to configure my dhcpd server on my linux machine with option 82. The relay agent is a cisco switch 2950 with dhcp snooping enabled with option 82 . I want to map the host to the port given by relay agent with option 82. I configured my server only to log changes, but i dont know the configuration for mapping the host to port:
in dhcpd.conf
if exists agent.circuit-id
{
        log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address), " is connected to interface ",
        binary-to-ascii (10, 8, "/", suffix ( option agent.circuit-id, 2)), " (add 1 to port number!), VLAN ",
        binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2)),  " on switch ",
        binary-to-ascii(16, 8, ":", substring( option agent.remote-id, 2, 6))));

        log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address),
        " raw option-82 info is CID: ", binary-to-ascii (10, 8, ".", option agent.circuit-id), " AID: ",
        binary-to-ascii(16, 8, ".", option agent.remote-id)));

}


tnx
0
Comment
Question by:cami_rus
1 Comment
 
LVL 61

Accepted Solution

by:
gheist earned 250 total points
ID: 22822831
Should be similar to this:

DHCP based autodiscovery

    If you are running a DHCP server on your network anyway, you might want to use this approach; all you have to do is to add the WPAD option (numeric 252 or hex fc) as a string containing the URL to the PAC script.

    To do so with older versions of ISC dhcpd, add this to /etc/dhcpd.conf, either globally or just for the subnets you want to enable WPAD for:

    option option-252 "http://example.com/path/to/proxyconfig.pac";

    Or, for newer ISC dhcpd versions, add this globally:

    option wpad code 252 = text;

    and this either globally or for the WPAD subnets:

    option wpad "http://example.com/path/to/proxyconfig.pac";

    For other DHCP servers, please consult the reference manual on how to add an option by number if WPAD support is not built-in.

stolen at: http://l10n.kde.org/docs/admin/konqueror.html

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now