VLAN Configuration for Cisco switches

Source: Internet
Author: User
Tags exit config range switches

1. VLAN: Virtual LAN, is the logical combination of switch ports, VLAN work in the second layer of OSI, a VLAN is a broadcast domain, the communication between the VLAN is through the 3rd layer of routers to complete.

2. VLAN Advantages:

Broadcast problem of 1> control network

2> simplifies network management

3> improve the security of the network

3. The allocation method of which VLAN in the switch

1> VLAN: Designate one end of the switch as a member of a VLAN

2> mac-based VLAN: The switch decides which VLAN to place on the MAC address of the node

4. Single Switch partition VLAN

Topology map

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/jhjs/

Prepare the stage, let Pc0 ping pc1 first, found that can ping pass

1> after entering the precinct configuration mode, create the Vlan2

Switch (config) #vlan 2

Switch (Config-vlan) #

2> exit vlan2, create Vlan3

Switch (Config-vlan) #exit

Switch (config) #vlan 3

Switch (Config-vlan) #

3> the port 1,2,3 into vlan2

Switch (config) #int range f0/1-3

Switch (Config-if-range) #switch mode access

Switch (config-if-range) #switch Access VLAN 2

If you divide the error, you can enter the port to use the command

Switch (config-if-range) #no switch Access VLAN 2

You can remove this port from this VLAN

4> the port 4,5,6 into the port vlan3

Switch (config) #int range f0/4-6

Switch (config-if-range) #switch Access VLAN 3

5> in privileged mode show VLAN can see configuration

2 VLAN0002 Active FA0/1, FA0/2, FA0/3

3 VLAN0003 Active FA0/4, FA0/5, FA0/6

6> Verify use pc0 to ping pc1 to see if it can ping

This article is from "Guo Understand blog" blog, please be sure to keep this source http://guodong810.blog.51cto.com/4046313/1019422

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.