当前位置:文档之家› 迈普S3024B交换机配置命令

迈普S3024B交换机配置命令

迈普S3024B交换机配置命令用户名:admin密码:admin一、还原出厂设置:login:adminpassword:Switch>enableSwitch#fileSwitch(config-fs)#dir ······························查看文件目录size date time name-------- ------ ------ --------0 JAN-01-2098 00:34:32 LOGGING1830815 JAN-01-2098 00:05:30 30XXB.Z160 JAN-01-2098 00:03:16 PSTCONF.BAK4591 JAN-01-2098 00:02:54 HISTORYSTARTUP.BAKSTARTUP160 JAN-01-2098 00:01:58 PSTCONFSwitch(config-fs)#delete startup ·······················删除交换机配置文件Switch(config-fs)#restore······························重新启动二、保存命令:Switch>en·······························普通用户模式en进入特权模式Switch#write·····························在特权模式下write保存数据Switch (config)#hostname nn-taoyuanting····在全局模式下配置交换机名称三、查看数据在特权模式及全局模式下都能使用show 命令查看1、查看所有配置Switch#show run (show running-config)Switch(config)# show run (show running-config)2、查看vlan 及所属端口Switch(config)#sh vlan (show vlan)dis vlan---- ---- -------------------------------- -----------------------------------NO. VID VLAN-Name Port Number---- ---- -------------------------------- -----------------------------------1 1 default [U] 0/0 0/1 0/2 0/3 0/40/5 0/6 0/7 0/8 0/90/10 0/11 0/12 0/13 0/140/15 0/16 0/17 0/18 0/190/20 0/21 0/22 0/232 100 boss [U] 0/1 0/2 0/3 0/4 0/5[M] 0/03 200 boss2 [U] 0/6 0/7 0/8 0/9 0/10[M] 0/04 300 boss3 [U] 0/11 0/12 0/13 0/14 0/15[M] 0/0四、配置交换机管理IPSwitch>enSwitch#con fSwitch(config)#interface sw0Switch(config-if-sw0)#ip address ········交换机管理设置telnet登陆密码五、新交换机配置1、新建vlanSwitch#con f ···········进入全局模式Switch(config)#vlan 200 ···········新建vlan200Switch(config-vlan200)# ···········进入vlan200端口模式2、给vlan配置指定上行口及划分端口Switch#vlan 200 ···········进入vlan200 端口Switch(config-vlan200)#port 0/0 tagged 打标签···········把0/0以太网口设置为vlan200上行口Switch(config-vlan300)#port 0/0 taggedSwitch(config-vlan39)#port 0/0 taggedSwitch(config-vlan200)#port 0/1-0/5 untagged ···········把交换机0/1至0/5端口分给vlan 200做非标识端口Switch (config)#port 0/1-0/5 ···········进入0/1-0/5组端口Switch (config-port-range)#pvid 200 ···········给该组端口添加vlan 值200 或者Switch (config)#port 0/1 ··········进入0/1端口Switch (config-port-0/1)#pvid 200 ··········给该端口添加vlan 值200 2、添加路由Switch (config)#ip route ··把所有IP数据全部指向网关【switch】六、删除及更改命令1、更换vlan 把boss vlan 14改为boss vlan 40 把0/9端口vlan值改为40vlan 1description defaultport 0/0-0/23 untaggedvlan 14description bossport 0/0 taggedport 0/1-0/8 untaggedvlan 21description cmnetport 0/0 taggedport 0/9-0/15 untaggedexit!slot 0port 0/1pvid 14exitport 0/2pvid 14exitport 0/3pvid 14exitport 0/4pvid 14exitport 0/5pvid 14exitport 0/6pvid 14exitport 0/7pvid 14exitport 0/8pvid 14exitport 0/9pvid 21exitport 0/10pvid 21exitport 0/11pvid 21exitport 0/12pvid 21exitport 0/13pvid 21exitport 0/14pvid 21exitport 0/15pvid 21exit!interface loopback0ip addressexitinterface sw0ip addressvlan-id 14exitsnmp-server enablesnmp-server view internet includesnmp-server community nnboss view internet rosnmp-server engineID local a493601ip route1、操作(更换vlan 把boss vlan 14改为boss vlan 40)s3024B(config)#vlan 40s3024B(config-vlan40)#dess3024B(config-vlan40)#description up-bosss3024B(config-vlan40)#port 0/0 taggeds3024B(config-vlan40)#port 0/1-0/8 untaggeds3024B(config-vlan40)#exits3024B(config)#no vlan 14s3024B(config)#port 0/1-0/8s3024B(config-port-range)#pvid 40s3024B(config-port-range)#2、操作(把0/9端口vlan值改为40)s3024B(config)#vlan 21s3024B(config-vlan21)#no port 0/9s3024B(config-vlan21)#exits3024B(config)#vlan 40s3024B(config-vlan40)#port 0/9 untagged s3024B(config-vlan40)#exits3024B(config)#port 0/9s3024B(config-port-0/9)#pvid 40s3024B(config-port-0/9)#。

相关主题