Basic configurations of Huawei switch ports

Source: Internet
Author: User


1. S2000-HI series Ethernet switches support three types of Ethernet Port Link: Access type: port can only belong to one VLAN, generally used to connect to the computer;
Trunk type: the port can belong to multiple VLANs and can receive and send packets from multiple VLANs. It is generally used for connection between switches;
Hybrid: A port can belong to multiple VLANs. It can receive and send packets from multiple VLANs. It can be used to connect switches or to users' computers.
Www.2cto.com
Note:
The Hybrid port allows messages of multiple VLANs to be sent without tags, while the Trunk port only allows messages of the default VLAN to be sent without tags.
Three types of ports can exist on one device. However, you cannot directly switch between the Trunk port and the Hybrid port. You can only set it to Access port and another type of port. For example, the Trunk port cannot be directly set to the Hybrid port, but can only be set to the Access port and then to the Hybrid port.
Www.2cto.com 2. the default vlan id Access port for configuring an Ethernet port can belong to only one VLAN. Therefore, its default VLAN is the VLAN where it is located. You do not need to set it. The Hybrid and Trunk ports can belong to multiple VLANs, therefore, you need to set the default vlan id for the port.
After the default vlan id of the Ethernet port is configured, the port can handle the receipt and transmission of packets in several different situations. For details, see the following table: Note:
The default vlan id of the local Hybrid port or Trunk port must be the same as the default vlan id of the connected peer switch or the Trunk port. Otherwise, the port cannot forward packets normally.
3. Add the current port to the specified VLAN. You can add the current Ethernet port to the specified VLAN. After this configuration is executed, the Ethernet port can forward packets of the specified VLAN, so that the VLAN on the switch can communicate with the same VLAN on the peer switch.
The Access port can only be added to one VLAN. The Hybrid port and the Trunk port can be added to multiple VLANs.
Note:
The VLAN to be added to the port must already exist.
After the above configuration is performed, the Ethernet port can forward packets of the specified VLAN, so that packets of the same VLAN on the switch can communicate with those of the Peer switch. 4. Set vlan Port 1) configure the Aceess port attribute to go to the System View
System-iew
Go to the Ethernet port view
Interface-type interface-number
Set the port link type to Access (by default, the port link type is Access)
Port link-type access
Add the current Access port to the specified VLAN
Port access vlan-id 2) Configure Hybrid port attributes to enter the system view
System-view
Go to the Ethernet port view
Interface-type interface-number
Set the link type of the port to Hybrid (required)
Port link-type hybrid
Set the default vlan id of the Hybrid port (the default VLAN of the Hybrid port is the default vlan of the system)
Port hybrid pvid vlan-id
Add the current Hybrid port to the specified VLAN (the optional Hybrid port can be used to set whether to label packets of the specified VLAN, laying the foundation for implementing different processing procedures for packets of different VLANs)
Port hybrid vlan-id-list {tagged | untagged} 3) configure the properties of the Trunk port to go to the System View.
System-view
Go to the Ethernet port view
Interface-type interface-number
Set the port link type to Trunk (required)
Port link-type trunk
Set the default vlan id of the Trunk port (optional, the default VLAN of the Trunk port is
Default vlan of the system)
Port trunk pvid vlan-id
Add the current Trunk port to the specified VLAN
Port trunk permit vlan {vlan-id-list | all}
3. The following cases can help you understand the hybrid port mode of Huawei switch [Switch-Ethernet0/1] int e0/1
[Switch-Ethernet0/1] port link-type hybrid
[Switch-Ethernet0/1] port hybrid pvid vlan 10
[Switch-Ethernet0/1] port hybrid vlan 10 20 untagged
[Switch-Ethernet0/1] int e0/2
[Switch-Ethernet0/2] port link-type hybrid
[Switch-Ethernet0/2] port hybrid pvid vlan 20
[Switch-Ethernet0/2] port hybrid vlan 10 20 untagged
In this case, the connected pcs under inter e0/1 and inter e0/2 can communicate with each other, but the round-trip VLANs used for data communication are different.
The following example describes the data sent by pc1 when pc1 accesses pc2 under inter e0/2, the pvid vlan10 of inter0/1 encapsulates vlan10 and sends it to the switch. The switch finds that inter e0/2 allows vlan 10 Data to pass through, so the data is forwarded to inter e0/2, because vlan 10 on inter e0/2 is untagged, the switch removes the vlan10 mark on the data packet and sends it to pc2 as a normal package, in this case, pc1-> p2 uses vlan10 to analyze the pc2 packet return process and the data sent by pc2, the pvid vlan20 of inter0/2 encapsulates the vlan20 label and sends it to the switch. The switch finds that inter e0/1 allows vlan 20 Data to pass through, so the data is forwarded to inter e0/1, because vlan 20 on inter e0/1 is untagged, the switch removes the vlan20 mark on the data packet and sends it to pc1 as a normal package. In this case, pc2-> pc1 follows vlan20.
 

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.