Solved

configuring dhcp server

Posted on 2008-10-27
1
636 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 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
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…

776 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