本文档适用于NETGEAR 7000 系列全网管交换机,包括但不仅限于以下型号:
型号 |
Firmware 版本 |
FSM7326P |
3*-6.* |
FSM7328S |
4.*-6.* |
FSM7352S |
4*-6.* |
FSM7328PS |
5.*-6.* |
FSM7352PS |
5.*-6.* |
GSM7212 |
* |
GSM7224 |
3.*-6.* |
GSM7248 |
* |
GSM7312 |
3.*-6* |
GSM7324 |
3.*-6.* |
GSM7328Sv1 |
5.*-6.* |
GSM7352Sv1 |
5.*-6.* |
GSM7328FS |
6.* |
设置 Netgear 7000 系列交换机
网络拓扑:
一、.通过 Web 页面设置 NETGEAR GSM7312 交换机 Port-Base Vlan
设置目标:
增加2个Vlan:Vlan6(端口1);Vlan7(端口12),这2个Vlan间的用户不能互相访问,但可以通过共同端口11口访问路由器,其余端口保留在Vlan1。
配置步骤
- 使用9针串口设置线连接GSM7324交换机,进入CLI配置界面,使用(GSM7324)# Clear Config命令恢复出厂设置。
- 然后使用命令(GSM7324)#Reload ; 系统提示是否保存现有配置(选择YES)。然后系统重新启动。
- 配置GSM7324交换机管理IP地址为192.168.0.238/24,配置完毕后保存。
- 连接配置计算机的网线到GSM7324的端口10;
- 打开IE浏览器,在URL处输入http://192.168.0.238/,进入交换机配置管理界面。
- 点选菜单Switch>VLAN>config ;在VLAN Configuration界面的 Default VLAN处选择进行端口配置,保留所有端口在VLAN1不动;
- 在VLAN Configuration界面的VLAN ID and Name处,下拉选择Create选项进行新的VLAN的创建。
- 在VLAN ID栏里输入6; VLAN Name处输入:VLAN6 ;
VLAN type选:Static(缺省)
然后,按住键盘CTRL的同时,用鼠标点在unTag栏目下点选端口1、11,然后点“Submit”按纽保存设置。(见下图)
- 重复7-8步骤过程,建立VLAN7,添加端口11,12
- 点选菜单Switch>VLAN>Port config ;在Port Vlan ID右边栏里输入:6;点选端口1;然后按”Submit”更改端口1的PVID;
- 重复第10步,在Port Vlan ID右边栏里输入:7;点选端口12;然后按”Submit”更改端口12的PVID;
- 选择菜单薄Switch>VLAN>status ,查看VLAN包含端口情况,VLAN1应包含所有端口,Vlan6包含1,11端口,Vlan7包含11,12端口。
- 在Switch>VLAN>Port config页下面查看端口的PVID,1端口应为6,12端口应为7,其余为1。
- 设置完成。
二、通过 CLI 命令行设置 NETGEAR GSM7312 交换机 Port-Base Vlan
(GSM7312) >enable
Password:
(GSM7312) #vlan database
//进入VLAN设置
(GSM7312) (Vlan)#vlan 6
//创建Vlan6
(GSM7312) (Vlan)#vlan name 6 vlan6
//设置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 6
//设置端口属于 VLAN 6
(GSM7312) (Interface 0/1)#no vlan tagging 6
//端口不打 Tag 标记
(GSM7312) (Interface 0/1)#vlan pvid 6
//设置端口 PVID
(GSM7312) (Interface 0/1)#exit
(GSM7312) (Config)#interface 0/11
(GSM7312) (Interface 0/11)#vlan participation include 6
(GSM7312) (Interface 0/11)#vlan participation include 7
(GSM7312) (Interface 0/11)#no vlan tagging 6
(GSM7312) (Interface 0/11)#no vlan tagging 7
(GSM7312) (Interface 0/11)#exit
(GSM7312) (Config)#interface 0/12
(GSM7312) (Interface 0/12)#vlan participation include 7
(GSM7312) (Interface 0/12)#no vlan tagging 7
(GSM7312) (Interface 0/12)#vlan pvid 7
(GSM7312) (Interface 0/12)#exit
(GSM7312) (Config)#exit
(GSM7312) #copy system:running-config nvram:startup-config
//存盘
Are you sure you want to save? (y/n) y
Configuration Saved!
(GSM7312) #show vlan 1
//查看 Vlan1 状态
VLAN ID: 1
VLAN Name: Default
VLAN Type: Default
slot/port Current Configured Tagging
------------------------------------------------------------------------------------------------------------------------------------
0/1 Include Include Untagged
0/2 Include Include Untagged
0/3 Include Include Untagged
0/4 Include Include Untagged
0/5 Include Include Untagged
0/6 Include Include Untagged
0/7 Include Include Untagged
0/8 Include Include Untagged
0/9 Include Include Untagged
0/10 Include Include Untagged
0/11 Include Include Untagged
0/12 Include Include Untagged
(GSM7312) #show vlan 6
VLAN ID: 6
VLAN Name: vlan6
VLAN Type: Static
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- -------------------------------------------------------------------------
0/1 Include Include Untagged
0/2 Exclude Autodetect Untagged
0/3 Exclude Autodetect Untagged
0/4 Exclude Autodetect Untagged
0/5 Exclude Autodetect Untagged
0/6 Exclude Autodetect Untagged
0/7 Exclude Autodetect Untagged
0/8 Exclude Autodetect Untagged
0/9 Exclude Autodetect Untagged
0/10 Exclude Autodetect Untagged
0/11 Include Include Untagged
0/12 Exclude Autodetect Untagged
(GSM7312) #show vlan 7
VLAN ID: 7
VLAN Name: vlan7
VLAN Type: Static
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- --------------------------------------------------------------------
0/1 Exclude Autodetect Untagged
0/2 Exclude Autodetect Untagged
0/3 Exclude Autodetect Untagged
0/4 Exclude Autodetect Untagged
0/5 Exclude Autodetect Untagged
0/6 Exclude Autodetect Untagged
0/7 Exclude Autodetect Untagged
0/8 Exclude Autodetect Untagged
0/9 Exclude Autodetect Untagged
0/10 Exclude Autodetect Untagged
0/11 Include Include Untagged
0/12 Include Include Untagged
(GSM7312) #show vlan port all
PortAcceptableIngressDefault
slot/port VLAN ID Frame Types Filtering GVRP Priority
--------- ------- ------------ ----------- ------- --------
0/1 6 Admit All Disable Disable 0
0/2 1 Admit All Disable Disable 0
0/3 1 Admit All Disable Disable 0
0/4 1 Admit All Disable Disable 0
0/5 1 Admit All Disable Disable 0
0/6 1 Admit All Disable Disable 0
0/7 1 Admit All Disable Disable 0
0/8 1 Admit All Disable Disable 0
0/9 1 Admit All Disable Disable 0
0/10 1 Admit All Disable Disable 0
0/11 1 Admit All Disable Disable 0
0/12 7 Admit All Disable Disable 0
(GSM7312) #
三、.通过 Web 页面设置 NETGEAR GSM7312 交换机 802.1Q Vlan
设置目标:
在GSM7312上增加简历6个Vlan:Vlan2-7,其中端口1打标记属于VLAN2、VLAN3,端口12打标记属于VLAN4、VLAN5,2-5端口不打标记属于VLAN6,6-9端口不打标记属于VLAN7,10端口不打标记属于VLAN1,11端口打标记属于所有VLAN与上级交换机上连。
端口 |
PVID |
VLAN1 |
VLAN2 |
VLAN3 |
VLAN4 |
VLAN5 |
VLAN6 |
VLAN7 |
1 |
1 |
T |
T |
T |
|
|
|
|
2 |
6 |
|
|
|
|
|
U |
|
3 |
6 |
|
|
|
|
|
U |
|
4 |
6 |
|
|
|
|
|
U |
|
5 |
6 |
|
|
|
|
|
U |
|
6 |
7 |
|
|
|
|
|
|
U |
7 |
7 |
|
|
|
|
|
|
U |
8 |
7 |
|
|
|
|
|
|
U |
9 |
7 |
|
|
|
|
|
|
U |
10 |
7 |
U |
|
|
|
|
|
|
11 |
1 |
T |
T |
T |
T |
T |
T |
T |
12 |
1 |
T |
|
|
T |
T |
|
|
配置步骤
- 使用9针串口设置线连接GSM7324交换机,进入CLI配置界面,使用(GSM7324)# Clear Config命令恢复出厂设置。
- 然后使用命令(GSM7324)#Reload ; 系统提示是否保存现有配置(选择YES)。然后系统重新启动。
- 配置GSM7324交换机管理IP地址为192.168.0.238/24,配置完毕后保存。
- 连接配置计算机的网线到GSM7324的端口10;
- 打开IE浏览器,在URL处输入http://192.168.0.238/,进入交换机配置管理界面。
- 点选菜单Switch>VLAN>config ;在VLAN Configuration界面的Default VLAN处选择进行端口配置,1,11,12标记在Tagged、10标记在Untagged;
- 在VLAN Configuration界面的VLAN ID and Name处,下拉选择Create选项进行新的VLAN的创建。
- 在VLAN ID栏里输入2; VLAN Name处输入:VLAN2 ;
VLAN type选:Static(缺省)
然后,按住键盘CTRL的同时,用鼠标点在Tagged栏目下点选端口1、11,然后点“Submit”按纽保存设置。(见下图)
- 重复7-8步骤过程,建立VLAN3,添加端口1,11在Tagged。建立VLAN4,VLAN5添加端口11,12在Tagged。
VLAN3:
VLAN4:
VLAN5:
重复7-8步骤过程,建立VLAN6,添加端口2-5端口在Untagged,11在Tagged。建立VLAN7,添加端口6-9端口在Untagged,11在Tagged。
VLAN6:
VLAN7:
- 点选菜单Switch>VLAN>Port config ;在Port Vlan ID右边栏里输入:1;点选端口1,11,12;然后按”Submit”更改端口1,10,11,12的PVID;
- 重复第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:
- 选择菜单薄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端口。
- 在Switch>VLAN>Port config页下面查看端口的PVID,2-5端口应为6,6-9端口应为7,其余为1。
- 设置完成。
四、通过Web页面设置 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
(GSM7312) (Interface 0/1)#exit
(GSM7312) (Config)#interface 0/2
(GSM7312) (Interface 0/2)#vlan participation exclude 1
//设置端口不属于default vlan(vlan1)
(GSM7312) (Interface 0/2)#vlan participation include 6
(GSM7312) (Interface 0/2)#no vlan tagging 6
(GSM7312) (Interface 0/2)#vlan pvid 6
(GSM7312) (Interface 0/2)#exit
(GSM7312) (Config)#interface 0/3
(GSM7312) (Interface 0/3)#vlan participation exclude 1
(GSM7312) (Interface 0/3)#vlan participation include 6
(GSM7312) (Interface 0/3)#no vlan tagging 6
(GSM7312) (Interface 0/3)#vlan pvid 6
(GSM7312) (Interface 0/3)#exit
(GSM7312) (Config)#interface 0/4
(GSM7312) (Interface 0/4)#vlan participation exclude 1
(GSM7312) (Interface 0/4)#vlan participation include 6
(GSM7312) (Interface 0/4)#no vlan tagging 6
(GSM7312) (Interface 0/4)#vlan pvid 6
(GSM7312) (Interface 0/4)#exit
(GSM7312) (Config)#interface 0/5
(GSM7312) (Interface 0/5)#vlan participation exclude 1
(GSM7312) (Interface 0/5)#vlan participation include 6
(GSM7312) (Interface 0/5)#no vlan tagging 6
(GSM7312) (Interface 0/5)#vlan pvid 6
(GSM7312) (Interface 0/5)#exit
(GSM7312) (Config)#interface 0/6
(GSM7312) (Interface 0/6)#vlan participation exclude 1
(GSM7312) (Interface 0/6)#vlan participation include 7
(GSM7312) (Interface 0/6)#no vlan tagging 7
(GSM7312) (Interface 0/6)#vlan pvid 7
(GSM7312) (Interface 0/6)#exit
(GSM7312) (Config)#interface 0/7
(GSM7312) (Interface 0/7)#vlan participation exclude 1
(GSM7312) (Interface 0/7)#vlan participation include 7
(GSM7312) (Interface 0/7)#no vlan tagging 7
(GSM7312) (Interface 0/7)#vlan pvid 7
(GSM7312) (Interface 0/7)#exit
(GSM7312) (Config)#interface 0/8
(GSM7312) (Interface 0/8)#vlan participation exclude 1
(GSM7312) (Interface 0/8)#vlan participation include 7
(GSM7312) (Interface 0/8)#no vlan tagging 7
(GSM7312) (Interface 0/8)#vlan pvid 7
(GSM7312) (Interface 0/8)#exit
(GSM7312) (Config)#interface 0/9
(GSM7312) (Interface 0/9)#vlan participation exclude 1
(GSM7312) (Interface 0/9)#vlan participation include 7
(GSM7312) (Interface 0/9)#no vlan tagging 7
(GSM7312) (Interface 0/9)#vlan pvid 7
(GSM7312) (Interface 0/9)#exit
(GSM7312) (Config)#interface 0/10
(GSM7312) (Interface 0/10)#vlan participation include 1
(GSM7312) (Interface 0/10)#no vlan tagging 1
(GSM7312) (Interface 0/10)#vlan pvid 1
(GSM7312) (Interface 0/10)#exit
(GSM7312) (Config)#interface 0/11
(GSM7312) (Interface 0/11)#vlan participation include 1
(GSM7312) (Interface 0/11)#vlan participation include 2
(GSM7312) (Interface 0/11)#vlan participation include 3
(GSM7312) (Interface 0/11)#vlan participation include 4
(GSM7312) (Interface 0/11)#vlan participation include 5
(GSM7312) (Interface 0/11)#vlan participation include 6
(GSM7312) (Interface 0/11)#vlan participation include 7
(GSM7312) (Interface 0/11)#vlan tagging 1
(GSM7312) (Interface 0/11)#vlan tagging 2
(GSM7312) (Interface 0/11)#vlan tagging 3
(GSM7312) (Interface 0/11)#vlan tagging 4
(GSM7312) (Interface 0/11)#vlan tagging 5
(GSM7312) (Interface 0/11)#vlan tagging 6
(GSM7312) (Interface 0/11)#vlan tagging 7
(GSM7312) (Interface 0/11)#vlan pvid 1
(GSM7312) (Interface 0/11)#exit
(GSM7312) (Config)#interface 0/12
(GSM7312) (Interface 0/12)#vlan participation include 1
(GSM7312) (Interface 0/12)#vlan participation include 4
(GSM7312) (Interface 0/12)#vlan participation include 5
(GSM7312) (Interface 0/12)#vlan tagging 1
(GSM7312) (Interface 0/12)#vlan tagging 4
(GSM7312) (Interface 0/12)#vlan tagging 5
(GSM7312) (Interface 0/12)#vlan pvid 1
(GSM7312) (Interface 0/12)#exit
(GSM7312) (Config)#exit
(GSM7312) #copy system:running-config nvram:startup-config
Are you sure you want to save? (y/n) y
Configuration Saved!
(GSM7312) #show vlan 1
VLAN ID: 1
VLAN Name: Default
VLAN Type: Default
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- -
0/1 Include Include Tagged
0/2 Exclude Autodetect Untagged
0/3 Exclude Autodetect Untagged
0/4 Exclude Autodetect Untagged
0/5 Exclude Autodetect Untagged
0/6 Exclude Autodetect Untagged
0/7 Exclude Autodetect Untagged
0/8 Exclude Autodetect Untagged
0/9 Exclude Autodetect Untagged
0/10 Include Include Untagged
0/11 Include Include Tagged
0/12 Include Include Tagged
GSM7312) #show vlan 2
VLAN ID: 2
VLAN Name: vlan2
VLAN Type: Static
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- -
0/1 Include Include Tagged
0/2 Exclude Autodetect Untagged
0/3 Exclude Autodetect Untagged
0/4 Exclude Autodetect Untagged
0/5 Exclude Autodetect Untagged
0/6 Exclude Autodetect Untagged
0/7 Exclude Autodetect Untagged
0/8 Exclude Autodetect Untagged
0/9 Exclude Autodetect Untagged
0/10 Exclude Autodetect Untagged
0/11 Include Include Tagged
0/12 Exclude Autodetect Untagged
(GSM7312) #show vlan 3
VLAN ID: 3
VLAN Name: vlan3
VLAN Type: Static
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- -
0/1 Include Include Tagged
0/2 Exclude Autodetect Untagged
0/3 Exclude Autodetect Untagged
0/4 Exclude Autodetect Untagged
0/5 Exclude Autodetect Untagged
0/6 Exclude Autodetect Untagged
0/7 Exclude Autodetect Untagged
0/8 Exclude Autodetect Untagged
0/9 Exclude Autodetect Untagged
0/10 Exclude Autodetect Untagged
0/11 Include Include Tagged
0/12 Exclude Autodetect Untagged
(GSM7312) #show vlan 4
VLAN ID: 4
VLAN Name: vlan4
VLAN Type: Static
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- -
0/1 Exclude Autodetect Untagged
0/2 Exclude Autodetect Untagged
0/3 Exclude Autodetect Untagged
0/4 Exclude Autodetect Untagged
0/5 Exclude Autodetect Untagged
0/6 Exclude Autodetect Untagged
0/7 Exclude Autodetect Untagged
0/8 Exclude Autodetect Untagged
0/9 Exclude Autodetect Untagged
0/10 Exclude Autodetect Untagged
0/11 Include Include Tagged
0/12 Include Include Tagged
(GSM7312) #show vlan 5
VLAN ID: 5
VLAN Name: vlan5
VLAN Type: Static
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- -
0/1 Exclude Autodetect Untagged
0/2 Exclude Autodetect Untagged
0/3 Exclude Autodetect Untagged
0/4 Exclude Autodetect Untagged
0/5 Exclude Autodetect Untagged
0/6 Exclude Autodetect Untagged
0/7 Exclude Autodetect Untagged
0/8 Exclude Autodetect Untagged
0/9 Exclude Autodetect Untagged
0/10 Exclude Autodetect Untagged
0/11 Include Include Tagged
0/12 Include Include Tagged
(GSM7312) #show vlan 6
VLAN ID: 6
VLAN Name: vlan6
VLAN Type: Static
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- -
0/1 Exclude Autodetect Untagged
0/2 Include Include Untagged
0/3 Include Include Untagged
0/4 Include Include Untagged
0/5 Include Include Untagged
0/6 Exclude Autodetect Untagged
0/7 Exclude Autodetect Untagged
0/8 Exclude Autodetect Untagged
0/9 Exclude Autodetect Untagged
0/10 Exclude Autodetect Untagged
0/11 Include Include Tagged
0/12 Exclude Autodetect Untagged
(GSM7312) #show vlan 7
VLAN ID: 7
VLAN Name: vlan7
VLAN Type: Static
slot/port Current Configured Tagging
- -- --- --- ---- ---- ---- --- --- -- --- ---- -
0/1 Exclude Autodetect Untagged
0/2 Exclude Autodetect Untagged
0/3 Exclude Autodetect Untagged
0/4 Exclude Autodetect Untagged
0/5 Exclude Autodetect Untagged
0/6 Include Include Untagged
0/7 Include Include Untagged
0/8 Include Include Untagged
0/9 Include Include Untagged
0/10 Exclude Autodetect Untagged
0/11 Include Include Tagged
0/12 Exclude Autodetect Untagged
(GSM7312) #show vlan port all
Port Acceptable Ingress Default
slot/port VLAN ID Frame Types Filtering GVRP Priority
--------- ------- ------------ ----------- ------- --------
0/1 1 Admit All Disable Disable 0
0/2 6 Admit All Disable Disable 0
0/3 6 Admit Al lDisable Disable 0
0/4 6 Admit All Disable Disable 0
0/5 6 Admit All Disable Disable 0
0/6 7 Admit All Disable Disable 0
0/7 7 Admit All Disable Disable 0
0/8 7 Admit All Disable Disable 0
0/9 7 Admit All Disable Disable 0
0/10 1 Admit All Disable Disable 0
0/11 1 Admit All Disable Disable 0
0/12 1 Admit All Disable Disable 0
(GSM7312) #
序号 no. |
日期 date |
作者 author |
摘要 summary |
1 |
2010-10-24 |
Weifeng.Yang |
文档创建 |
2 |
2010-11-15 |
Weifeng Yang |
文档校对 |