assign fixed ip address by using circuit-id of dhcp option 82
Glenn Satchell
Glenn.Satchell at uniq.com.au
Fri Dec 11 12:11:06 UTC 2009
Hi
I bet "312D31303232" is not an ascii string, but a series of
hexadecimal bytes. To represent that use colons between the digits, eg
match if option agent.circuit-id = 31:2D:31:30:32:32;
or converting those hex digits to ascii
match if option agent.circuit-id = "1-1022";
regards,
-glenn
>From: "Shunsuke Otani" <otanis555 at gmail.com>
>To: <dhcp-users at lists.isc.org>
>Subject: assign fixed ip address by using circuit-id of dhcp option 82
>Date: Fri, 11 Dec 2009 13:46:04 +0900
>
>Hi,
>I am trying to assign fixed ip addres to specific port by using circuit-id
>of dhcp option 82 on CentOS 4.5.
>
>Example:
>I'd like to assing ip address(192.168.0.101) to client of port 22 on
>ExtremeSummit.
>
>vi /etc/dhcpd.conf
>--------------------------------------------
>stash-agent-options true;
>class "port22" {
> match if option agent.circuit-id="312D31303232";
>}
>subnet 192.168.0.0 netmask 255.255.255.0 {
> option broadcast-address 192.168.0.255;
> option subnet-mask 255.255.255.0;
> option routers 192.168.0.1;
> pool {
> range 192.168.0.101;
> allow members of "port22";
> }
>}
>--------------------------------------------
>
>That's what I was trying to do. But It didn't match and dhcp_server didn't
>send any offer packets.
>The "312D31303232" is a circuit-id in option 82 captured by Wireshark.
>Any ideas?
>
>Regards
>
>Shunsuke Otanis
More information about the dhcp-users
mailing list