iii
Enabling client offline detection on the DHCP server ······································································· 52
Configuring address pool usage alarming ······················································································ 52
Enabling DHCP logging on the DHCP server ················································································· 53
Display and maintenance commands for DHCP server ···································································· 53
DHCP server configuration examples ··························································································· 54
Example: Configuring static IP address assignment ·································································· 54
Example: Configuring dynamic IP address assignment ······························································ 55
Example: Configuring DHCP user class ················································································· 57
Example: Configuring DHCP user class whitelist ······································································ 59
Example: Configuring primary and secondary subnets ······························································ 60
Example: Customizing DHCP option ····················································································· 61
Troubleshooting DHCP server configuration ·················································································· 63
Failure to obtain a non-conflicting IP address ·········································································· 63
Configuring the DHCP relay agent ····················································· 64
About DHCP relay agent ··········································································································· 64
DHCP relay agent operation ································································································ 64
DHCP relay agent support for Option 82 ················································································· 65
DHCP relay agent tasks at a glance ····························································································· 65
Enabling DHCP ······················································································································· 66
Enabling the DHCP relay agent on an interface ·············································································· 66
Specifying DHCP servers ·········································································································· 66
Specifying DHCP servers on a relay agent ·············································································· 66
Configuring a DHCP address pool on a DHCP relay agent ························································· 67
Specifying the DHCP server selecting algorithm ······································································· 67
Configuring the DHCP relay agent security features ········································································ 69
Enabling the DHCP relay agent to record relay entries ······························································ 69
Enabling periodic refresh of dynamic relay entries ···································································· 69
Enabling DHCP starvation attack protection ············································································ 70
Enabling DHCP server proxy on the DHCP relay agent ····························································· 71
Enabling client offline detection on the DHCP relay agent ·························································· 71
Configuring the DHCP relay agent to release an IP address ······························································ 72
Configuring DHCP relay agent support for Option 82 ······································································· 72
Setting the DSCP value for DHCP packets sent by the DHCP relay agent ············································ 73
Specifying the DHCP relay agent address for the giaddr field ··························································· 73
Manually specifying the DHCP relay agent address for the giaddr field········································· 73
Configuring smart relay to specify the DHCP relay agent address for the giaddr field ······················ 74
Specifying the source IP address for relayed DHCP requests ···························································· 74
Display and maintenance commands for DHCP relay agent ······························································ 75
DHCP relay agent configuration examples ···················································································· 75
Example: Configuring basic DHCP relay agent ········································································ 75
Example: Configuring Option 82 ··························································································· 76
Example: Configuring DHCP server selection ·········································································· 77
Troubleshooting DHCP relay agent configuration ············································································ 78
Failure of DHCP clients to obtain configuration parameters through the DHCP relay agent ··············· 78
Configuring the DHCP client ····························································· 79
About DHCP client ··················································································································· 79
Restrictions and guidelines: DHCP client configuration ····································································· 79
DHCP client tasks at a glance ····································································································· 79
Enabling the DHCP client on an interface ······················································································ 79
Configuring a DHCP client ID for an interface ················································································· 80
Enabling duplicated address detection ·························································································· 80
Setting the DSCP value for DHCP packets sent by the DHCP client ··················································· 81
Display and maintenance commands for DHCP client ······································································ 81
DHCP client configuration examples ···························································································· 81
Example: Configuring DHCP client ························································································ 81
Configuring DHCP snooping ····························································· 84
About DHCP snooping ·············································································································· 84
Application of trusted and untrusted ports ··············································································· 84
DHCP snooping support for Option 82 ··················································································· 85