Use the following configuration statements to configure DHCP classification scripts:
- shared sae dhcp-classifier rule name {
- target target ;
- script script ;
- include include ;
- }
- shared sae dhcp-classifier rule name condition name ...
A classification script can contain either a target and a condition or a script. If you do not define a script, the classifier must have both a target and a condition.
To configure DHCP classification scripts:
- user@host# edit shared sae group west-region
dhcp-classifier
- [edit shared sae group west-region dhcp-classifier]
- user@host# edit rule rule-1
- [edit shared sae group east-region dhcp-classifier rule
rule-1]
- user@host# set target target
OR
- [edit shared sae group east-region dhcp-classifier rule
rule-1]
- user@host# set script script
OR
- [edit shared sae group west-region subscriber-classifier
rule rule-2]
- user@host# set include include
Where include identifies a script that has already been created.
If you configure a target, see Syntax for DHCP Classification Targets.
- [edit shared sae group east-region dhcp-classifier rule
rule-1]
- user@host# edit condition name
- [edit shared sae group east-region dhcp-classifier]
- user@host# insert rule rule-5 before rule-4
- [edit shared sae group east-region dhcp-classifier]
- user@host# rename rule rule-2 to dhcp
[edit shared sae group east-region dhcp-classifier rule rule-1]
user@host# show
target cn=default,<-dhcpProfileDN->;
condition {
1;
}
[edit shared sae group west-region dhcp-classifier]
user@host# show
rule rule-1 {
script "# DHCP classification script
#
# The DHCP classification script can use the following fields:
#
# interfaceName - interface where DHCP DISCOVER was received.
# ifAlias - \"ip description\" of interface
# ifDesc - SNMP standard name of interface
# nasPortId
# virtualRouterName - VR where DHCP DISCOVER was received
# macAddress - MAC address of DHCP client
# dhcp - DHCP options
# poolName - DHCP Pool name set by authorization plug-in
# authVirtualRouterName - VR name set by authorization plug-in
# dhcpProfileDN - search base for DHCP Profiles
";
}
rule rule-2 {
target cn=default,<-dhcpProfileDN->;
condition {
1;
}
}
DHCP classification conditions define match criteria that are used to find the DHCP profile. Use the fields in this section to define DHCP classification conditions.
authVirtualRouterName
dhcp
dhcpProfileDN
interfaceName
ifAlias
ifDesc
macAddress
nasPortId
poolName
virtualRouterName