迈普S3024B交换机配置命令
迈普30xxB交换机vlan配置简例

S3024B(config)#port 0/18-0/20 //修改18-20口的pvid为对应的vlan id,也就是2
S3024B(config-port-range)#pvid 2
S3024B>en
password:
S3024B#
S3024B#
S3024B#
S3024B#conf t
% Enter configuration commands, one per line. End with CNTL+Z.
S3024B(config)#vlan 2 //创建vlan2
login:admin //假定要创建的vlan是vlan2和vlan3,vlan2包括port18-20,vlan3包括port21-23,port0/0作为上联trunk口。
password: 您的设备是3016的话,端口的编号可能有少许不同。
pvid 2
exit
port 0/19
pvid 2
exit
port 0/20
pvid 2
exit
port 0/21
pvid 3
exit
port 0/22
pvid 3
exit
port 0/23
pvid 3
exit
!
最后在#下wr保存配置
user admin privilege 15
enable password OW encrypt
service password-encrypt
service login-secure
vlan 1
迈普交换机基本配置范文

1、迈普设备配置基本命令用户名密码为admin adminSwitch>enableSwith#config?terminalSwith(config)#vlan 70 //新建vlan70Switch(Config-If-Vlan70)#name guanli //将vlan70 命名为guanliSwitch(Config-If-Vlan70)#ip address//配置交换机管理地址Switch(Config-If-Vlan70)#no shutdownSwitch(Config-If-Vlan70)#exit//配置交换机路由Swith(config)#vlan 338,440 //新建vlan338,440Switch(Config)# int ethernet 0/0/1 //进入端口Switch(Config-Ethernet1-0/0/1)# no shutdown //打开端口Switch(Config-Ethernet1-0/0/1)# switchport mode access //将端口定义为access口Switch(Config-Ethernet1-0/0/1)# switchport access vlan 338 //将vlan338加入到该端口Switch(Config-Ethernet1-0/0/1)# exitSwitch(Config)# int ethernet 0/0/2-19;ethernet 0/0/20 //进入端口组Switch(Config-Port-Range)#switchport mode access //将端口组定义为access口Switch(Config-Port-Range)#switchport access vlan 440 //将vlan440加入到该端口组Switch(Config-Port-Range)#exitSwitch(Config)#int ethernet 0/0/21 //进入端口Switch(Config-Ethernet1-0/0/21)# switchport mode trunk //将端口定义为trunk口Switch(Config-Ethernet1-0/0/21)#switchport trunk allowed vlan 70;338;440//该端口允许vlan70,338,440通过Switch(Config-Ethernet1-0/0/21)#exitSwitch(Config)#exitSwitch#write //保存2、迈普设备故障处理基本命令1)查看交换机端口状态2)查看交换机端口描述3)查寻mac地址4)修改交换机配置打开端口no shutdown关闭端口shutdown。
迈普交换机基本配置

迈普交换机配置1、迈普设备配置基本命令用户名密码为:admin adminSwitch>enable //进入普通用户模式-只能看看Switch#config terminal //进入全局配置模式Switch(config)#vlan 70 //新建vlan 70Switch(config-If-Vlan70)#name guanli //将vlan70命名为guanli Switch(config-If-Vlan70)#ip address 172.17.202.21255.255.255.0//配置交换机管理地址Switch(config-If-Vlan70)#no shutdownSwitch(config-If-Vlan70)#exitSwitch(config)#ip route-static 0.0.0.0 0.0.0.0 172.17.202.1//配置交换机路由Switch(Config)#vlan 338,440 //新建vlan338,440Switch(config)#int ethernet 0/0/1 //进入端口Switch(Config- Ethernet- 0/0/1)#no shutdown //打开端口Switch(Config- Ethernet- 0/0/1)#switchport mode access//将端口定义为access口Switch(Config- Ethernet- 0/0/1)#switchport access vlan 388//将vlan338加入该端口Switch(Config- Ethernet- 0/0/1)#exit //退出Switch(Config)# int ethernet 0/0/12-19;int ethernet 0/0/20 //进入端口组Switch(Config-Port-Range)#switchport mode access //将端口组定义为access口Switch(Config-Port-Range)#switchport access vlan 440//将vlan440加入该端口组Switch(Config-Port-Range)#exit //退出Switch(Config)# int ethernet 0/0/21 //进入端口Switch(Config- Ethernet-0/0/21)# switchport mode trunk//将端口定义为trunk口Switch(Config- Ethernet-0/0/21)#switchport trunk aaowed vlan70;338;440 //该端口允许Vlan70,338,440通过Switch(Config- Ethernet-0/0/21)exit //退出0/0/21 端口Switch(Config)# exit //退出.Switch#write //保存2、迈普设备故障处理基本命令1)查看交换机端口状态2)查看交换机端口描述3)查询mac地址4)修改交换机配置打开端口no shutdown关闭端口no shutdown迈普路由器配置与维护enable 普通用户模式只能看看特权用户模式:filesystem 文件系统模式configure 全局配置模式---- interface 接口配置模式router*** 路由配置模式ipsccess-list 访问列表配置模式voice-port 语音口配置模式dial-peer 拨号端口配置模式系统配置。
迈普交换机常用命令手册

