D-Link DGS-3100 Switch User Manual


 
DGS-3100 Series Gigabit Stackable Managed Switch CLI Manual
22
6
37
TRACEROUTE COMMANDS
The Traceroute commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command Parameter
traceroute
{ipv4-address | hostname} [size 40-1472] [ttl 1-255] [count 1-10] [timeout 1-60]
[source ip-address] [tos 0-255]
Each command is listed in detail, as follows:
traceroute
Purpose Used to discover the routes packets actually take when traveling to
their destination.
Syntax
traceroute {ipv4-address | hostname} [size 40-1472] [ttl 1-255]
[count 1-10] [timeout 1-60] [source ip-address] [tos 0-255]
Description The traceroute command takes advantage of the error messages
generated by the devices when a datagram exceeds its time-to-live
(TTL) value.
The traceroute command starts by sending probe datagrams with a
TTL value of one. This causes the first device to discard the probe
datagram and send back an error message. The traceroute
command sends several probes at each TTL level and displays the
round-trip time for each.
The traceroute command sends out one probe at a time. Each
outgoing packet may result in one or two error messages. A ‘time
exceeded’ error message indicates that an intermediate device has
seen and discarded the probe. A ‘destination unreachable’ error
message indicates that the destination node has received the probe
and discarded it because it could not deliver the packet. If the timer
goes off before a response comes in, the traceroute command prints
an asterisk (*).
The traceroute command terminates when the destination
responds, when the maximum TTL is exceeded or when the user
interrupts the trace by pressing Esc.
Parameters ipv4-address – Specifies the IP address of the destination
host.hostname
– Defines the host name of the destination host.
(Range: 1-158 characters).
packet_size - Defines the number of bytes in a packet. (Range: 40-
1472).
max-ttl - Defines the largest TTL value that can be used. The
traceroute command terminates when the destination is reached or
when this value is reached. (Range:1-255)
packet_count
- The number of probes to be sent at each TTL level.
(Range:1-10)time_out
- Specifies the number of seconds to wait for
a response to a probe packet. (Range:1-60)
source ip-address - Specifies one of the device’s interface
addresses to use as a source address for the probes. The device
normally selects what it feels is the best source address to use.