1、 2台交换机使用access端口连接,在access端口上配置vlan。
S1
<Huawei>sy
Entersystem view, return user view with Ctrl+Z.
[Huawei]sysnames1
[s1]vlan20
[s1-vlan20]interfacegig 0/0/1
[s1-GigabitEthernet0/0/1]portlink-type access
[s1-GigabitEthernet0/0/1]portdefault vlan 20
[s1-GigabitEthernet0/0/1]q
[s1]interfacegig 0/0/2
[s1-GigabitEthernet0/0/2]portlink-type access
[s1-GigabitEthernet0/0/2]portdefault vlan 20
[s1]ret
<s1>save
Thecurrent configuration will be written to the device.
Are yousure to continue?[Y/N]y
Nowsaving the current configuration to the slot 0.
Nov 6 2015 12:04:37-08:00 s1%%01CFM/4/SAVE(l)[2]:The user chose Y when deciding
whether to save the configuration to thedevice.
Save theconfiguration successfully.
S2:
<Huawei>sy
Entersystem view, return user view with Ctrl+Z.
[Huawei]sysnames2