VLAN4:
VLAN5:
9. 重复7-8步骤过程,建立VLAN6,添加端口2-5端口在Untagged,11在Tagged。建立VLAN7,添加端口6-9端口在Untagged,11在Tagged。 VLAN6:
VLAN7:
10.点选菜单Switch>VLAN>Port config ;在Port Vlan ID右边栏里输入:1;点选端口1,11,12;然后按”Submit”更改端口1,10,11,12的PVID;
11.重复第10步,在Port Vlan ID右边栏里输入:6;点选端口2-5;然后按”Submit”更改端口2-5的PVID;在Port Vlan ID右边栏里输入:7;点选端口6-9;然后按”Submit”更改端口6-9的PVID; 2-5:
6-9:
12.选择菜单薄Switch>VLAN>status ,查看VLAN包含端口情况,VLAN1应包含1,10,11,12端口,Vlan2,Vlan3包含1,11端口,Vlan4,Vlan5包含11,12端口,Vlan6包括2-5,11端口,Vlan7包括6-9,11端口。
13.在Switch>VLAN>Port config页下面查看端口的PVID,2-5端口应为6,6-9端口应为7,其余为1。
14.设置完成。
四、通过CLI设置 NETGEARGSM7312交换机802.1Q Vlan (GSM7312) >enable Password:
(GSM7312) #vlan database (GSM7312) (Vlan)#vlan 2
(GSM7312) (Vlan)#vlan name 2 vlan2 (GSM7312) (Vlan)#vlan 3
(GSM7312) (Vlan)#vlan name 3 vlan3 (GSM7312) (Vlan)#vlan 4
(GSM7312) (Vlan)#vlan name 4 vlan4 (GSM7312) (Vlan)#vlan 5
(GSM7312) (Vlan)#vlan name 5 vlan5 (GSM7312) (Vlan)#vlan 6
(GSM7312) (Vlan)#vlan name 6 vlan6 (GSM7312) (Vlan)#vlan 7
(GSM7312) (Vlan)#vlan name 7 vlan7 (GSM7312) (Vlan)#exit (GSM7312) #configure
(GSM7312) (Config)#interface 0/1
(GSM7312) (Interface 0/1)#vlan participation include 1 (GSM7312) (Interface 0/1)#vlan participation include 2 (GSM7312) (Interface 0/1)#vlan participation include 3 (GSM7312) (Interface 0/1)#vlan tagging 1 //端口打801.1q标记
(GSM7312) (Interface 0/1)#vlan tagging 2 (GSM7312) (Interface 0/1)#vlan tagging 3 (GSM7312) (Interface 0/1)#vlan pvid 1