Supported Platforms
Tracing Extended DHCP Operations for Specific Interfaces
In addition to the global DHCP tracing operations, subscriber management enables you to trace extended DHCP operations for a specific interface or for a range of interfaces.
Configuring per-interface tracing is a two-step procedure. In the first step, you specify the tracing options that you want to use, such as file information and flags. In the second step, you enable the tracing operation on the specific interfaces.
To configure per-interface tracing operations:
- Specify the tracing options you want to use.
Note: Per-interface tracing uses the same default tracing behavior as the global extended DHCP tracing operation. The default behavior is described in Tracing Extended DHCP Operations.
- Specify that you want to configure per-interface tracing
options.
- For DHCP local server, DHCPv6 local server, DHCP relay
agent, and DHCPv6 relay agent:[edit system processes dhcp-service]user@host# edit interface-traceoptions
- For DHCP local server, DHCPv6 local server, DHCP relay
agent, and DHCPv6 relay agent:
- (Optional) Specify the tracing file options.
- Configure the name for the file used for the trace output.
- Configure the number and size of the log files.
See Configuring the Number and Size of Extended DHCP Log Files.
- Configure access to the log file.
- Configure a regular expression to filter logging events.
See Configuring a Regular Expression for Extended DHCP Messages to Be Logged.
- (Optional) Specify tracing flag options.
- (Optional) Configure a severity level for messages to
specify which event messages are logged.
See Configuring the Severity Level to Filter Which Extended DHCP Messages Are Logged.
- Specify that you want to configure per-interface tracing
options.
- Enable tracing on an interface or interface range.
The following examples show a DHCP local server configuration. You can also use the trace statement at the [edit forwarding-options dhcp-relay] hierarchy level and at the [edit system services dhcp-local-server dhcpv6] hierarchy level.
- Enable tracing on a specific interface.[edit system services dhcp-local-server]user@host# set group group-name interface interface-name trace
- Enable tracing on a range of interfaces.[edit system services dhcp-local-server]user@host# set group group-name interface interface-name upto interface interface-name trace
- Enable tracing on a specific interface.