迈普交换机常用命令手册 Prepared on 22 November 2020迈普交换机常用命令手册目录1、各种命令模式介绍及模式间切换方法1)普通用户模式,输入用户名及口令后,默认进入“普通用户模式”,执行quit命令退出。
2)特权用户模式在普通用户模式下执行enable命令,输入口令后进入“特权用户模式”,执行disable命令退回到普通用户模式。
注明:在该模式可以查看端口概述信息、查看交换机配置、查看交换机版本等,但无法修改交换机配置。
3)全局模式在特权模式下执行configterminal命令进入“全局模式”,执行exit命令退回到特权模式下。
备注:该模式可以配置交换机运行所需的全局参数,但无法执行TELNET操作。
4)端口配置模式在全局模式下或者接口模式下执行interface命令(同时指定相应的接口类型、接口号),进入“端口配置模式”,执行exit命令退回到全局配置模式。
备注:在该模式下,可以对端口进行配置。
如:设置端口类型、设置端口归属VLAN、开启或关闭端口POE功能等。
2、交换机维护常用命令1)查看当前交换机的配置信息【命令】showrunning-config【命令模式】特权模式或全局模式【示例】2)查看当前交换机端口的概述信息【命令】showinterethernetstatus【命令模式】特权模式或全局模式【示例】3)查看当前交换机端口的POE状态【命令】showpowerinlineinterface【命令模式】特权模式或全局模式【示例】4)查看当前交换机的MAC地址表的内容【命令】showmac-address-table【命令模式】特权模式或全局模式【示例】5)查看当前交换机的ARP映射表【命令】showarp【命令模式】特权模式或全局模式【示例】6)查看当前交换机的型号【命令】showversion【命令模式】特权模式或全局模式【示例】7)开启和关闭交换机端口【命令】开启/关闭:shutdown/noshutdown【命令模式】端口配置模式【举例】8)开启和关闭交换机端口POE功能【命令】开启/关闭:powerinlineenable/nopowerinlineenable【命令模式】端口配置模式【备注】开启端口POE功能前,须在“全局模式”开启POE功能(powerinlineenable)。
迈普路由配置常用命令

