网络运维 hybrid 实验报告

 


 

 

进行hybrid链路配置

                

                                      

 



































































 

1. 准备两台交换机,每个交换机配两台PC

 

2. PC机配置 ip地址:

Pc1:192.168.10.1 255.255.255.0

Pc2:192.168.10.3 255.255.255.0

Pc3:192.168.10.2 255.255.255.0

Pc4:192.168.10.4 255.255.255.0

 

3. 建立连接:

Pc1 连接交换机SW1 GE0/0/1端口

Pc2 连接交换机SW2 GE0/0/1端口

Pc3 连接交换机SW1 GE0/0/2端口

Pc4 连接交换机SW2 GE0/0/2端口

SW1 连接 SW2 分别连接 GE0/0/24端口

如图:

4. 实验步骤:

Pc1 ————> pc3:

undo t monitor   关闭日志功能sys

[SW1]vlan bacth 10 20

[SW1]interface gi0/0/1

[SW1-GigabitEthernet0/0/1]undo shutdown

[SW1-GigabitEthernet0/0/1]port hybrid pvid vlan 10  

[SW1-GigabitEthernet0/0/1]q

[SW2]interface gi0/0/24[SW2-Gigabitethernet0/0/24]undo shutdown

[SW1-GigabitEthernet0/0/24]port hybrid tagged vlan 10

undo terminal monitor     关闭日志功能

system-view

[sw2]vlan bacth 10 20

[SW2] interface gi0/0/1

[SW2-GigabitEthernet0/0/1]undo shutdown

[SW2-GigabitEthernet0/0/1]port hybrid untagged vlan 10

[SW2-GigabitEthernet0/0/1]port hybrid pvid vlan 10

[SW2-GigabitEthernet0/0/1]q

[SW2]interface gi0/0/24

[SW2-Gigabitethernet0/0/24]undo shutdown

[SW2-Gigabitethernet0/0/24]port hybrid tagged vlan 10

[SW1-gigabitethernet0/0/1]port hybrid untagged vlan 10

display port vlan


display vlan


display port vlan


display vlan


Pc1   ping pc2            


Pc1   ping pc3              


Pc2 ————> pc4:

sys

[SW1]interface gi0/0/2

[SW1-GigabitEthernet0/0/2]undo shutdown

[SW1-GigabitEthernet0/0/2]port hybrid pvid vlan 20  

[SW1-GigabitEthernet0/0/24]port hybrid tagged vlan 20

system-view

[SW2] interface gi0/0/2

[SW2-GigabitEthernet0/0/2]undo shutdown

[SW2-GigabitEthernet0/0/2]port hybrid untagged vlan 20

[SW2-GigabitEthernet0/0/2]port hybrid pvid vlan 20

[SW2-GigabitEthernet0/0/2]q

[SW2]interface gi0/0/24

[SW2-Gigabitethernet0/0/24]port hybrid tagged vlan 20

[SW1-gigabitethernet0/0/2]port hybrid untagged vlan 20

display port vlan

 

display vlan

 

display port vlan

 

display vlan

 

Pc2   ping pc4:            


 

Pc2   ping pc3:            不通

 

1.         接口不需要手动加入vlan

2.         相同vlan可通信,不同vlan不可通信