总结:华为、H3C、锐捷三家交换机配置命令详解( 七 )


portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]displayqueue-scheduler//显示队列调度模式及参数
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]displaypriority-trust//显示优先级信任模式
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 15px;">
portant; word-wrap: break-word !important; color: rgb(219, 55, 52); overflow-wrap: break-word !important;">三、锐捷交换机基础命令配置
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; widows: 1; overflow-wrap: break-word !important;">连接上交换机后,肯定是需要进行命令配置,我们来看下基础命令配置 。
portant; word-wrap: break-word !important; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255);">portant; word-wrap: break-word !important; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; widows: 1; overflow-wrap: break-word !important;">1、预备命令
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; widows: 1; overflow-wrap: break-word !important;">Enable//进入特权模式#Exit//返回上一级操作模式#End//返回到特权模式#copy running-config startup-config//保存配置文件#del flash:config.text//删除配置文件(交换机及1700系列路由器)#erase startup-config//删除配置文件(2500系列路由器)#del flash:vlan.dat //删除Vlan配置信息(交换机)#Configure terminal //进入全局配置模式(config)# hostname switchA//配置设备名称为switchA(config)#banner motd //配置每日提示信息 为终止符(config)#enable secret level 1 0 star//配置远程登陆密码为star(config)#enable secret level 15 0 star//配置特权密码为starLevel 1为普通用户级别,可选为1~15,15为最高权限级别;0表示密码不加密(config)#enable services web-server//开启交换机WEB治理功能Services 可选以下:web-server(WEB治理)、telnet-server(远程登陆)等
portant; word-wrap: break-word !important; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; widows: 1; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); overflow-wrap: break-word !important;">2、查看信息
portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; widows: 1; overflow-wrap: break-word !important;">#show running-config//查看当前生效的配置信息#show interface fastethernet 0/3 //查看F0/3端口信息#show interface serial 1/2//查看S1/2端口信息#show interface //查看所有端口信息#show ip interface brief //以简洁方式汇总查看所有端口信息#show ip interface //查看所有端口信息#show version //查看版本信息#show mac-address-table //查看交换机当前MAC地址表信息#show running-config //查看当前生效的配置信息#show vlan //查看所有VLAN信息#show vlan id 10 //查看某一VLAN (如VLAN10)的信息#show interface fastethernet 0/1 //查看某一端口模式(如F 0/1)#show aggregateport 1 summary//查看聚合端口AG1的信息#show spanning-tree//查看生成树配置信息#show spanning-tree interface fastethernet 0/1 //查看该端口的生成树状态#show port-security//查看交换机的端口安全配置信息#show port-security address //查看地址安全绑定配置信息#show ip access-lists listname //查看名为listname的列表的配置信息
portant; word-wrap: break-word !important; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; widows: 1; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); overflow-wrap: break-word !important;">3、端口的基本配置portant; word-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; widows: 1; overflow-wrap: break-word !important;">(config)#Interface fastethernet 0/3//进入F0/3的端口配置模式(config)#interface range fa 0/1-2,0/5,0/7-9//进入F0/1、F0/2、F0/5、F0/7、F0/8、F0/9的端口配置模式(config-if)#speed 10//配置端口速率为10M,可选10,100,auto(config-if)#duplex full//配置端口为全双工模式,可选full(全双工),half(半双式),auto(自适应)(config-if)#no shutdown//开启该端口(config-if)#switchport access vlan 10//将该端口划入VLAN10中,用于VLAN(config-if)#switchport mode trunk//将该端口设为trunk模式,可选模式为access , trunk(config-if)#port-group 1 //将该端口划入聚合端口AG1中,用于聚合端口