1, modify VLAN
show arp: View device correspondence between ip address and mac address, the general view is that the device ARP cache
show mac-address-table: Check each port to the learned MAC
ip ARP Show <address> # obtained in accordance with the corresponding ip address mac address Show mac -address Table-address <mac> # find a corresponding port according to the mac address Show CDP neighbors <GI 0 / . 1 > Detail # The switch core port connection is found ip access switch is connected to the switch according to the IP: Show mac -address Table-address <mac> # found in the port of the switch according to the mac address interface <F 0 / . 1 > # enter the port switchport access VLAN < 10 > # the vlan changed to 10
If the switch is a Layer-2 switch, and there is no management address, then after the show arp you will not see anything, but the show mac-address table can see the mac address binding relationship between the switch port and two PC's ;
If the switch is a three switches, ARP can see the correspondence relationship, and direct device also after the corresponding MAC address table show arp; if a Layer device connected below the switcher, rather than your PC, they device in three see the MAC address is the MAC address of the switcher, not the mac address of the PC connected to those on the switcher