迈普交换机系统配置基础培训课件
- 格式:doc
- 大小:682.50 KB
- 文档页数:12
1、迈普设备配置基本命令用户名密码为admin adminSwitch>enableSwith#config terminalSwith(config)#vlan 70 //新建vlan70Switch(Config-If-Vlan70)#name guanli //将vlan70 命名为guanli Switch(Config-If-Vlan70)#ip address 172.17.202.21 255.255.255.0//配置交换机管理地址Switch(Config-If-Vlan70)#no shutdownSwitch(Config-If-Vlan70)#exitSwith(config)#ip route-static 0.0.0.0 0.0.0.0 172.17.202.1//配置交换机路由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>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。
迈普交换配置详细说明-CAL-FENGHAI.-(YICAI)-Company One1一、如何从console进入交换机带外管理即通过Console进行管理,通常情况下,在首次配置交换机或者无法进行带内管理时,用户会使用带外管理方式。
例如:用户希望通过远程Telnet来访问交换机时,必须首先通过Console给交换机配置一个IP地址。
用户用Console管理的步骤如下:第一、搭建环境:通过串口线连接图 1-1 交换机Console管理配置环境按照图 1-1所示,将PC的串口(RS-232接口)和交换机随机提供的串口线连接,下面是连接中用到的设备说明:设备名称说明PC机有完好的键盘和RS-232串口,并且安装了终端仿真程序,如Windows 系统自带超级终端等。
串口线一端与PC机的RS-232串口相连;另一端与交换机的Console相连。
交换机有完好的Console。
第二、进入超级终端:连接成功后,打开Windows 系统自带超级终端。
下面是打开Windows XP 自带超级终端的示例。
1)点击超级终端:图 1-2打开超级终端一2)在“名称”处填入打开超级终端的名称,例如把它定义为“Switch”:图 1-3打开超级终端二3)在“连接时使用”处,选择PC机使用的RS-232串口,如连接的是串口1,则选择串口1,点击确定按钮:图 1-4 打开超级终端三4)出现COM1属性,波特率选择“9600”,数据位选择“8”,奇偶校验选择“无”,停止位选择“1”,数据流控制选择“无”;或者直接点击“还原默认值”后,点击确定按钮:图1-5 打开超级终端四5)出现超级终端的配置界面:图 1-6 打开超级终端五第三、进入交换机CLI界面:打开交换机的电源开关。
在超级终端的配置界面上出现了如下提示,进入到交换机的CLI配置方式:switch>二、配置模式介绍图 1-11 交换机的Shell 配置模式一般用户模式用户进入CLI 界面,首先进入的就是一般用户模式,提示符为“Switch>”,符号“>”为一般用户模式的提示符。
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。
1、迈普设备配置基本命令用户名密码为admin adminSwitch>enableSwith#config terminalSwith(config)#vlan 70 //新建vlan70Switch(Config-If-Vlan70)#name guanli //将vlan70 命名为guanli Switch(Config-If-Vlan70)#ip address 172.17.202.21 255.255.255.0//配置交换机管理地址Switch(Config-If-Vlan70)#no shutdownSwitch(Config-If-Vlan70)#exitSwith(config)#ip route-static 0.0.0.0 0.0.0.0 172.17.202.1//配置交换机路由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。
迈普交换机基本配置 Document number【980KGB-6898YT-769T8CB-246UT-18GG08】1、迈普设备配置基本命令用户名密码为 admin adminSwitch>enableSwith#configterminalSwith(config)#vlan 70 //新建vlan70Switch(Config-If-Vlan70)#name guanli //将vlan70 命名为guanliSwitch(Config-If-Vlan70)#ip address 172.17.202.21255.255.255.0//配置交换机管理地址Switch(Config-If-Vlan70)#no shutdownSwitch(Config-If-Vlan70)#exitSwith(config)#ip route-static 0.0.0.0 0.0.0.0172.17.202.1//配置交换机路由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 admin Switch>enable // 进入普通用户模式 -只能看看Switch#config terminal // 进入全局配置模式 Switch(config)#vlan 70 // 新建 vlan 70 Switch(config-If-Vlan70)#name guanli // 将 vlan70 命名为 guanli Switch(config-If-Vlan70)#ip address172.17.202.21255.255.255.0 // 配置交换机管理地址Switch(config-If-Vlan70)#no shutdown Switch(config-If-Vlan70)#exit Switch(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 aaowedvlan70;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拨号端口配置模式系统配置配置任务命÷命令功能运疔摸式典型例子配置名称hosinunιe改变路由器名称配童模式rtju tt*rf e∣m∏g l#hi uUns*n⅛rm∣ter配置日历IlOCk配置系统日历特权用户模式FoUtrι*do<⅛20D6Ul 15925 LU配置系统用户IIser潘加系统用户配复榄式ΓC)U Ith Cl)TI Hg )⅛usιr∣ EeiPLLTIKIiPUI配置enuble泄码tιnahh?配■超级用户口令配負模式rυukri CUIlfIA L nUbIC PJsSw⅛Kipassword系统配。
迈普交换机配置迈普交换机基本配置一.基本配置进入特权模式:Switch〉enSwitch#进入全局模式:Switch# config terminalSwitch(Config)#退出命令exit举例:SwitchitexitSwitch>帮助命令help举例:Switch>helpenable ― Enable Privileged mode exit — Exit telnet session时钟配置:clock set <HH:MM:SS> <YYYY/MM/DD>功能:设置系统日期和时钟。
参数>为当前时钟,HH取值范围为0、23, MM和SS取值范围为0~59;< YYYY/MM/DD >为当前年、月和日,YYYY取值范围为2000、2035, 取值范围为1、12, DD取值范围为广31。
举例:设置交换机当前日期为2002年8月1日23时0分。
秒。
Switch#clock set 23:0:0 2002. 8. 1 相关命令:show clock超时设置:exec timeout <minutes >功能:设置退出特权用户配置模式超时时间。
参数:< minute >为时间值,单位为分钟,取值范围为0~300。
命令模式:全局配置模式。
缺省情况:系统缺省为5分钟。
使用指南:为确保交换机使用的安全性,防止非法用户的恶意操作,当特权用户在做完最后一项配置后,开始计时,到达设置时间值时,系统就自动退出特are no special instructions below, in this report, the ”1〃mean green town in yingde city middle school, we z 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 youngteachers 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权用户配置模式。
迈普交换机基本配置 Revised by Jack on December 14,20201、迈普设备配置基本命令用户名密码为 admin adminSwitch>enableSwith#configterminalSwith(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。
迈普交换机系统配置
基础
迈普交换机系统配置基础
系统模式
系统模式及其相互间切换方法(switch 是设备出厂时缺省的系统名称,用户可以在全局配置模式下运行hostname 命令修改系统名称,并且这种修改是立即生效的)
实验一通过配置口(Console)配置交换机
实验步骤:
1、选择一台终端
终端既可以是标准的具有RS-232串口的终端,也可以是一台普通的PC机,更常用的是后者。
如果要从远端配置,则还需两台MODEM。
2、在确认交换机或终端其中至少有一方是关机的情况下,通过配置电缆将终端的RS-232串口与交换机Console口相连。
接线关系如图所示:
3、给终端上电。
设置终端通信参数为波特率9600bps、8 位数据位、1 位停止位、无校验和XON/XOFF。
如果是PC 机,运行Win95/98/2000/NT 操作系统,则运行HyperTerminal(超级终端)程序,并按照以上参数设置超级终端程序的串口参数。
下面以WindowsXP的终端超级终端程序
为例图示说明:
a.为连接填写名称――MP_S3400(可以是其它任意名称),并为所建连接选择一个Windows图标。
b.选择串行通信口
c.配置串行通信口参数
波特率——9600bps
数据位——8位
奇偶校验——无
停止位——1位
流控——xon/xoff
d.登录成功后会在终端上显示“switch>”提示符;就可以对交换机进行配置了。
实验二命令行接口
命令行接口是shell子系统为用户配置、使用交换机而提供的一个人机交互界面,用户通过命令行接口可以输入、编辑命令来完成相应的配置任务,同时也可以通过该接口查看系统信息,了解系统运行状况。
命令行接口为用户提供了如下功能:
●系统帮助信息管理
●系统命令输入、编辑
●接口历史命令管理
●终端显示系统管理
实验步骤:
a.在任一命令模式下,键入“?”获取该命令模式下所有命令及其简单描述。
实验步骤:
b. 键入一命令,后接以空格分隔的“?”,则显示出所有该命令在当前模式下可以执行的子命令。
c. 命令行错误信息汇总。
实验步骤:
d.历史命令。
系统将用户输入的命令自动保存到历史命令缓冲区,用户可以随时调用命令行接口保存的历史命令,并重复执行,从而减少用户不必要的重复输入工作。
实验三配置系统名称
交换机在出厂时,其缺省的系统名称是switch。
在使用过程中,用户可以根据自己的需要,随时改变系统的名称,并且这种改动是立即生效的,即新的系统名称将会在下一次系统提示符的显示中出现。
下面的命令即是将系统名称由“switch”改为“switch_1”:
实验步骤:
实验四配置系统时间
交换机中设置了独立的时钟系统,用来记录系统的当前时间,对于有实时时钟系统的交换机在关电重启后系统能够正确获得当前时间。
实验步骤:
实验五交换机文件管理
迈普交换机有三种存储介质,其用途如下:
·SDRAM:用作交换机的应用程序的执行空间;
·FLASH:用于存放交换机应用程序、配置文件及BootROM程序等;
·EEPROM:用于存放经常改动的系统配置文件、用户信息等。
迈普交换机所管理的文件包括三种:
·交换机应用程序——用于完成路由转发、文件管理、系统管理等工作;
·配置文件——存放用户对系统配置的参数;
·BootROM文件——存放系统初始化的基本数据。
迈普交换机在系统flash设备上构造了一个基于DOS的文件系统,用于存放交换机应用程序(协议软件、驱动程序等)、BootROM程序等很少需要修改的信息。
该文件系统称之为TFFS(True Flash File System)。
实验步骤:
●进入特权用户模式:switch>enable
●进入文件系统配置模式:Switch# filesystem
●文件系统配置模式switch(config-fs)#
●列文件:switch(config-fs)#dir
●查看文件内容:switch(confgi-fs)#type startup
●打印系统当前所处的路径:switch(config-fs)#pwd
●改变系统当前所处的路径:cd dest-dirname
实验六单交换机VLAN配置
迈普S3400交换机的每个物理端口都有UNI/NNI属性。
默认情况下所有
10M/100M端口被设置为UNI端口,其他端口被设置为NNI端口,您也可以通过配置来更改每个端口的UNI/NNI属性。
默认情况下UNI端口是shutdown状态,并且UNI 端口之间不能通信,但UNI 和NNI 端口可以正常通信,NNI 和NNI 之间也能正常通信。
您也可以通过配置使得某些UNI端口之间可以正常通信。
可以使用port-type命令来配置端口的UNI,NNI等属性。
如果要取消,使用no 命令。
实验步骤:
a.配置PORT0/1、PORT0/2…的UNI端口,将要进行通信的端口全部设置成为可以通信的模式。
端口0/1:s321(config-port-0/1)#uni-isolate community
端口0/2:s321(config-port-0/2)#uni-isolate community
……
查看端口配置:
如图所示,PORT0/1和PORT0/2已经可以通信。
b.将PC机和网络设备按照如图所示进行连接
PC对应交换机端口:
Pc0:PORT0/0; Pc1:PORT0/1; Pc2: PORT0/2; Pc3: PORT0/3;
Ip配置:
Pc0:192.168.10.1; Pc1:192.168.10.2; Pc2:192.168.10.3;
Pc3:192.168.10.4;
c.在各个PC上ping其他的pc发现都可以连通。
d.在交换机上配置vlan2、vlan3.
将PC0、PC1加入VLAN2,将PC2、PC3加入VLAN3.
switch#configure terminal………….用户从特权用户模式进入全局配置模式
switch(config)#port 0/1 …………….进入端口0/1配置状态
switch(config-port-0/1)#port mode access ………配置端口模式类型为Access (端口默认模式Access,可以省略)
switch(config-port-0/1)#port access vlan 2 …………端口加入VLAN 2
其余端口类似配置。
查看端口配置显示为如下:
2 2 VLAN0002 static Untagged port 0/0 port 0/1
3 3 VLAN0003 static Untagged port 0/2 port 0/3
s321#
e. 测试。
vlan创建成功,这时候不同vlan的pc不能互相ping通了。