华为eNSP实验——Hybrid实验

时间:2024-05-21 13:27:33

华为Hybrid实验

华为eNSP实验——Hybrid实验
LSW1:
The device is running!

u t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname sw1
[sw1]user-interface console 0
[sw1-ui-console0]idle-timeout 0 0
[sw1-ui-console0]q
[sw1]v b 2 3 10
Info: This operation may take a few seconds. Please wait for a moment…done.
[sw1]int e0/0/1
[sw1-Ethernet0/0/1]p h p v 1
[sw1-Ethernet0/0/1]p h u v 1 2
[sw1-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[sw1-Ethernet0/0/1]int e0/0/2
[sw1-Ethernet0/0/2]p h p v 1
[sw1-Ethernet0/0/2]p h u v 1 2
[sw1-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
[sw1-Ethernet0/0/2]int e0/0/3
[sw1-Ethernet0/0/3]p h p v 10
[sw1-Ethernet0/0/3]p h u v 3 10
[sw1-Ethernet0/0/3]un sh
Info: Interface Ethernet0/0/3 is not shutdown.
[sw1-Ethernet0/0/3]q
[sw1]int g0/0/1
[sw1-GigabitEthernet0/0/1]p h p v 1
[sw1-GigabitEthernet0/0/1]p h u v 1 2
[sw1-GigabitEthernet0/0/1]p h t v 3 10
[sw1-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[sw1-GigabitEthernet0/0/1]q

LSW2:
The device is running!
####################################
u t m
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname sw2
[sw2]user-interface co
[sw2]user-interface console 0
[sw2-ui-console0]idle-timeout 0 0
[sw2-ui-console0]q
[sw2]v b 2 3 10
Info: This operation may take a few seconds. Please wait for a moment…done.
[sw2]int e0/0/1
[sw2-Ethernet0/0/1]p h p v 2
[sw2-Ethernet0/0/1]p h u v 1 2
[sw2-Ethernet0/0/1]un sh
Info: Interface Ethernet0/0/1 is not shutdown.
[sw2-Ethernet0/0/1]int e0/0/2
[sw2-Ethernet0/0/2]p h p v 3
[sw2-Ethernet0/0/2]p h u v 3 10
[sw2-Ethernet0/0/2]un sh
Info: Interface Ethernet0/0/2 is not shutdown.
[sw2-Ethernet0/0/2]q
[sw2]int g0/0/1
[sw2-GigabitEthernet0/0/1]p h p v 1
[sw2-GigabitEthernet0/0/1]p h u v 1 2
[sw2-GigabitEthernet0/0/1]p h t v 3 10
[sw2-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[sw2-GigabitEthernet0/0/1]q

各个PC机的IP地址和子网掩码设置如下(由于都是同网段的PC机连接,所以可以设置网关,设置完成后需要应用下才能使用):
华为eNSP实验——Hybrid实验
华为eNSP实验——Hybrid实验
华为eNSP实验——Hybrid实验
华为eNSP实验——Hybrid实验

华为eNSP实验——Hybrid实验

在命令行输入“ping(其他PC机的 IP地址)”,可知PC1与PC2通,与PC3不通,与PC4通,与PC5不通;PC2与PC3不通,与PC4通,与PC5不通;PC3与PC4不通,与PC5通;PC4与PC5不通。

通过Hybrid接口连接华为设备时,心法口诀:
出口检查:查untag表 有标 脱 无标 查tag 有 放通 无 丢掉

进口检查:查有无标签 有标 查tag表 有标 放通 无标 丢弃
无标 打PVID后 放通