Huawei: vlan basic command and configuration experiment
Experimental requirements:
1) Planning of VLAN: VLAN10 master VLAN,VLAN 2 is interworking from VLAN,VLAN 3 to isolated slave VLAN.
2) CLIENT1 and CLIENT2 are divided into VLAN2,CLIENT3 and CLIENT4, VLAN3,CLIENT5 is divided into VLAN10.
3) View the communication between PC
Configuration on LSW
LSW:
Configure the access port on the interface connected to the g 0max 0max 1 of pc, the Murray g 0max 0max 5
Enable the mux-vlan function under the interface
For example, configure-enter interface-configure access port-- add relative vlan-enable mux-vlan function under the interface!
Virtual local area network (VLAN) is a group of logical devices and users, these devices and users are not limited by physical location, and can be organized according to functions, departments, applications and other factors.
They communicate with each other as if they were in the same network segment, hence the name virtual local area network. VLAN is a relatively new technology that works at layers 2 and 3 of the OSI reference model
A VLAN is a broadcast domain, and communication between VLAN is done through a layer 3 router. Compared with the traditional local area network technology, VLAN technology is more flexible and has the following advantages:
The management overhead of moving, adding and modifying network devices is reduced, broadcast activities can be controlled, and network security can be improved.
In a computer network, a layer 2 network can be divided into several different broadcast domains, and one broadcast domain corresponds to a specific user group. By default, these different broadcast domains are isolated from each other.
To communicate between different broadcast domains, you need to go through one or more routers. Such a broadcast domain is called VLAN.
VLAN: virtual local area network, virtual local area network
-background
It can divide different broadcast domains in layer 2 network.
Thus, the fault isolation and fast location can be realized.
-definition
A VLAN is a network segment, and the member hosts in it
Can be located in different physical locations
VLAN configuration:
1. Create a VLAN
SW (config) # vlan 12
2. Configure port mode
SW (config) # interface fas0/1
SW (config-if) # switchport mode access
3. Put the port into the VLAN
SW (config) # interface fas0/1
SW (config-if) # switchport access vlan 12
4. Verification and testing
SW# show vlan brief
SW# show mac-address-table
PC:
Ping 192.168.12.X