Debug commands

router

Syntax

router

Context

debug

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command configures debugging for a router instance.

Parameters

router-instance

Specifies the router name or service ID.

Values

service-id: 1 to 2147483647

Default

Base

ip

Syntax

ip

Context

debug>router

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command configures debugging for IP.

arp

Syntax

arp

Context

debug>router>ip

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command configures route table debugging.

icmp

Syntax

[no] icmp

Context

debug>router>ip

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables ICMP debugging.

icmp6

Syntax

icmp6 [ip-int-name]

no icmp6

Context

debug>router>ip

Platforms

Supported on all 7210 SAS platforms as described in this document, except 7210 SAS-K 2F1C2T

Description

This command enables ICMP6 debugging.

interface

Syntax

[no] interface [ip-int-name | ip-address]

Context

debug>router>ip

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command displays the router IP interface table sorted by interface index.

Parameters

ip-address

Only displays the interface information associated with the specified IP address.

Values

ipv4-address a.b.c.d (host bits must be 0)

ip-int-name

Only displays the interface information associated with the specified IP interface name, up to 32 characters.

packet

Syntax

packet [ip-int-name | ip-address] [headers] [protocol-id]

no packet [ip-int-name | ip-address]

Context

debug>router>ip

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command enables debugging for IP packets.

The no form of this command disables debugging for IP packets. If a protocol-id was previously specified, it will be removed from the criteria.

Parameters

ip-int-name

Displays only the interface information associated with the specified IP interface name, up to 32 characters.

ip-address

Displays only the interface information associated with the specified IP address.

Values

ipv4-address -

a.b.c.d (host bits must be 0)

ipv6-address -

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

x - 0 to FFFF (hexadecimal)

d - 0 to 255 (decimal)

headers

Displays only information associated with the packet header.

protocol-id

Specifies the value representing the IP protocol to debug. Well known protocol numbers include ICMP(1), TCP(6), UDP(17). The values can be expressed in decimal, hexadecimal, or binary.

Values

0 to 255

route-table

Syntax

route-table [ip-prefix/prefix-length]

route-table ip-prefix/prefix-length longer

no route-table

Context

debug>router>ip

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command configures route table debugging.

Parameters

ip-prefix

Specifies the IP prefix for prefix list entry, in dotted-decimal notation.

Values

ipv4-prefix - a.b.c.d (host bits must be 0)

ipv4-prefix-length - 0 to 32

longer

Specifies the prefix list entry matches any route that matches the specified ip-prefix and prefix mask length values greater than the specified mask.