Configuration of Virtual LAN (VLAN), lan vlan

Source: Internet
Author: User

Configuration of Virtual LAN (VLAN), lan vlan

Figure 1 Experiment Topology

Lab content:

(1) Name the switches SWA and SWB respectively.

(2) divide Virtual LAN VLANs and statically divide ports into valn.

First, use two methods to divide VLANs.

L vlan division in global mode: This method is used to create three VLANs on the SWA switch: vlan 2, vlan 3, and vlan 4. the vlan names can be defined at will.

L enter vlan database to divide VLANs: This method is used to create three VLANs on the SWB switch: vlan 2, vlan 3, and vlan 4. the vlan names can be defined at will.

Second, divide the port statically into VLANs as follows.

Port F0/5 on the SWA switch is divided into vlan 2, port F0/6 is divided into vlan 3, and port F0/7 is divided into vlan 4.

Port F0/5 on the SWB switch is divided into vlan 2, port F0/6 is divided into vlan 3, and port F0/7 is divided into vlan 4.

Third, delete vlan information.

L Delete vlan 2 and vlan 3 Information on the SWA switch.

L Delete vlan 2 and vlan 3 Information on the SWB switch.

 

1. Experiment steps:

Basic configurations of A vswitch: Name the vswitch SWA and SWB respectively.

1. SWA Configuration:

Switch> en

Switch # config t

Switch (config) # hostname swA

SwA (config) # end

SwA #

2. SWB Configuration:

Switch> en

Switch # config t

Switch (config) # hostname swB

SwB (config) # end

SwB #

3. vlan division and static port division into VLANs:

1) vlan Division

SWA Configuration:

Swa # config t

Swa (config) # vlan 2

Swa (config-vlan) # name vlan2

Swa (config-vlan) # exit

Swa (config) # vlan 3

Swa (config-vlan) # name vlan3

Swa (config-vlan) # exit

Swa (config) # vlan 4

Swa (config-vlan) name vlan4

Swa (config-vlan) # exit

The SWB configuration is the same as that of SWA:

2) divide the port statically into VLANs:

SWA Configuration:

Swa # config t

Swa (config) # int f0/5

Swa (config-if) # switchport mode access

Swa (config-if) # switcgport access vlan 2

Swa (config-if) # exit

Swa (config) # int f0/6

Swa (config-if) # switchport mode access

Swa (config-if) # switcgport access vlan 2

Swa (config-if) # exit

Swa (config) # int f0/7

Swa (config-if) # switchport mode access

Swa (config-if) # switcgport access vlan 2

Swa (config-if) # end

The SWB configuration is the same as that of SWA;

3) view the Configuration:

Running show vlan or show vlan brief in SWA's privileged mode displays vlan configuration information.

SWB is the same as SWA.

Experiment results:

SWA Configuration


SWB Configuration


 

The information package sent by Pc6 cannot be received in pc7 and pc8, and pc9 can be received (same as vlan2)

The information package sent by Pc7 cannot be received in pc6 and pc8, and pc10 can be received (same as vlan3)

The information package sent by Pc8 cannot be received in pc6 and pc7, and pc11 can be received (same as vlan4)

Pc6 and pc9 can be pinged, pc7 and pc10 can be pinged, and pc8 and pc11 can be pinged.

The PCs in the Vlan can communicate with each other, and the PCs outside the vlan cannot be pinged.










The above configurations are all done in the cisco simulator. There are still some differences between the hp real environment and this.

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.