VLAN
Define a VLAN vlan vlan-id
name vlanname Configure an interface as a trunk port switchport mode trunk Configure an interface as an access port assigned to a specific VLAN switchport mode access switchport access {vlan vlan-id | name name} Configure a static MAC address entry mac address-table static mac-address vlan vlan-id interface interface-id
Clear MAC addresses from the MAC address table
clear mac address-table dynamic [{address mac-address | interface interface-id | vlan vlan-id}] Assign an IPv4 address to an interface ip address ip-address subnet-mask Assign a secondary IPv4 address to an interface ip address ip-address subnet-mask secondary Assign an IPv6 address to an interface ipv6 address ipv6-address/prefix-length Modify the SDM database sdm prefer {vlan | advanced} Display the interfaces that are configured as a trunk port and all the VLANs that they permit show interfaces trunk Display the list of VLANs and their associated ports show vlan [{brief | id vlan-id | name vlanname | summary}] Display the MAC address table for a switch show mac address-table [address mac-address | dynamic | vlan vlan-id] Display the current interface state, including duplex, speed, and link state show interfaces Display the Layer 2 configuration information for a specific switchport show interfaces interface-id switchport Display the ARP table show ip arp [mac-address | ip-address | vlan vlan-id | interface-id]. Displays the IP interface table show ip interface [brief | interface-id | vlan vlan-id] Display the IPv6 interface table show ipv6 interface [brief | interface-id | vlan vlan-id]
1
Published @ November 19, 2021 12:46 pm