1、选择相应的串口(通常是COM1,一些USB-RS232线缆的串口可能是COM3以上)。选择相应串口以后的端口设置页面,点击“还原为默认值”(即选择9600每秒位数)如图:确定以后接着打开交换机电源,就可以在超级终端看到交换机的启动过程,直到超级终端出现User:提示,输入交换机用户名admin,默认密码为空,并键入enable,enable的默认密码也为空,进入特权模式(#提示符),就可以对交换机进行配置了。这个时候使用network命令对交换机进行地址设置:交换机默认地址是从DHCP获取,没有DHCP地址则为169.254.100.100,使用network protocol none命令取
2、消从获取功能,再使用 network parms gateway命令设置IP,掩码,网关(网关地址可选填)。(FSM7328S) #network protocol noneChanging protocol mode will reset ip configuration.Are you sure you want to continue? (y/n)y假设您给交换机设置地址为192.168.1.51。(FSM7328S) #network parms 192.168.1.51 255.255.255.0 192.168.1.1最后,用save命令保存配置。(FSM7328S) #saveT
3、his operation may take a few minutes.Management interfaces will not be available during this time.Are you sure you want to save? (y/n) yConfiguration Saved!(FSM7328S) #设置完交换机的IP地址以后,就可以通过WEB页面配置或者命令行界面进行配置了。三、通过Web页面配置VLAN a打开IE,在地址栏输入交换机地址192.168.1.51。b 输入登陆名admin,密码默认为空,进入交换机主页面。c打开SwitchingVLAN-B
4、asicVLAN Configuration页面。d输入VLAN ID,VLAN Name(可选),并选择VLAN Type。VLAN 2,在VLAN ID下输入2,VLAN Name下写V2,VLAN Type选Static。最后点击ADD按钮。e继续创建VLAN 3,4,5,6。f到Switching-VLAN-Advanced-VLAN Membership页面设置VLAN说包含的端口。i. VLAN ID处选择VLAN号。 ii. IGroup Operation不选。iii. 点击Unit 1,选择该VLAN所包含的端口端口。状态会在“U”/“T”/“空”之间切换。通常连PC的端口子
5、属于一个VLAN不需要802.Q标记,则选择U标记,属于多个VLAN的交换机互联端口需要802.1Q标记,则选择T标记,如不属于该VLAN,则选择为空。如:1-4口只属于这个VLAN,选择为U,25、26口用于交换机互联,选择为T,其他留空。g重复f步骤,设置VLAN2,3,4,5,6所包含的端口。如VLAN4:h打开Switching-Port PVID Configuration页面,设置端口的PVID。没有802.1Q标记的端口PVID与VLAN号对应,有802.1Q标记的端口则可以不改PVID。那么案例中的PVID设置为:14口为1、5-8口为2、9-12口为3、13-16口为4,17
6、-20口为5,2124口为6,2528口保留为1。如设置13-16口的PVID,先选中1/0/13-1/0/16端口,在上面PVID处输入4,最后点apply应用。i保存交换机配置点击Maintenance-Save Config-Save Configuration,选中“Saving all.”提示下的复选筐后,点击页面下的Apply保存配置。j 查看交换机的VLAN配置信息。在SwitchingVLANAdvanced下的VLAN Status页面进行查看。四、通过命令行界面(CLI)配置交换机VLAN 可以通过超级终端或者Telnet到交换机进行CLI设置。a登陆交换机,输入用户名ad
7、min,密码默认为空,登陆后输入enable进入特权模式,enable的默认密码为空。User:adminPassword:(FSM7328S) enableb创建VLAN,进入vlan data,用vlan x (vlan id)来创建VLAN。(FSM7328S) #vlan database (FSM7328S) (Vlan)#vlan 2(FSM7328S) (Vlan)#vlan 3(FSM7328S) (Vlan)#vlan 4(FSM7328S) (Vlan)#vlan 5(FSM7328S) (Vlan)#vlan 6(FSM7328S) (Vlan)#exit(FSM7328
8、S) # c将端口划分到相应VLAN,并设置PVID。VLAN 1为默认VLAN,无需再次设置,从VLAN 2开始设置,58端口为VLAN2,VLAN PVID为2,以此类推。(FSM7328S) (Config)#interface range 1/0/5-1/0/8(FSM7328S) (conf-if-range-1/0/5-1/0/8)#vlan participation include 2(FSM7328S) (conf-if-range-1/0/5-1/0/8)#vlan pvid 2(FSM7328S) (conf-if-range-1/0/5-1/0/8)#exit(FSM7
9、328S) (Config)#interface range 1/0/9-1/0/12(FSM7328S) (conf-if-range-1/0/9-1/0/12)#vlan participation include 3(FSM7328S) (conf-if-range-1/0/9-1/0/12)#vlan pvid 3(FSM7328S) (conf-if-range-1/0/9-1/0/12)#exit(FSM7328S) (Config)#interface range 1/0/13-1/0/16(FSM7328S) (conf-if-range-1/0/13-1/0/16)#vlan
10、 participation include 4(FSM7328S) (conf-if-range-1/0/13-1/0/16)#vlan pvid 4(FSM7328S) (conf-if-range-1/0/13-1/0/16)#exit(FSM7328S) (Config)#interface range 1/0/17-1/0/20(FSM7328S) (conf-if-range-1/0/17-1/0/20)#vlan participation include 5(FSM7328S) (conf-if-range-1/0/17-1/0/20)#vlan pvid 5(FSM7328S
11、) (conf-if-range-1/0/17-1/0/20)#exit(FSM7328S) (Config)#interface range 1/0/21-1/0/24(FSM7328S) (conf-if-range-1/0/21-1/0/24)#vlan participation include 6(FSM7328S) (conf-if-range-1/0/21-1/0/24)#vlan pvid 6(FSM7328S) (conf-if-range-1/0/21-1/0/24)#exit(FSM7328S) (Config)# d设置交换机互联端口的802.1Q标志。第25,26口为
12、交换机互联的端口,同时属于所有VLAN并标记802.1Q标志。(FSM7328S) (Config)#interface range 1/0/25-1/0/26(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan participation include 2(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan participation include 3(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan participation include 4(FSM7328S) (c
13、onf-if-range-1/0/25-1/0/26)#vlan participation include 5(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan participation include 6(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan tagging 1(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan tagging 2(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan tagging 3(FSM7328S)
14、 (conf-if-range-1/0/25-1/0/26)#vlan tagging 4(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan tagging 5(FSM7328S) (conf-if-range-1/0/25-1/0/26)#vlan tagging 6(FSM7328S) (conf-if-range-1/0/25-1/0/26)#exit(FSM7328S) (Config)#e保存配置。用save命令保存交换机配置 FSM7328S) #savef查看交换机配置信息。使用show running-config change来查看改动
15、的配置。(FSM7328S) #show running-config changed!Current Configuration:System Description FSM7328S 24+4 L3 Stackable SwitchSystem Description 7.3.0.7set prompt FSM7328Snetwork protocol nonenetwork parameters 192.168.1.51 255.255.255.0 192.168.1.1vlan databasevlan2vlan3vlan4vlan5vlan6exit configuresntp cl
16、ient mode unicast sntp server status is activesntp server time-stacklogging bufferedslot 1/0 3set slot power 1/0no set slot disable 1/0lineconfigexitspanning-tree configuration name 00-0F-B5-9C-18-67snmp-server community public2snmp-server community public3snmp-server community public4snmp-server co
17、mmunity public5snmp-server community public6interface1/0/5vlan pvid 2vlan participation include 2interface1/0/6interface1/0/7interface1/0/8interface1/0/9vlan pvid 3vlan participation include 3interface1/0/10interface1/0/11interface1/0/12interface1/0/13vlan pvid 4vlan participation include 4interface
18、1/0/14interface1/0/15interface1/0/16interface1/0/17vlan pvid 5vlan participation include 5interface1/0/18interface1/0/19interface1/0/20interface1/0/21vlan pvid 6vlan participation include 6interface1/0/22interface1/0/23interface1/0/24interface1/0/25vlan tagging 1vlan tagging 2vlan tagging 3vlan tagging 4vlan tagging 5vlan tagging 6interface1/0/26 vlan tagging 1 vlan participation include 2 vlan tagging 2 vlan participation include 3 vlan tagging 3 vlan participation include 4 vlan tagging 4 vlan participation include 5 vlan tagging 5 vlan participation include 6 vlan tagging 6
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1