Tracemac - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

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.
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.
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.
To trace a specific device using the tracemac command, make sure that all the devices passed
support the tracemac function.
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.
<aaa_0.Sysname> tracemac by-mac 000f-e232-0005 vlan 1
Tracing MAC address 000f-e232-0005 in vlan 1
1 000f-e232-0001
2 000f-e232-0002
3 000f-e232-0003
4 000f-e232-0005
# Trace the device that belongs to VLAN 1 through its IP address 192.168.1.5.
<aaa_0.Sysname> tracemac by-ip 192.168.1.5
H3C01
Ethernet1/0/2
H3C02
Ethernet1/0/7
H3C03
Ethernet1/0/4
H3C05
Local
2-43

Advertisement

Table of Contents
loading

Table of Contents