In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Lab Topology:
Lab requirements:
Configure the host server ip address switch in-port pvid, label the ingress data frames, distinguish the egress ports between different vlan data switches and hosts, configure untagged, remove the tags, ensure that the data frames sent by the host remain the same between the switch and switch, the egress port is configured with tagged, and the ingress port does not need to be configured Vlan 10 and vlan20 cannot communicate.
Lab step: configure the host server ip address
Pc1:192.168.1.1 255.255.255.0
Pc2:192.168.1.2 255.255.255.0
Server1:192.168.1.3 255.255.255.0 configure the switch:
Sw1:
Establish vlan10 vlan20
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] undo shutdown
[Huawei-GigabitEthernet0/0/1] port link-type hybrid
[Huawei-GigabitEthernet0/0/1] port hybrid pvid vlan 10 (input port tagged, that is, pc data tagged)
[Huawei-GigabitEthernet0/0/1] port hybrid untagged vlan 1030 (de-tagging at the exit port, de-tagging from the switch to pc data)
[Huawei] interface gigabitethernet 0/0/2
[Huawei-GigabitEthernet0/0/2] undo shutdown
[Huawei-GigabitEthernet0/0/2] port link-type hybrid
[Huawei-GigabitEthernet0/0/2] port hybrid pvid vlan 20
[Huawei-GigabitEthernet0/0/2] port hybrid untagged vlan 20 30
Sw3:
Establish vlan30
[Huawei] interface gigabitethernet 0/0/3
[Huawei-GigabitEthernet0/0/3] undo shutdown
[Huawei-GigabitEthernet0/0/3] port link-type hybrid
[Huawei-GigabitEthernet0/0/3] port hybrid pvid vlan 30
[Huawei-GigabitEthernet0/0/2] port hybrid untagged vlan all
Port between switch and switch:
Sw1: [Huawei] interface gigabitethernet 0/0/24
[Huawei-GigabitEthernet0/0/24] undo shutdown
[Huawei-GigabitEthernet0/0/24] port link-type hybrid
[Huawei-GigabitEthernet0/0/24] port hybrid tagged vlan all
Sw2: [Huawei-GigabitEthernet0/0/24] port link-type hybrid
[Huawei-GigabitEthernet0/0/24] port hybrid tagged vlan all
Verification Test:
Ping 192.168.1.2
Pc1 Ping 192.168.1.3
Pc2 ping 192.168.1.3
Experimental problems and summary
The inbound data of the switch needs to be tagged, and the data coming out to the host needs to be de-tagged. If there is a tag, the data frame received by the switch is not processed and forwarded directly (so the 24-port inbound port does not need to be configured) Pvid restricts inbound data frames and untagged restricts outbound data frames.
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.