迈普配置常用命令视图模式介绍:普通视图router>特权视图router# /在普通模式下输入enable全局视图router(config)# /在特权模式下输入config t接口视图router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0路由协议视图router(config-route)# /在全局模式下输入router 动态路由协议名称1、基本配置:router>enable /进入特权模式router#conf t /进入全局配置模式router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字router(config)#enable password /设置特权口令router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密router(config)#line vty 0 4 /进入设置telnet服务模式router(config-line)#password xxx /设置telnet的密码router(config-line)#login /使能可以登陆router(config)#line con 0 /进入控制口的服务模式router(config-line)#password xxx /要设置console的密码router(config-line)#login /使能可以登陆2、接口配置:router(config)#int s0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口)router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码router(config-if)#enca hdlc/ppp 捆绑链路协议hdlc 或者ppp 思科缺省串口封装的链路层协议是HDLC所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的enca ppp或者enca frrouter(config)#int loopback /建立环回口(逻辑接口)模拟不同的本机网段router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口在物理接口上配置了ip地址后用no shut启用这个物理接口反之可以用shutdown管理性的关闭接口3、路由配置:(1)静态路由router(config)#ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 下一条或自己的接口router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由(2)动态路由rip协议router(config)#router rip /启动rip协议router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段router(config-router)#version 2 转换为rip 2版本router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用router(config-router)# passive-int 接口名/启动本路由器的那个接口为被动接口router(config-router)# nei xxx.xxx.xxx.xxx /广播转单播报文,指定邻居的接ip,igrp协议-----内部网关路由协议(IGRP:Interior Gateway Routing Protocol)router(config)#router igrp xxx /启动igrp协议router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段router(config-router)#variance xxx /调整倍数因子,使用不等价的负载均衡eigrp---Enhanced Interior Gateway Routing Protocol(增强网关内部路由线路协议)router(config)#router eigrp xxx /启动协议router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段router(config-router)#variance xxx /调整倍数因子,使用不等价的负载均衡router(config-router)#no auto-summary /关闭自动汇总功能ospf协议----开放最短路径协议(OSPF)协议router(config)#router ospf xxx /启动协议启动一个OSPF协议进程router(config-router)#network xxx.xxx.xxx.xxx area xxx /宣告自己的接口或网段在ospf的区域中,可以把不同接口宣告在不同区域中router(config-router)#router-id xxx.xxx.xxx.xxx /配置路由的idrouter(config-router)#area xxx stub /配置xxx区域为末梢区域,加入这个区域的路由器全部要配置这个条命令router(config-router)#area xxx stub no-summary /配置xxx区域为完全末梢区域,只在ABR上配置router(config-router)#area xxx nssa /配置xxx区域为非纯末梢区域,加入这个区域的路由器全部要配置这个条命令router(config-router)#area xxx nssa no-summary /配置xxx区域为完全非纯末梢区域,只在ABR上配置,并发布缺省路由信息进入这个区域内的路由器4、保存当前修改/运行的配置:router#write /将RAM中的当前配置存储到NVRAM中,下次路由器启动就是执行保存的配置router#Copy running-config startup-config /命令与write效果一样5、一般的常用命令router(config-if)#exitrouter(config)#router(config-router)#exitrouter(config)#router(config-line)#exitrouter(config)#router(config)#exitrouter#exit命令/从接口、协议、line等视图模式下退回到全局配置模式,或从全局配置模式退回到特权模式router(config-if)#endrouter(config-router)#endrouter(config-line)#endrouter#end命令/从任何视图直接回到特权模式router#Logout /退出当前路由器登陆模式相对与windows的注销router#reload /重新启动路由器(热启动)冷启动就是关闭路由器再打开电源开关特权模式下:router#show ip route /查看当前的路由表router#clear ip route * /清楚当前的路由表router#show ip protocol /查看当前路由器运行的动态路由协议情况router#show ip int brief /查看当前的路由器的接口ip地址启用情况router#show running-config /查看当前运行配置router#show startup-config /查看启动配置router#debug ip pack /打开ip报文的调试router#terminal monitor /输出到终端上显示调试信息router#show ip eigrp neighbors /查看eigrp协议的邻居表router#show ip eigrp top //查看eigrp协议的拓朴表router#show ip eigrp interface /查看当前路由器运行eigrp协议的接口情况router#show ip ospf neighbor /查看当前路由器的ospf协议的邻居表router#show ip ospf interface /查看当前路由器运行ospf协议的接口情况router#clear ip ospf process /清楚当前路由器ospf协议的进程router#Show interfaces /显示设置在路由器和访问服务器上所有接口的统计信息. 显示路由器上配置的所有接口的状态router#Show interfaces serial /显示关于一个串口的信息router#Show ip interface /列出一个接口的IP信息和状态的小结, 列出接口的状态和全局参数。
迈普交换机基本配置

