Solved

configuring dhcp server

Posted on 2008-10-27
1
641 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 62

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

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

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

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

690 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