[prev in list] [next in list] [prev in thread] [next in thread]
List: dhcp-users
Subject: RE: Assign static IP by Option 82 agent.remote-id
From: "Shunsuke Otani" <otanis555 () gmail ! com>
Date: 2009-12-23 4:39:34
Message-ID: 821D03A4240743998E595621345B5163 () otanis
[Download RAW message or body]
hi
When I configured as below, it worked well.
stash-agent-options true;
class "01" { match if option agent.remote-id=56:50:31:31:31:32:32:32;}
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 "01"; }
}
Probably, the following may also works I think.
class "01" { match if option agent.remote-id="VP111222";}
> -----Original Message-----
> From: dhcp-users-bounces+otanis555=gmail.com@lists.isc.org
> [mailto:dhcp-users-bounces+otanis555=gmail.com@lists.isc.org]
> On Behalf Of Billy Ng
> Sent: Wednesday, December 23, 2009 12:49 PM
> To: dhcp-users@isc.org
> Subject: Assign static IP by Option 82 agent.remote-id
>
> Dear All,
>
> I'd like to assign a static IP address to the client by the
> agent.remote-id field "VP111222" as follow:
>
> lease 192.168.172.23 {
> starts 3 2009/12/23 03:40:01;
> ends 3 2009/12/23 04:10:01;
> tstp 3 2009/12/23 04:25:01;
> tsfp 3 2009/12/23 04:10:00;
> cltt 3 2009/12/23 03:40:01;
> binding state active;
> next binding state expired;
> billing subclass "AGENT_ID" "VP111222";
> hardware ethernet 00:18:ba:33:dc:9a;
> uid "\000cisco-0018.ba33.dc9a-Fa0";
> option agent.circuit-id "JDNS504|99411010|5/2/6:2002.*";
> option agent.remote-id "VP111222";
> option agent.unknown-9 0:0:19:7f:a:5:8:56:50:32:32:32:31:31:31;
> client-hostname "C1811-R";
> }
>
> Would you please kindly recommend how to configure the class
> match with the agent.remote-id = "VP111222" (in ascii format)
> in the dhcpd.conf? Thanks a lot.
>
>
> Best Regards,
> Billy
>
>
>
>
>
> ________________________________
>
> Yahoo!香港提供網上安全攻 裕棠闳绾畏拦 黑客!了解更多
<http://hk.promo.yahoo.com/security/>
>
_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic