1. 进入华为S2300交换机配置界面并给交换机命名

<Quidway>sys    // 进入 system-view 视图进行交换机配置
Enter system view, return user view with Ctrl+Z.
 [Quidway]sysname Mill2meetingroom-S2300  // 设置交换机名字为 Mill2meetingroom-S2300 (二厂会议室华为 S2300
[Mill2meetingroom-S2300]
 
2. 批量创建 VLAN

[Mill2meetingroom-S2300]vlan batch 2 to 21

 Please wait...

 Done.       // 添加 VLAN 2 到 VLAN 21(VLAN 1 为默认 VLAN) 
[Mill2meetingroom-S2300-vlan2]
 
3.  建立端口组并把端口批量加入端口组里,批量修改端口类型( port link-type

[Mill2meetingroom-S2300]port-group accessmeetingroom  //建立端口组accessmeetingroom

[Mill2meetingroom-S2300-port-group-accessmeetingroom]group-member Ethernet 0/0/1

 to Ethernet 0/0/22   //添加组成员122号端口

[Mill2meetingroom-S2300-port-group-accessmeetingroom]port link-type access

// 设置改端口组成员为 access

Execute command [port link-type access ] for port [Ethernet0/0/1] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/2] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/3] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/4] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/5] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/6] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/7] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/8] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/9] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/10] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/11] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/12] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/13] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/14] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/15] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/16] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/17] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/18] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/19] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/20] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/21] is finished.

Execute command [port link-type access ] for port [Ethernet0/0/22] is finished.

[Mill2meetingroom-S2300-port-group-accessmeetingroom]quit //设置成功后退出端口组配置

 
4. 批量划分端口 VLAN
[Mill2meetingroom-S2300]vlan 7

[Mill2meetingroom-S2300-vlan7]port ethernet 0/0/1 to 0/0/16  //把</