一、組網說明
三臺PC機使用同一個地址段,但在交換機上需要使用Hybrid端口實現以下功能:
1、PC 1可以訪問到PC 2和PC 3
2、PC 2和PC 3之間無法互訪
二、組網圖
三、配置步驟
#創建Vlan 10,20,30
switch(config)#vlan 10
switch(config-Vlan10)#exit
switch(config)#vlan 20
switch(config-Vlan20)#exit
switch(config)#vlan 30
switch(config-Vlan30)#exit
#設置端口 E 1/1
switch(config)#interface ethernet 1/1
switch(config-If-Ethernet1/1)#switchport mode hybrid
switch(config-If-Ethernet1/1)#switchport hybrid allowed vlan 10;20;30 untag
switch(config-If-Ethernet1/1)#switchport hybrid native vlan 10
switch(config-If-Ethernet1/1)#exit
#設置端口 E 1/2
switch(config)#interface ethernet 1/2
switch(config-If-Ethernet1/2)#switchport mode hybrid
switch(config-If-Ethernet1/2)#switchport hybrid allowed vlan 10;20 untag
switch(config-If-Ethernet1/2)#switchport hybrid native vlan 20
switch(config-If-Ethernet1/2)#exit
#設置端口 E 1/3
switch(config)#interface ethernet 1/3
switch(config-If-Ethernet1/3)#switchport mode hybrid
switch(config-If-Ethernet1/3)#switchport hybrid allowed vlan 10;30 untag
switch(config-If-Ethernet1/3)#switchport hybrid native vlan 30
switch(config-If-Ethernet1/3)#exit
四、注意事項
1.Hybrid端口只能由Access端口轉換,如果某個端口是Trunk端口,需要先轉換爲Access後才能轉換爲Hybrid端口
2.Hybrid端口可以允許端口透傳多個Vlan,並且設置這些Vlan是帶tag傳輸還是不帶tag傳輸
本手冊版權爲DCN所有,歡迎傳閱
如果有任何意見或建議,請聯繫 400-810-9119