starts-with (DHCP Relay Agent Option)
Syntax
equals { ascii name { drop drop; forward-only forward-only; local-server-group local-server-group; } hexadecimal name { drop drop; forward-only forward-only; local-server-group local-server-group; } }
Hierarchy Level
[edit bridge-domains name forwarding-options dhcp-relay group name relay-option], [edit bridge-domains name forwarding-options dhcp-relay group name relay-option option-60], [edit bridge-domains name forwarding-options dhcp-relay group name relay-option option-77], [edit bridge-domains name forwarding-options dhcp-relay relay-option], [edit bridge-domains name forwarding-options dhcp-relay relay-option option-60], [edit bridge-domains name forwarding-options dhcp-relay relay-option option-77], [edit forwarding-options dhcp-relay group name relay-option], [edit forwarding-options dhcp-relay group name relay-option option-60], [edit forwarding-options dhcp-relay group name relay-option option-77], [edit forwarding-options dhcp-relay relay-option], [edit forwarding-options dhcp-relay relay-option option-60], [edit forwarding-options dhcp-relay relay-option option-77], [edit logical-systems name bridge-domains name forwarding-options dhcp-relay group name relay-option], [edit logical-systems name bridge-domains name forwarding-options dhcp-relay group name relay-option option-60], [edit logical-systems name bridge-domains name forwarding-options dhcp-relay group name relay-option option-77], [edit logical-systems name bridge-domains name forwarding-options dhcp-relay relay-option], [edit logical-systems name bridge-domains name forwarding-options dhcp-relay relay-option option-60], [edit logical-systems name bridge-domains name forwarding-options dhcp-relay relay-option option-77], [edit logical-systems name forwarding-options dhcp-relay group name relay-option], [edit logical-systems name forwarding-options dhcp-relay group name relay-option option-60], [edit logical-systems name forwarding-options dhcp-relay group name relay-option option-77], [edit logical-systems name forwarding-options dhcp-relay relay-option], [edit logical-systems name forwarding-options dhcp-relay relay-option option-60], [edit logical-systems name forwarding-options dhcp-relay relay-option option-77], [edit logical-systems name routing-instances name bridge-domains name forwarding-options dhcp-relay group name relay-option], [edit logical-systems name routing-instances name bridge-domains name forwarding-options dhcp-relay group name relay-option option-60], [edit logical-systems name routing-instances name bridge-domains name forwarding-options dhcp-relay group name relay-option option-77], [edit logical-systems name routing-instances name bridge-domains name forwarding-options dhcp-relay relay-option], [edit logical-systems name routing-instances name bridge-domains name forwarding-options dhcp-relay relay-option option-60], [edit logical-systems name routing-instances name bridge-domains name forwarding-options dhcp-relay relay-option option-77], [edit logical-systems name routing-instances name forwarding-options dhcp-relay group name relay-option], [edit logical-systems name routing-instances name forwarding-options dhcp-relay group name relay-option option-60], [edit logical-systems name routing-instances name forwarding-options dhcp-relay group name relay-option option-77], [edit logical-systems name routing-instances name forwarding-options dhcp-relay relay-option], [edit logical-systems name routing-instances name forwarding-options dhcp-relay relay-option option-60], [edit logical-systems name routing-instances name forwarding-options dhcp-relay relay-option option-77], [edit logical-systems name routing-instances name vlans name forwarding-options dhcp-relay group name relay-option], [edit logical-systems name routing-instances name vlans name forwarding-options dhcp-relay group name relay-option option-60], [edit logical-systems name routing-instances name vlans name forwarding-options dhcp-relay group name relay-option option-77], [edit logical-systems name routing-instances name vlans name forwarding-options dhcp-relay relay-option], [edit logical-systems name routing-instances name vlans name forwarding-options dhcp-relay relay-option option-60], [edit logical-systems name routing-instances name vlans name forwarding-options dhcp-relay relay-option option-77], [edit logical-systems name vlans name forwarding-options dhcp-relay group name relay-option], [edit logical-systems name vlans name forwarding-options dhcp-relay group name relay-option option-60], [edit logical-systems name vlans name forwarding-options dhcp-relay group name relay-option option-77], [edit logical-systems name vlans name forwarding-options dhcp-relay relay-option], [edit logical-systems name vlans name forwarding-options dhcp-relay relay-option option-60], [edit logical-systems name vlans name forwarding-options dhcp-relay relay-option option-77], [edit routing-instances name bridge-domains name forwarding-options dhcp-relay group name relay-option], [edit routing-instances name bridge-domains name forwarding-options dhcp-relay group name relay-option option-60], [edit routing-instances name bridge-domains name forwarding-options dhcp-relay group name relay-option option-77], [edit routing-instances name bridge-domains name forwarding-options dhcp-relay relay-option], [edit routing-instances name bridge-domains name forwarding-options dhcp-relay relay-option option-60], [edit routing-instances name bridge-domains name forwarding-options dhcp-relay relay-option option-77], [edit routing-instances name forwarding-options dhcp-relay group name relay-option], [edit routing-instances name forwarding-options dhcp-relay group name relay-option option-60], [edit routing-instances name forwarding-options dhcp-relay group name relay-option option-77], [edit routing-instances name forwarding-options dhcp-relay relay-option], [edit routing-instances name forwarding-options dhcp-relay relay-option option-60], [edit routing-instances name forwarding-options dhcp-relay relay-option option-77], [edit routing-instances name vlans name forwarding-options dhcp-relay group name relay-option], [edit routing-instances name vlans name forwarding-options dhcp-relay group name relay-option option-60], [edit routing-instances name vlans name forwarding-options dhcp-relay group name relay-option option-77], [edit routing-instances name vlans name forwarding-options dhcp-relay relay-option], [edit routing-instances name vlans name forwarding-options dhcp-relay relay-option option-60], [edit routing-instances name vlans name forwarding-options dhcp-relay relay-option option-77], [edit vlans name forwarding-options dhcp-relay group name relay-option], [edit vlans name forwarding-options dhcp-relay group name relay-option option-60], [edit vlans name forwarding-options dhcp-relay group name relay-option option-77], [edit vlans name forwarding-options dhcp-relay relay-option], [edit vlans name forwarding-options dhcp-relay relay-option option-60], [edit vlans name forwarding-options dhcp-relay relay-option option-77]
Description
Configure a partial match criteria used with the DHCP relay agent selective processing feature. DHCP relay agent compares the configured partial match string with the option-specific string received in DHCP client packets. If there is an partial left-to-right match, DHCP performs the action you define for the match criteria.
The option-specific string in the DHCP client packets can contain a superset of the specified ASCII or hexadecimal match string, provided that the leftmost characters of the option-specific string entirely match the characters in the configured match string.
You can configure an unlimited number of match strings. If you have multiple partial match configurations, the longest match rule applies. For example, DHCP relay agent matches the string “test123” before it matches the string “test”. Match strings do not support wildcard attributes.
The local-server-group
option is not supported for
DHCPv6 relay agent.
Options
ascii-string | ASCII string of 1 through 255 alphanumeric characters. |
hexadecimal-string | Hexadecimal string of 1 through 255 hexadecimal characters (0 through 9, a through f, A through F). |
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked statement in the Syntax section for details.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 12.3.
Statement updated in Junos OS Release 17.4.