assign fixed ip address by using circuit-id of dhcp option 82
Shunsuke Otani
otanis555 at gmail.com
Fri Dec 11 04:46:04 UTC 2009
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