Cisco (Cisco) Switch VLAN settings
Create, delete, set port properties, configure the trunk port, add a port to a VLAN, configure VTP: switch # vlan database; enter the vlan settings switch (VLAN) # vlan 2; Create VLAN 2 switch (vlan) # vlan 3 name vlan3; Create VLAN 3 and name it vlan3switch (vlan) # no vlan 2; Delete vlan 2 switch (config) # int f0/1; enter port 1 switch (config) # speed? View the speed command sub-command switch (config) # speed 100 sets the port speed to 100 mb/s (10/auto) switch (config) # duplex? View duplex sub-command switch (config) # duplex full set this port to full duplex (auto/half) switch (config) # description TO_PC1 this port is described as TO_PC1 switchport mode accessswitch (config-if) # switchport access vlan 2; Add the current port to vlan 2 to set the IP address, default gateway, domain name, Domain Name Server, configure and view the MAC address table: switch (config) # interface vlan 1; enter vlan 1 switch (config-if) # ip address 192.168.1.1 255.255.255.0; set ip address switch (config) # ip default-gateway 192.168.1.6; set the default gateway Switch # copy startup- Config running-config reboot: indicates the restart of the machine (all data you have done will exist and will not be lost) reset: indicates that the device restores the factory value (that is, after you perform this operation, all your configuration data is cleared.) reload: it is wrong to restart after the data is configured, And the configuration data will be saved in the device. It only means to restart the device, after you input the reload reboot reset command, will you be prompted to save it? Save and restart by y. You may ask why the command is different and the result is the same because of copyright law. For example, if cisco is sho 3COM and DISP, the effect is the same.