Solved

configuring dhcp server

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

733 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