In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
VLAN is called virtual local area network, and the function of VLAN is to control broadcasting. Devices in the same VLAN can communicate with each other. Devices in different VLAN need to use three-layer devices to forward if they need to communicate.
Advantages of VLAN: control broadcasting, enhance network security, and simplify network management.
DTP is called dynamic trunking protocol, and the communication interface between the two switch interfaces must be Trunk and the encapsulation mode must be the same.
Switch interface negotiation mode:
V Access access mode: non-trunk link for PC access.
V Trunk relay mode: trunk link, negotiable, primary, passive response.
V Dynamic desirable expectation mode: must negotiate, send, passive response
V Dynamic auto automatic mode: must negotiate, do not send, passive response.
V Nonegotiate non-negotiation mode: no negotiation.
Encapsulation mode:
V ISL inter-switch link: Cisco's proprietary marking method, which supports only 1024 VLAN.
V 802.1Q: a public tagging method that supports 4096 VLAN.
VTP Virtual Local area Network Relay Protocol: VLAN synchronization technology, Cisco's proprietary protocol, can only be used on Cisco devices.
The condition for VTP synchronization: the same VTP domain name must be a Trunk link.
VTP has three working modes: service mode can create modification synchronization VLAN, customer mode can not create modification but synchronization VLAN, and transparent mode can create modification but not synchronization VLAN.
VTP pruning technology is the optimization technology of VLAN, which can improve the network bandwidth through VTP synchronization.
CISCO Cisco switch command
Command
Description
# vlan database
Enter VLAN configuration
(vlan) # vlan 10 name a
Create a VLAN and name it
(vlan) # vtp domain a (domain name)
Configure the VTP domain name
(vlan) # vtp mode server or client or transparent
Configure VTP operation mode
(vlan) # vtp pruning
Configure VTP pruning
(vlan) # exit
Save and exit the VLAN configuration
# show vlan
View VLAN list
# show interface f0/0 swichport
View the layer 2 information of the interface
# show vtp status
View VTP information
# show interface trunk
View Trunk information
(config) # interface range f0amp 0-4 (multiple interfaces)
Access to multiple interfaces simultaneously
(config-if) # switchport trunk encapsulation dot1q
Configure the interface encapsulation mode to 802.1Q
(config-if) # switchport mode access or Trunk
Configure interface mode
(config-if) # switchport access vlan 10
Put the interface into the VLAN10
(config-if) # switchport native vlan 10
Set the default VLAN to VLAN10
(config-if) # switchport trunk allowed vlan remove vlan 10
Remove VLAN10 from Trunk, which means that VLAN10 is not allowed to pass
(config-if) # switchport trunk allowed vlan add vlan 10
Adding VLAN10 from Trunk means allowing VLAN10 to pass through
Huawei's interface mode:
V Access mode: access mode for PC access.
V Trunk mode: trunk mode for communication between multiple switches.
V Hybrid mode: mixed mode, where an interface can be added to multiple VLAN.
VLANIF interface: logical virtual interface, equivalent to the VLAN virtual interface of a Cisco device.
Huawei switch command
Command
Description
[huawei] vlan 10
Create VLAN
[huawei] vlan batch 10 20 30
Create multiple VLAN at the same time
[huawei-vlan] quit
Save and exit the VLAN configuration
[huawei] display vlan
View VLAN list
[huawei] display interface e0/0/1
View the layer 2 information of the interface
[huawei] interface ethernet0/0/0 to 0/0/9
Access to multiple interfaces simultaneously
[huawei-Ethernet0/0/0] port link-type acccess
Configure the interface to Access mode
[huawei-Ethernet0/0/0] port accesst vlan 10
Put the interface into the VLAN10
[huawei-Ethernet0/0/0] port link-type trunk
Configure the interface to Trunk mode
[huawei-Ethernet0/0/0] port trunk allow-pass vlan 10
Allow VLAN10 to pass through
[huawei-Ethernet0/0/0] port link-type hybrid
Configure the interface to hybrid mixed mode
[huawei-Ethernet0/0/0] port port hybrid untagged vlan 10 20 30
Add the interface to multiple VLAN
Note: Cisco allows all VLAN to pass through Trunk by default, while Huawei H3C needs to be configured manually.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.