[Solved]RE: assign fixed ip address by using circuit-id of dhcp option 82

Shunsuke Otani otanis555 at gmail.com
Sun Dec 13 23:47:09 UTC 2009


Hi,

I configured like below then It finely worked.

	match if option agent.circuit-id = "1-1022";

thank you for answering basic question like that.

regards


> -----Original Message-----
> From: dhcp-users-bounces at lists.isc.org 
> [mailto:dhcp-users-bounces at lists.isc.org] On Behalf Of Glenn Satchell
> Sent: Friday, December 11, 2009 9:11 PM
> To: dhcp-users at lists.isc.org
> Subject: Re: assign fixed ip address by using circuit-id of 
> dhcp option 82
> 
> 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
> 
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
> 




More information about the dhcp-users mailing list