Use Trace to Diagnose IPv6 Problems

Use trace to observe the status of IPv6 at a certain time.

Before you begin

  • Confirm that trace level 99 is set to a value of 1 before you use trace to diagnose IPv6 problems. Trace level 1 is very terse.

Caution

Caution

Risk of traffic loss

Using the trace tool inappropriately can cause primary CPU lockup conditions, loss of access to thex device, loss of protocols, and service degradation.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. Activate or deactivate the trace for the IPv6 base:

    trace ipv6 base <disable|enable> <all|debug|error|icmp|info|ipclient|nbr|pkt|warn> [vrf WORD <1–16>]

  3. Activate or deactivate the trace for IPv6 forwarding:

    trace ipv6 forwarding <disable|enable> <all|debug|error|info|pkt|warn> [vrf WORD <1–16>]

  4. Activate or deactivate the trace for IPv6 neighbor discovery:

    trace ipv6 nd <disable|enable> <all|debug|error|info|nbr|pkt|redirect|warn> [vrf WORD <1–16>]

  5. Activate or deactivate the trace for IPv6 OSPF:

    trace ipv6 ospf <disable|enable> <adj|all|config|error|import|info|lsa|pkt|spf|warn> [vrf WORD <1–16>]

  6. Activate or deactivate the trace for the IPv6 routing table manager:

    trace ipv6 rtm <disable|enable> <all|change-list|debug|error|fib|info|redist|update|warn> [vrf WORD <1–16>]

  7. Activate or deactivate the trace for IPv6 transport:

    trace ipv6 transport <disable|enable> <all|common|tcp|udp> [vrf WORD <1–16>]

  8. Deactivate the trace to prevent service degradation:

    trace shutdown

    clear trace

Examples

Switch:1>enable

Activate the trace for all the IPv6 forwarding categories:

Switch:1#trace ipv6 forwarding enable all

Activate the trace for all the IPv6 neighbor discovery categories:

Switch:1#trace ipv6 nd enable all

Activate the trace for the all IPv6 routing table manager categories:

Switch:1#trace ipv6 rtm enable all

Activate the trace for all the IPv6 transport caterories:

Switch:1#trace ipv6 transport enable all

Deactivate the trace:

Switch:1#trace shutdown

Switch:1#clear trace

Removed 5 files.

Variable Definitions

The following table defines parameters for the trace ipv6 command.

Variable

Value

base <disable|enable> <all|debug|error|icmp|info|ipclient|nbr|pkt|warn>

Enables or disables a specific trace category for IPv6 base.

forwarding <disable|enable> <all|debug|error|info|pkt|warn>

Enables or disables a specific trace category for IPv6 forwarding.

nd <disable|enable> <all|debug|error|info|nbr|pkt|redirect|warn>

Enables or disables a specific trace category for IPv6 neighbor discovery.

ospf <disable|enable> <adj|all|config|error|import|info|lsa|pkt|spf|warn>

Enables or disables a specific trace category for IPv6 OSPF.

rtm <disable|enable> <all|change-list|debug|error|fib|info|redist|update|warn>

Enables or disables a specific trace category for IPv6 routing table manager.

transport <disable|enable> <all|common|tcp|udp>

Enables or disables a specific trace category for IPv6 transport.

vrf WORD<1–16>

Specifies the VRF name.