Cisco (Cisco) Switch VLAN settings

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.