迈普S3024B交换机配置命令

合集下载

迈普交换机配置指导书

迈普交换机配置指导书

迈普交换机配置指导书1.通过Console口配置交换机(同HW2016一样)通过配置线将终端的RS-232串口与交换机的Console口相连。

配置用PCPC机串口MyPower S3000B 配置口2.迈普交换机基本配置enacon t 进入配置模式vlan 2 创建vlan 2port 0/0 tagexlayer2-mode disable 关闭2层模式interface sw0 进入SW0接口ip address 192.168.x.x 255.255.255.0 配置管理地址x范围(2-254) vlan-id 2 管理vlanexitip route 0.0.0.0 0.0.0.0 192.168.x.1 静态路由,指向管理地址x网关enable password level 15 admin 为交换机密码igmpsnoop en 打开组播exitwr3.中兴交换机配置实例Switch# show runBuild configration... doneCurrent configration: 1701 bytesuser admin password 7 OWRW[WWW\W user admin privilege 15enable password OWRW[WWW\W encryptservice password-encryptservice login-securelayer2-mode disablevlan 1description defaultport 0/0-0/15 untaggedvlan 2description VLAN0002port 0/0 taggedvlan 1065description VLAN1065port 0/0-0/15 untaggedvlan 2103description VLAN2103port 0/0-0/15 taggedvlan 2104description VLAN2104port 0/0-0/15 taggedexitigmpsnoop enable!slot 0port 0/1pvid 1065storm-control disableexitport 0/2pvid 1065exitport 0/3pvid 1065storm-control disable exitport 0/4pvid 1065storm-control disable exitport 0/5pvid 1065storm-control disable exitport 0/6pvid 1065storm-control disable exitport 0/7pvid 1065storm-control disable exitport 0/8pvid 1065storm-control disable exitport 0/9pvid 1065storm-control disable exitport 0/10pvid 1065storm-control disable exitport 0/11pvid 1065storm-control disable exitport 0/12pvid 1065storm-control disable exitport 0/13pvid 1065exitport 0/14pvid 1065storm-control disableexitport 0/15pvid 1065storm-control disableexitinterface loopback0ip address 127.0.0.1 255.0.0.0exitinterface sw0ip address 192.168.14.2 255.255.255.0vlan-id 2exitip route 0.0.0.0 0.0.0.0 192.168.14.1Switch#3.1 举例说明例:1端口为主端口,2,3端口为下挂交换机端口,4,5端口为普通农带,6-10端口为家庭网关数据,11-12为单个可视电话用户,13端口为网络IP电话用,14端口为带网络IP电话的家庭网关网户,15端口为IP电话用户。

迈普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)#。

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

迈普30xxB交换机vlan配置简例
S3024B(config-vlan2)#ex
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

迈普交换机配置

迈普交换机配置

迈普交换机配置迈普交换机配置迈普交换机基本配置一. 基本配置进入特权模式:Switch> enSwitch#进入全局模式:Switch# config terminalSwitch(Config)#退出命令 exit举例:Switch#exitSwitch>帮助命令 help举例:Switch>helpenable -- Enable Privileged mode exit -- Exit telnet session时钟配置:clock set功能:设置系统日期和时钟。

参数:为当前时钟,HH 取值范围为0~23,MM 和SS 取值范围为0~59;< YYYY/MM/DD >为当前年、月和日,YYYY 取值范围为2000~2035, MM 取值范围为1~12,DD 取值范围为1~31。

举例:设置交换机当前日期为2002年 8月 1日 23时 0分 0秒。

Switch# clock set 23:0:0 2002.8.1 相关命令:show clock超时设置:exec timeout 功能:设置退出特权用户配置模式超时时间。

参数:< minute >为时间值,单位为分钟,取值范围为0~300。

命令模式:全局配置模式。

缺省情况:系统缺省为5分钟。

使用指南:为确保交换机使用的安全性,防止非法用户的恶意操作,当特权用户在做完最后一项配置后,开始计时,到达设置时间值时,系统就自动退出特 are no special instructions below, in this report, the "I" mean green townin yingde city middle school, "we" means young qingtang town middle school in the Township of yingde city middle school teachers ' professional development study group. ) The actual condition and the specific situation of young teachers ' professional development for young teachers ' College ... (A) (Young teachers of) basic information data analysis 1th problem you of gender () [single topics] option small meter proportion a,. male 14 29.17% b. female 34 70.83% beside the effective fill in passengers 48 from survey of data view, I school young teachers in the, female teachers 34 people, male teachers 14 people, high out 20 people; from by accounted for proportion view, female teachers accounted for than 70.83%, male teachers 29. 17%, ratio of female teachers account for 41.66 percent. Young teacher in our school can be seen in the serious imbalance in the sex ratio, obviously there with the current outlooks a greater relationship. This requires the attention of our Administrative Department of education high allocations in education issues. 2nd questions how old you are (a) [form] (A) (Young teachers of) basic information data analysis 1th problem you of gender () [single topics] option small meter proportion a,. male 14 29.17% b. female权用户配置模式。

迈普交换机基本配置

迈普交换机基本配置

迈普交换机配置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 拨号端口配置模式系统配置。

迈普命令

