Configure a VLAN, split broadcast domains

   VLAN is a can be a 2 -layer network is divided into a plurality of virtual local area network broadcast domain. It can effectively prevent broadcast storms, improve network security, simplifies network management.

Next we will be configured on GNS3 VLAN to divide different users broadcast domain to multiple broadcast domains.

   First, a new in GNS3 C3725 devices, add 2 layer service board, and set a disk size.

QQ picture 20190807185617.png

QQ picture 20190807185816.png

Name and modify the device's icon

QQ picture 20190807190027.png

3 new VPC devices, respectively, and a network cable SW is connected to all the click open

image.png

Now we set the PC1's IP is 192.168.10.10

PC2's IP is 192.168.10.20

PC3's IP is 192.168.10.30

This 3 IP on the same network segment, if not, you can communicate VLAN classification

image.png

Double-SW, the input command into the global schema no ip routing routing function off

image.png

IP addresses are now configured to PC1,2,3

QQ picture 20190807205104.png

QQ picture 20190807205111.png

QQ picture 20190807205117.png

Now we use it to ping PC1 and PC2 PC3 see whether they can communicate

image.png

3 users is interoperability, a test environment to meet, now configure VLAN

Enter the global sw mode, enter the command VLAN 10,20 establish two VLAN, and enter do show vlan-switch brief in the global mode to see if the success of the establishment

image.png

After establishing a successful, we have to divide the port to the corresponding VLAN. 

First enters the interface mode f1 / 0, the command input switchport mode access into the access link, and then enter the command switchport access vlan 10 put f1 / 0 to divide the VLAN10

image.png

f1 / 0 configuration is successful. Then say f1 / 1 and f1 / 2 to the configuration in VLAN20

image.png

After all configuration is complete, we can use PC1 to PC3 and see if we can connect pingPC2

image.png

Unable to connect, and then we come pingPC3 PC2

image.png

connection succeeded.

This description PC2 and PC3 in the same broadcast domain, PC1 and PC2,3 but not in the same broadcast domain, VLAN success will draw the same segment of three to two users do not broadcast domain.




Guess you like

Origin blog.51cto.com/14469918/2427527