5.3 Diagnostics—Traceroute (IPv4)

Use this command to perform a Traceroute test over IPv4 towards a remote host.

Command Syntax:

traceroute ip { <domain_name> | <ip_addr> } [ dscp <dscp> ] [ timeout <timeout> ] [ { saddr <src_addr> | sif { <port_type> <src_if> | vlan <vlan_id> } } ] [ probes <probes> ] [ firstttl <firstttl> ] [ maxttl <maxttl> ] [ icmp ] [ numeric ]
Table 5-3. Command Description

Argument

Description

Parameter

<domain_name>

Destination hostname or FQDN

<ip_addr>

Destination IPv4 address

<dscp>

DSCP value (decimal value, default 0)

<timeout>

Time to wait for a response in seconds. The default value is 3.

<src_addr>

Source Address of interface

<port_type>

Port type in GigabitEthernet, 2.5GigabitEthernet

<src_if>

Port ID in the format of switch-no/port-no

<vlan_id>

Source VLAN interface

<probes>

Number of probes per hop. The default value is 3.

<firstttl>

First number of hops. The default value is 1.

<maxttl>

Max number of hops. The default value is 30.

Default

N.A

Mode

User EXEC mode

Usage

Perform a Traceroute test

Example

Example 1:

Traceroute to 192.168.0.2 with 5 probes.

# traceroute ip 192.168.0.2 probes 5