Command Manual (For Soliton) – Stack-Cluster
H3C S3100 Series Ethernet Switches
Chapter 2 HGMP V2 Configuration
Commands
2-44
2.3.26 tracemac
Syntax
tracemac
{
by-mac
mac-address vlan vlan-id
|
by-ip
ip-address
} [
nondp
]
View
Any view
Parameters
by-mac
: Specifies to trace a device through the specified destination MAC address.
mac-address
: MAC address of the device to be traced.
vlan vlan
-
id
: Specifies to trace a device in the specified VLAN.
vlan-id
ranges from 1 to
4094.
by-ip
: Specifies to trace a device through the specified destination IP address.
ip-address
: IP address of the device to be traced.
nondp
: Specifies not to check the NDP neighbor information.
Description
Use the
tracemac
command to trace a device in a cluster through the specified
destination MAC address or IP address, and to display the path from the current device
to the destination device.
Note:
z
When using the destination IP address to trace a device, the switch looks up the
ARP entry corresponding to the IP address, and then looks up the MAC address
entry according to the ARP entry.
z
If the queried IP address has a corresponding ARP entry, but the corresponding
MAC address of the IP address does not exist in the MAC address table, the trace of
the device fails.
z
To trace a specific device using the
tracemac
command, make sure that all the
devices passed support the
tracemac
function.
z
To trace a specific device in a management VLAN using the
tracemac
command,
make sure that all the devices passed are within the same management VLAN as
the device to be traced.
Examples
# Trace the device that belongs to VLAN 1 through its MAC address 00e0-f032-0005.