迈普命令

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 fr
router(config-line)#login /使能可以登陆
router(config)#line con 0 /进入控制口的服务模式
(config-line)#password xxx /要设置console的密码
router(config-line)#login /使能可以登陆
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 /广播转单播报文,指定邻居的接i

迈普交换机常用命令手册

迈普交换机常用命令手册 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)。

迈普交换机基本配置

迈普交换机配置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 拨号端口配置模式系统配置。

迈普路由配置常用命令

迈普配置常用命令视图模式介绍:普通视图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章交换机基本配置命令 (5)1.1基本配置及维护调试命令 (5)1.1.1 authentication login (5)1.1.2 clear logging (5)1.1.3 clock set (5)1.1.4 config (6)1.1.5 debug ssh-server (6)1.1.6 enable (6)1.1.7 enable password (7)1.1.8 exec-timeout (7)1.1.9 exit (7)1.1.10 help (8)1.1.11 hostname (8)1.1.12 ip host (8)1.1.13 ip http server (9)1.1.14 language (9)1.1.15 login (9)1.1.16 logging (10)1.1.17 login local (10)1.1.18 password (11)1.1.19 ping (11)1.1.20 reload (12)1.1.21 service password-encryption (12)1.1.22 service terminal-length (12)1.1.23 set default (13)1.1.24 setup (13)1.1.25 show clock (13)1.1.26 show debugging (13)1.1.27 show flash (14)1.1.28 show history (14)1.1.29 show logging buffered (15)1.1.30 show memory (15)1.1.31 show running-config (15)1.1.32 show ssh-server (16)1.1.33 show ssh-user (16)1.1.34 show startup-config (16)1.1.35 show switchport interface (17)1.1.36 show tcp (17)1.1.37 show telnet login (18)1.1.41 show version (19)1.1.42 ssh-server authentication-retries (19)1.1.43 ssh-server enable (20)1.1.44 ssh-server host-key create rsa (20)1.1.45 ssh-server timeout (20)1.1.46 ssh-user (21)1.1.47 telnet (21)1.1.48 telnet-server enable (22)1.1.49 telnet-server securityip (22)1.1.50 telnet-user (22)1.1.51 terminal length (23)1.1.52 terminal monitor (23)1.1.53 traceroute (23)1.1.54 username (24)1.1.55 web-user (24)1.1.56 write (25)1.2 配置交换机的IP地址 (25)1.2.1 ip address (25)1.2.2 ip bootp-client enable (25)1.2.3 ip dhcp-client enable (26)1.3 SNMP命令 (26)1.3.1 debug snmp mib (26)1.3.2 debug snmp keneral (26)1.3.3 rmon enable (27)1.3.4 show snmp (27)1.3.5 show snmp engineid (29)1.3.6 show snmp group (29)1.3.7 show snmp mib (30)1.3.8 show snmp status (30)1.3.9 show snmp user (30)1.3.10 show snmp view (31)1.3.11 snmp-server community (31)1.3.12 snmp-server enable (32)1.3.13 snmp-server enable traps (32)1.3.14 snmp-server engineid (33)1.3.15 snmp-server group (33)1.3.16 snmp-server host (33)1.3.17 snmp-server securityip (34)1.4交换机升级命令 (36)1.4.1 copy(FTP) (36)1.4.2 copy(TFTP) (37)1.4.3 dir (37)1.4.4 ftp-server enable (38)1.4.5 ftp-server timeout (38)1.4.6 ip ftp (38)1.4.7 show ftp (39)1.4.8 show tftp (39)1.4.9 tftp-server enable (39)1.4.10 tftp-server retransmission-number (40)1.4.11 tftp-server transmission-timeout (40)1.5 TACACS+命令 (40)1.5.1 tacacs-server authentication host (40)1.5.2 tacacs-server key (41)1.5.3 tacacs-server timeout (41)1.5.4 debug tacacs-server (42)第2章集群配置命令 (43)2.1 CLEAR CLUSTER CANDIDATE TABLE (43)2.2 CLUSER AUTO-ADD (44)2.3 CLUSTER COMMANDER (44)2.4 CLUSTER HEARTBEAT (45)2.5 CLUSTER HOLDTIME (45)2.6 CLUSTER IP-POOL (46)2.7 CLUSTER MEMBER (46)2.8 CLUSER REGISTER TIMER (47)2.9 CLUSTER RESET MEMBER (47)2.10 CLUSTER RUN (48)2.11 CLUSTER UPDATE MEMBER (48)2.12 DEBUG CLUSTER APPLICATION (49)2.13 DEBUG CLUSTER PACKETS (50)2.14 DEBUG CLUSTER STATEMACH (50)2.15 RCOMMAND COMMANDER (50)2.16 RCOMMAND MEMBER (51)2.17 SHOW CLUSTER (51)2.18 SHOW CLUSTER CANDIDATES (52)2.19 SHOW CLUSTER MEMBERS (52)第1章交换机基本配置命令1.1 基本配置及维护调试命令1.1.1authentication login命令:authentication login {local | radius | tacacs}no authentication login功能:配置Telnet Server对远程登录用户的密码验证方式和优先级;该命令的no命令恢复缺省验证方式。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 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)#。

相关文档
最新文档