三層交換實現不同valn的互通 可靠、方便、實用
阿新 • • 發佈:2018-11-26
實驗拓撲:
實驗思路:
1、PC機配置IP 、掩碼、閘道器
2、建立vlan 進入介面修改為Access鏈路 配置vlanif 閘道器
實驗步驟:
[Huawei]vlan batch 2 3
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 2
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 3
[Huawei]interface Vlanif 2
[Huawei-Vlanif2]ip address 192.168.10.254 24
[Huawei-Vlanif2]undo shutdown
[Huawei]interface Vlanif 3
[Huawei-Vlanif3]ip address 192.168.20.254 24
[Huawei-Vlanif3]undo shutdown