混合链路

一、实验拓扑图

二、设置五台电脑的IP及子网掩码:

三、没划分vlan前全网互通:

四、设置第一台二层交换机2SW1:

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info
Apr 16 2025 08:52:26-08:00 Huawei %%01PHY/1/PHY(l)[0]:    Ethernet0/0/4: change 
status to down-c
Apr 16 2025 08:52:27-08:00 Huawei %%01PHY/1/PHY(l)[1]:    Ethernet0/0/4: change 
s
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname 2sw1
[2sw1]vlan batch 10 20 30  创建vlan10 20 30
Info: This operation may take a few seconds. Please wait for a moment...done.
[2sw1]interface e0/0/2		进入e0/0/2接口
[2sw1-Ethernet0/0/2]port link-type hybrid端口链路类型为混合链路
[2sw1-Ethernet0/0/2]port hybrid untagged vlan 20 30端口链路类型20 30不打标记(进来时不打标记)
[2sw1-Ethernet0/0/2]port hybrid pvid vlan 20 端口混合链路打标记,打vlan20的标记(出去时打标记)
[2sw1-Ethernet0/0/2]quit
[2sw1]
[2sw1]
[2sw1]interface e0/0/3  进入e0/0/3接口
[2sw1-Ethernet0/0/3]port link-type hybrid 端口链路类型为混合链路
[2sw1-Ethernet0/0/3]port hybrid untagged vlan 10 30 端口链路类型10 30不打标记(进来时不打标记)
[2sw1-Ethernet0/0/3]port hybrid pvid vlan 10 端口混合链路打标记,打vlan10的标记(出去时打标记)
[2sw1-Ethernet0/0/3]quit
[2sw1]
[2sw1]
[2sw1]interface e0/0/4 进入e0/0/4接口
[2sw1-Ethernet0/0/4]port link-type hybrid 端口链路类型为混合链路
[2sw1-Ethernet0/0/4]port hybrid untagged vlan 10 20 30 端口链路类型10 20 30不打标记(进来时不打标记)
[2sw1-Ethernet0/0/4]port hybrid pvid vlan 30 端口混合链路打标记,打vlan30的标记(出去时打标记)
[2sw1-Ethernet0/0/4]quit
[2sw1]
[2sw1]
[2sw1]interface e0/0/1 进入e0/0/1接口
[2sw1-Ethernet0/0/1]port link-type hybrid 端口链路类型为混合链路
[2sw1-Ethernet0/0/1]port hybrid tagged vlan 10 20 30  端口链路类型10 20 30打标记
[2sw1-Ethernet0/0/1]quit

五、设置第二台二层交换机2SW2:

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname 2sw2
[2sw2]undo info-center enable						关闭消息控制台
Info: Information center is disabled.
[2sw2]vlan batch 10 20 30
[2sw2]interface e0/0/1 								进入e0/0/1接口
[2sw2-Ethernet0/0/1]port link-type hybrid		端口链路类型为混合链路
[2sw2-Ethernet0/0/1]port hybrid tagged vlan 10 20 30	 端口链路类型10 20 30打标记
[2sw2-Ethernet0/0/1]quit							退出
[2sw2]interface e0/0/2								进入e0/0/2接口
[2sw2-Ethernet0/0/2]port link-type hybrid		端口链路类型为混合链路
[2sw2-Ethernet0/0/2]port hybrid untagged vlan 20 30	端口链路类型20 30不打标记(进来时不打标记)
[2sw2-Ethernet0/0/2]port hybrid pvid vlan 20	端口混合链路打标记,打vlan20的标记(出去时打标记)
[2sw2-Ethernet0/0/2]quit							退出
[2sw2]
[2sw2]interface e0/0/3
[2sw2-Ethernet0/0/3]port link-type hybrid		端口链路类型为混合链路
[2sw2-Ethernet0/0/3]port hybrid untagged vlan 10 30	端口链路类型10 30不打标记(进来时不打标记)
[2sw2-Ethernet0/0/3]port hybrid pvid vlan 10	端口混合链路打标记,打vlan10的标记(出去时打标记)

六、划分vlan后测试,不同部门之间是否不能互相通信

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