HPswitch: Difference between revisions

From Piszczynski
(Created page with "== View MAC Address tables == '''Listing all learned MAC addresses on the switch, with the port number on which each MAC address was learned'''<syntaxhighlight lang="bash"> show mac-address </syntaxhighlight>'''Listing all learned MAC addresses on one or more ports, with their corresponding port numbers''' For example, to list the learned MAC address on ports A1 through A4 and port A6:<syntaxhighlight lang="bash"> show mac-address a1-a4,a6 </syntaxhighlight>'''Listing a...")
 
No edit summary
Line 1: Line 1:
==Basic commands==
<syntaxhighlight lang="bash" line>#show config --- Show config file
#show running config --- Show running config file
#copy config config1 usb <file name> --- Copy active config file to USB drive
#copy config config1 tftp <IP> <file name> --- Copy your config to file to TFTP server.
#copy tftp config <fileneme> <IP> ---Copy your config from TFTP server to switch
#show flash --- Displays info about flash (version etc.) -#copy tftp flash <IP> <file name> <primary|secondary> --- Download and update your flash with from TFTP server
#copy flash usb <file name> <primary|secondary> --- Copy flash to USB drive
#copy flash tftp <IP> <file name> <primary|secondary> --- Copy flash to TFTP server
#write memory --- Save config</syntaxhighlight>
== View MAC Address tables ==
== View MAC Address tables ==
'''Listing all learned MAC addresses on the switch, with the port number on which each MAC address was learned'''<syntaxhighlight lang="bash">
Listing all learned MAC addresses on the switch, with the port number on which each MAC address was learned<syntaxhighlight lang="bash">
show mac-address
show mac-address
</syntaxhighlight>'''Listing all learned MAC addresses on one or more ports, with their corresponding port numbers'''
</syntaxhighlight>Listing all learned MAC addresses on one or more ports, with their corresponding port numbers


For example, to list the learned MAC address on ports A1 through A4 and port A6:<syntaxhighlight lang="bash">
For example, to list the learned MAC address on ports A1 through A4 and port A6:<syntaxhighlight lang="bash">
show mac-address a1-a4,a6
show mac-address a1-a4,a6
</syntaxhighlight>'''Listing all learned MAC addresses on a VLAN, with their port numbers'''
</syntaxhighlight>Listing all learned MAC addresses on a VLAN, with their port numbers


This command lists the MAC addresses associated with the ports for a given VLAN. For example:<syntaxhighlight lang="bash">
This command lists the MAC addresses associated with the ports for a given VLAN. For example:<syntaxhighlight lang="bash">
show mac-address vlan 100
show mac-address vlan 100
</syntaxhighlight>
</syntaxhighlight>

Revision as of 18:12, 5 December 2023

Basic commands

#show config --- Show config file
#show running config --- Show running config file
#copy config config1 usb <file name> --- Copy active config file to USB drive
#copy config config1 tftp <IP> <file name> --- Copy your config to file to TFTP server.
#copy tftp config <fileneme> <IP> ---Copy your config from TFTP server to switch
#show flash --- Displays info about flash (version etc.) -#copy tftp flash <IP> <file name> <primary|secondary> --- Download and update your flash with from TFTP server
#copy flash usb <file name> <primary|secondary> --- Copy flash to USB drive
#copy flash tftp <IP> <file name> <primary|secondary> --- Copy flash to TFTP server
#write memory --- Save config

View MAC Address tables

Listing all learned MAC addresses on the switch, with the port number on which each MAC address was learned

show mac-address

Listing all learned MAC addresses on one or more ports, with their corresponding port numbers For example, to list the learned MAC address on ports A1 through A4 and port A6:

show mac-address a1-a4,a6

Listing all learned MAC addresses on a VLAN, with their port numbers This command lists the MAC addresses associated with the ports for a given VLAN. For example:

show mac-address vlan 100