# Setting Baselines for DHCP Statistics

You can use the baseline dhcp commands to set statistics baselines for DHCP operations. The router implements the baseline by reading and storing the statistics at the time the baseline is set and then subtracting this baseline when you retrieve baseline-relative statistics.

Use the delta keyword with the show dhcp commands to display baselined statistics.

Tasks to set a baseline for DHCP statistics are:

1. Setting a Baseline for DHCP Relay and Relay Proxy
2. Setting a Baseline for DHCP Proxy Server Statistics
3. Setting a Baseline for DHCP External Server Statistics
4. Setting a Baseline for DHCP Local Server Statistics

## Setting a Baseline for DHCP Relay and Relay Proxy

To set a statistics baseline for DHCP relay and DHCP relay proxy: :

- Issue the baseline dhcp relay command:
  host1#baseline dhcp relay

There is no no version.

## Setting a Baseline for DHCP Proxy Server Statistics

To set a baseline for DHCP proxy server statistics.

- Issue the baseline dhcp server command:
  host1#baseline dhcp server

There is no no version.

## Setting a Baseline for DHCP External Server Statistics

To set a baseline for DHCP external server statistics.

- Issue the baseline ip dhcp-external command:
  host1#baseline ip dhcp-external

There is no no version.

## Setting a Baseline for DHCP Local Server Statistics

To set a baseline for DHCP local server statistics:

- Issue the baseline ip dhcp-local command:
  host1#baseline ip dhcp-local

There is no no version.

To set a baseline for DHCP local server statistics for a specific ATM, Fast Ethernet, or Gigabit Ethernet interface:

- Issue the baseline ip dhcp-local command with the optional interface keyword to specify the type of interface and interface specifier:
  host1#baseline ip dhcp-local interface atm 3/1

To set a baseline for DHCPv6 local server statistics:

- Issue the baseline ipv6 dhcpv6-local command:
  host1#baseline ipv6 dhcpv6-local