实验拓扑
实验需求
实验思路
配置IP地址
配置vlan
实验步骤
配置IP地址
以pc1为例:
配置vlan
以sw1为例:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys sw1
[sw1]vlan 3
Jan 28 2024 15:39:45-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1]int e0/0/2
[sw1-Ethernet0/0/2]port link-type access
Jan 28 2024 15:40:25-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1-Ethernet0/0/2]port default vlan 3
[sw1-Ethernet0/0/2]int e0/0/01
[sw1-Ethernet0/0/1]port hybrid pvid vlan 3