Netgear 7000 系列交换机 VLAN 设置 下载本文

(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 0/4 Include 0/5 Include 0/6 Include 0/7 Include 0/8 Include 0/9 Include 0/10 Include 0/11 Include 0/12 Include (GSM7312) #show vlan 6 VLAN ID: 6 VLAN Name: vlan6 VLAN Type: Static

slot/port Current - -- --- --- ---- ---- ---- --- --- -- --- ---- -

0/1 Include 0/2 Exclude 0/3 Exclude 0/4 Exclude 0/5 Exclude 0/6 Exclude 0/7 Exclude 0/8 Exclude 0/9 Exclude 0/10 Exclude 0/11 Include 0/12 Exclude (GSM7312) #show vlan 7 VLAN ID: 7 VLAN Name: vlan7 VLAN Type: Static

slot/port Current Include Include Include Include Include Include Include Include Include Include Include Autodetect Autodetect Autodetect Autodetect Autodetect Autodetect Autodetect Autodetect Autodetect Include Autodetect Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Untagged Configured Tagging 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页面设置 NETGEARGSM7312交换机802.1Q Vlan设置目标:

在GSM7312上增加简历6个Vlan:Vlan2-7,其中端口1打标记属于VLAN2、VLAN3,端口12打标记属于VLAN4、VLAN5,2-5端口不打标记属于VLAN6,6-9端口不打标记属于VLAN7,10端口不打标记属于VLAN1,11端口打标记属于所有VLAN与上级交换机上连。 端口 1 2 3 4 5 6 7 8 9 10 11 12 配置步骤

1. 使用9针串口设置线连接GSM7324交换机,进入CLI配置界面,使用(GSM7324)# Clear Config命令恢复出厂设置。

2.然后使用命令(GSM7324)#Reload ; 系统提示是否保存现有配置(选择YES)。然后系统重新启动。 3.配置GSM7324交换机管理IP地址为192.168.0.238/24,配置完毕后保存。 4.连接配置计算机的网线到GSM7324的端口10;

5. 打开IE浏览器,在URL处输入http://192.168.0.238/,进入交换机配置管理界面。

6. 点选菜单Switch>VLAN>config ;在VLAN Configuration界面的Default VLAN处选择进行端口配置,1,11,12标记在Tagged、10标记在Untagged;

PVID 1 6 6 6 6 7 7 7 7 7 1 1 U T T VLAN1 T T VLAN2 T T VLAN3 T T T VLAN4 T T T T VLAN5 U U U U VLAN6 U U U U VLAN7

7. 在VLAN Configuration界面的VLAN ID and Name处,下拉选择Create选项进行新的VLAN的创建。 8.在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: