欢迎来到天天文库
浏览记录
ID:23114767
大小:54.01 KB
页数:5页
时间:2018-11-04
《迈普s3024b交换机配置命令》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、迈普S3024B交换机配置命令用户名:admin密码:admin一、还原出厂设置:login:adminpassword:Switch>enableSwitch#fileSwitch(config-fs)#dir······························查看文件目录sizedatetimename----------------------------0JAN-01-209800:34:32LOGGING1830815JAN-01-209800:05:3030XXB.Z160JAN-01-209800:03:16PSTCON
2、F.BAK4591JAN-01-209800:02:54HISTORYSTARTUP.BAKSTARTUP160JAN-01-209800:01:58PSTCONFSwitch(config-fs)#deletestartup·······················删除交换机配置文件Switch(config-fs)#restore······························重新启动二、保存命令:Switch>en·······························普通用户模式en进入特权模式Switch#wr
3、ite·····························在特权模式下write保存数据Switch(config)#hostnamenn-taoyuanting····在全局模式下配置交换机名称三、查看数据在特权模式及全局模式下都能使用show命令查看1、查看所有配置Switch#showrun(showrunning-config)Switch(config)#showrun(showrunning-config)2、查看vlan及所属端口Switch(config)#shvlan(showvlan)disvlan---------
4、------------------------------------------------------------------NO.VIDVLAN-NamePortNumber---------------------------------------------------------------------------11default[U]0/00/10/20/30/40/50/60/70/80/90/100/110/120/130/140/150/160/170/180/190/200/210/220/232100boss[U
5、]0/10/20/30/40/5[M]0/03200boss2[U]0/60/70/80/90/10[M]0/04300boss3[U]0/110/120/130/140/15[M]0/0四、配置交换机管理IPSwitch>enSwitch#confSwitch(config)#interfacesw0Switch(config-if-sw0)#ipaddress192.168.100.5255.255.255.0········交换机管理IP192.168.100.5设置telnet登陆密码五、新交换机配置1、新建vlanSwitch#co
6、nf···········进入全局模式Switch(config)#vlan200···········新建vlan200Switch(config-vlan200)#···········进入vlan200端口模式2、给vlan配置指定上行口及划分端口Switch#vlan200···········进入vlan200端口Switch(config-vlan200)#port0/0tagged打标签···········把0/0以太网口设置为vlan200上行口Switch(config-vlan300)#port0/0taggedSwit
7、ch(config-vlan39)#port0/0taggedSwitch(config-vlan200)#port0/1-0/5untagged···········把交换机0/1至0/5端口分给vlan200做非标识端口Switch(config)#port0/1-0/5···········进入0/1-0/5组端口Switch(config-port-range)#pvid200···········给该组端口添加vlan值200或者Switch(config)#port0/1··········进入0/1端口Switch(config
8、-port-0/1)#pvid200··········给该端口添加vlan值2002、添加路由Switch(config)#iproute0.0.0.00.0.0
此文档下载收益归作者所有