1、迈普设备配置基本命令用户名密码为 admin adminSwitch>enableSwith#config?terminalSwith(config)#vlan 70 //新建vlan70Switch(Config-If-Vlan70)#name guanli //将vlan70 命名为guanli Switch(Config-If-Vlan70)#ip address//配置交换机管理地址Switch(Config-If-Vlan70)#no shutdownSwitch(Config-If-Vlan70)#exit//配置交换机路由Swith(config)#vlan 338,440 //新建vlan338,440Switch(Config)# int ethernet 0/0/1 //进入端口Switch(Config-Ethernet1-0/0/1)# no shutdown //打开端口Switch(Config-Ethernet1-0/0/1)# switchport mode access //将端口定义为access口Switch(Config-Ethernet1-0/0/1)# switchport access vlan 338 //将vlan338加入到该端口Switch(Config-Ethernet1-0/0/1)# exitSwitch(Config)# int ethernet 0/0/2-19;ethernet 0/0/20 //进入端口组Switch(Config-Port-Range)#switchport mode access //将端口组定义为access口Switch(Config-Port-Range)#switchport access vlan 440 //将vlan440加入到该端口组Switch(Config-Port-Range)#exitSwitch(Config)#int ethernet 0/0/21 //进入端口Switch(Config-Ethernet1-0/0/21)# switchport mode trunk //将端口定义为trunk口Switch(Config-Ethernet1-0/0/21)#switchport trunk allowed vlan 70;338;440 //该端口允许vlan70,338,440通过Switch(Config-Ethernet1-0/0/21)#exitSwitch(Config)#exitSwitch#write //保存2、迈普设备故障处理基本命令1)查看交换机端口状态2)查看交换机端口描述3)查寻mac地址4)修改交换机配置打开端口 no shutdown 关闭端口 shutdown。
迈普路由器设置命令

迈普路由器设置命令修改已设有IP的MP路由器IPcmdtelnet 192.168.1.1密码:adminen密码:admin查看路由设置:sh run配置权限:conf t输入:ip access-list extended 1001输入:permit ip any any (允许任何IP地址通过)退出:exit修改参数:interface fastethernet0输入外网IP:ip address 外网IP和掩码218.204.51.111 255.255.255.128表明上面输入的是外网IP:ip nat outside退出:exit输入局域网IP:interface fastethernet1输入局域网IP:ip address 局域网IP和掩码192.168.1.1 255.255.255.0表明上面输入的是局域网IP:ip nat inside退出:exit输入:ip nat inside source list 1001 interface fastethernet0 overload设置外网网关:ip route 0.0.0.0 0.0.0.0 218.204.51.1配置telnet权限:line vty 0 4输入:password 0 admin输入:login退出:exit配置权限:conf tRouter (config)#hostname XXXX //配置路由器名称,可将router修改为需要的名称。
Router (config)#Enable password admin //配置密码设置自动分配:ip dhcp pool 250局域网ip分配:range 192.168.1.2 192.168.1.250 255.255.255.0 局域网网关:default-router 192.168.1.1局域网DNS:dns-server 211.138.245.180 203.196.0.6退出:exit退出:end输入:wr选择:y映射:全局模式:ip nat inside source static tcp 192.168.1.3 3389 172.88.1.146 3389。
迈普S3024B交换机配置命令

Switch (config-port-0/1)#pvid 200 ··········给该端口添加vlan 值200
2、添加路由 Switch (config)#ip route 0.0.0.0 0.0.0.0 192.168.100.1 ··把所有IP数据全部指向网关192.168.100.1 【switch】 六、删除及更改命令 1、更换vlan 把boss vlan 14改为boss vlan 40 把0/9端口vlan值改为40 vlan 1 description default port 0/0-0/23 untagged vlan 14 description boss port 0/0 tagged port 0/1-0/8 untagged vlan 21 description cmnet port 0/0 tagged port 0/9-0/15 untagged exit !slot 0 port 0/1 pvid 14 exit port 0/2 pvid 14 exit port 0/3 pvid 14 exit port 0/4 pvid 14 exit port 0/5 pvid 14 exit
Switch(config-fs)#delete startup ·······················删除交换机配置文件
Switch(config-fs)#restore······························重新启动
二、保存命令:
Switch>en·······························普通用户模式en进入特权模式
1、查看所有配置
Switch#show run (show running-config)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
迈普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)#。