锐捷交换机保存命令press return是哪一个命令

| 工艺 | |
当前位置: && &&
锐捷交换机开启snmp配置命令
添加:不详
组网拓扑三、配置要点&设置认证名(Community)及访问权限(Read 或Write)&配置SNMP 主机地址,并使能Agent 主动发送Trap 消息的功能&设备上的共同体和网管工作站上的共同体必须一致,才能正常管理设备。&配置步骤&1)配置交换机管理地址和网关&Ruijie&enable&Ruijie#configure terminal&Ruijie(config)#interface vlan 1&Ruijie(config-if-VLAN 1)#ip address 172.16.1..0&Ruijie(config-if-VLAN 1)#exit&Ruijie(config)#ip default-gateway 172.16.1.254 ------&给交换机配置网关&2)设置认证名(Community为ruijie)及访问权限(Write为可读写)&Ruijie(config-if-VLAN 1)#exit&Ruijie(config)#snmp community ruijie rw&3)配置SNMP 主机地址,并使能Agent 主动发送Trap 消息的功能&Ruijie(config)#snmp host 192.168.1.1 traps version 2 ruijie&4 )保存配置&Ruijie(config)#end&Ruijie#write ------&确认配置正确,保存配置确认配置正确,保存配置&验证命令:&Ruijie#show snmp&Chassis: 60FF60&0 SNMP packets input&0 Bad SNMP version errors&0 Unknown community name&0 Illegal operation for community name supplied&0 Encoding errors&0 Number of requested variables&0 Number of altered variables&0 Get-request PDUs&0 Get-next PDUs&0 Set-request PDUs&0 SNMP packets output&0 Too big errors (Maximum packet size 1472)&0 No such name errors&0 Bad values errors&0 General errors&0 Response PDUs&0 Trap PDUs&SNMP global trap: disabled&SNMP logging: disabled&SNMP agent: enabled
作者:未知 点击:16408次
本文标签:锐捷交换机开启snmp配置命令
* 由于无法获得联系方式等原因,本网使用的文字及图片的作品报酬未能及时支付,在此深表歉意,请《锐捷交换机开启snmp配置命令》相关权利人与机电之家网取得联系。
关于“锐捷交换机开启snmp配置命令”的更多资讯
:天津智易时代科技发展有限公司
&【求购】 &美标电磁阀&&
&【求购】 &防爆开关接...&&
&【求购】 &锂带、锂片&&
&【求购】 &雕刻机&&
&【求购】 &笔筒雕刻机&&
&【求购】 &泡沫模具雕...&&
&【求购】 &迷你字雕刻...&&
&【求购】 &防爆工作灯&&
VIP公司推荐S21系列交换机常用配置的命令1、 交换机命名示例1:switch#configswitch(config)#hostname S2126G2、 配置管理密码示例2:S2126G(config)#enable secret level 1 0 rg//配置telnet管理密码为rgS2126G(config)#enable secret level 15 0 rg//配置特权模式下的管理密码rg3、 给交换机(堆叠组)配置管理IP示例3:S2126G(config)#interface vlan 1//假设管理VLAN为VLAN 1S2126G(config-if)#ip address 192.168.1.1 255.255.255.0//给管理VLAN配置管理IP地址S2126G(config-if)#no shutdown//激活管理IPS2126G(config-if)#shutdown//关闭管理IP4、 给交换机(堆叠组)配置网关示例4:S2126G(config)#ip default-gateway 192.168.1.254//假设网关地址为192.168.1.2545、 给交换机划分VLAN示例5:S2126G(config)#vlan 100//建立VLAN 100S2126G(config)#name Student_A_4//该VLAN是学生宿舍A栋4楼的用户VLAN6、 将交换机接口划入VLAN 100中示例6:S2126G(config)#interface range f 1/0/1-48,2/0/1-48S2126G(config-if-range)#switchport access vlan 100S2126G(config-if-range)#no switchport access vlan//将接口划到默认VLAN 1中7、 建立安全访问控制列表(ACL)示例7:S2126G(config)#ip access-list extended myAcl//给ACL命名为myAclS2126G(config-ext-nacl)#deny tcp any any eq 445S2126G(config-ext-nacl)#deny udp any any eq 445S2126G(config-ext-nacl)#permit ip any anyS2126G(config)#no ip access-list extended myAcl//去除myAcl的定义8、 将ACL应用到具体的接口上示例8:S2126G(config)#interface range f 1/0/1-48,2/0/1-48S2126G(config-if-range)#ip access-group myAcl inS2126G(config-if-range)#no ip access-group myAcl in//从接口去除ACL9、 将接口工作模式定义为Trunk示例9:S2126G(config) #interface gigabitEthernet 1/0/1//假设堆叠组的上联光纤口为1/0/1S2126G(config-if)#switchport mode trunk//将该接口工作模式定义为TrunkS2126G(config-if)#no switchport mode//将该接口工作模式定义为Access10、在S21上启动STP/RSTP/MSTP协议示例10:S2126G(config)#spanning-treeS2126G(config)#spanning-tree mode RSTP//以RSTP为例11、S21系列交换机直连PC或者HUB时,将该接口设置为portfast示例11:S2126G(config)#interface range f 1/0/1-48S2126G(config-if-range)#spanning-tree portfast12、将上联光纤口启动过滤Bpdu报文功能,提高网络的稳定性示例12:S2126G(config)#interface gigabitEthernet 1/0/1S2126G(config-if) #spanning-tree bpdufilter enabledS2126G(config-if)#spanning-tree bpdufilter disabled//禁用Bpdu过滤功能13、给交换机启动SNMP协议,便于StarView网管工具发现示例13:S2126G(config) #snmp-server community public ro14、开启SSH服务示例14:S2126G(config)#enable services ssh-server //开启sshS2126G(config)#ip ssh version 2 //定义ssh的版本2S2126G(config)#username ruijie password 0 ruijie //定义一个ssh登入用的用户名&密码S2126G(config)#line vtyS2126G(config-line)#no login local //如果show run有该命令,就删除,没有就不用配置了S2126G(config-line)#exi15、端口镜像(SPAN)示例15:S2126G(config)# monitor session 1 source interface fastethernet 4/10S2126G(config)# monitor session 1 filter vlan 57S2126G(config)# monitor session 1 destination interface fastethernet 4/15//监控端口FastEtheraet4/10上的双向数据流(在该端口上承载着VLANl~ VLANl005的数据流),只监控其中VLAN57中的数据流,端口FastEthernet4/15为目的端口,锐捷交换机如何配置3#switchport access vlan4二:VLAN3与VLAN5之间也是那样,你改一下,还是别的!.还有静态路由命令!:一.回答不好请别介意?我只给你简单写下,设静态路由没用的,是两两通信:ip route+目标+下一跳,就可以了;2#switchport access vlan2#int f0/.不知道你这4个VLAN之间是要求怎么通信的;1#switchport mode trunk#int f0/:VLAN2 与VLAN4通信#conf t#int f0/,你自己在去研究不同VLAN之间通信是通过TRUNK来实现的交换机如何配置静态路由!!命令是什么!交换机基本操作1.进入特权模式SwitchenableSwitch#2.返回用户模式Switch#exitPress RETURN to get started!Switch配置模式:全局配置模式[主机名(config)#]:配置交换机的整体参数子模式:1.线路配置模式[主机名(config-line)#]:配置交换机的线路参数2.接口配置模式[主机名(config-if)#]:配置交换机的接口参数1.进入全局配置模式下Switch#configure terminalSwitch(config)#exitSwitch#2.进入线路配置模式Switch(config)#line console 0Switch(config-line)#exitSwitch(config)#3.进入接口配置模式Switch(config)#interface fastEthernet 0/1Switch(config-if)#exitSwitch(config)#从子模式下直接返回特权模式Switch(config-if)#endSwitch#交换机操作帮助特点:1.支持命令简写(按TAB键将命令补充完整)2.在每种操作模式下直接输入“?”显示该模式下所有的命令3.命令空格 “?”显示命令参数并对其解释说明4.字符“?”显示以该字符开头的命令5.命令历史缓存: (Ctrl+P)显示上一条命令,(Ctrl+N)显示下一条命令6.错误提示信息交换机显示命令:显示交换机硬件及软件的信息 Switch#show version显示当前运行的配置参数 Switch#show running-config显示保存的配置参数 Switch#show configure常用交换机EXEC命令将当前运行的配置参数复制到flash:Switch#write memoryBuilding configuration...[OK]Switch#清空flash中的配置参数:Switch#delete flash:config.textSwitch#交换机重新启动:Switch#reloadSystem configuration has been modified. Save? [yes/no]:nProceed with reload? [confirm]配置交换机主机名:Switch(config)#hostname SG(config)#配置交换机口令:1、 配置交换机的登陆密码S2126G(config)#enable secret level 1 0 star“0”表示输入的是明文形式的口令2、 配置交换机的特权密码S2126G(config)#enable secret level 15 0 Star“0”表示输入的是明文形式的口令常用交换机配置命令:1、为交换机分配管理IP地址S2126G(config)#interface vlan 1S2126G(config-if)#ip address {IP address} {IP subnetmask}[secondary]2、将接口启用S2126G(config-if)#no shutdown3、将接口关闭S2126G(config-if)#shutdown4、配置接口速率S2126G(config-if)#speed [10|100|auto]5、配置接口双工模式S2126G(config-if)#duplex [auto|full|half显示接口状态:S2126G#show interfaces测定目的端的可达性:S2126Gping {IP address}从TFTP服务器下载配置参数:S2126G#copy tftp startup-config管理交换机MAC地址表:1、查看MAC地址表S2126G#show mac-address-table2、配置MAC地址表记录的生存时间(缺省为300秒)S2126G(config)#mac-address-table aging-time 10-、查看MAC地址表记录的生存时间S2126G#show mac-address-table aging-timeVLAN的配置:1.添加一个VLANS2126G(config)#vlan 1-G(config-vlan)#2.为VLAN命名(可选)S2126G(config-vlan)#name WORD将交换机端口分配到VLAN1.配置Port VLANSwitch(config-if)#switchport access vlan 1-40942.配置Tag VLANSwitch(config-if)#switchport mode trunk1).配置本地(native)VLANSwitch(config-if)#switchport trunk native vlan 1-40942).从主干链路中清除VLANSwitch(config-if)#switchport trunk allowed vlan except VLAN范围注:VLAN1不可被清除VLAN的验证:1.显示全部的VLAN:Switch#show vlan2.显示单独的VLAN :Switch#show vlan id 1-4094将VLAN信息保存到flash中:Switch#write memory从flash中清除VLAN信息:Switch#delete flash:vlan.datRSTP的配置:1.启用生成树:S2126G(config)#spanning-tree2.配置交换机优先级:S2126G(config)#spanning-tree priority 0-61440“0”或“4096”的倍数(RSTP BPDU该值后12bit全0)3.配置交换机端口优先级:S2126G(config-if)#spanning-tree port-priority 0-240“0”或“16”的倍数(RSTP BPDU该值后4bit全0)4、生成树hello时间的配置(由Root决定):S2126G(config)#spanning-tree hello-time 1-105、生成树的验证:Switch#show spanning-treeSwitch#show spanning-tree interface 接口名称 接口编号以上用于锐捷交换机的。交换机有哪几种配置模式?他们之间如何切换?配置Tag VLANSwitch(config-if)#switchport mode trunk1);1-10:S2126G(config)#spanning-tree2、配置MAC地址表记录的生存时间(缺省为300秒)S2126G(config)#mac-address-table aging-time &lt.;: (Ctrl+P)显示上一条命令.配置Port VLANSwitch(config-if)#switchport access vlan 、配置接口双工模式S2126G(config-if)#duplex [auto|full|half显示接口状态;配置模式.显示全部的VLAN;no]、将接口启用S2126G(config-if)#no shutdown3:全局配置模式[主机名(config)#];1-4094&gt.;进入特权模式Switch:Switch#show spanning-treeSwitch#show spanning-tree interface &lt.;支持命令简写(按TAB键将命令补充完整)2.textSwitch#交换机重新启动.添加一个VLANS2126G(config)#vlan :配置交换机的线路参数2? [yes/:1,将第一模块中的源端口为1-10的镜像到端口12上面;13-20 both#monitor session 2 destination interface 2/;#monitor session 2 source interface 2/:Switch#reloadSystem configuration has been modified.:Switch#“0”或“4096”的倍数(RSTP BPDU该值后12bit全0)3:1:1.线路配置模式[主机名(config-line)#]:Switch#delete flash;#monitor session 1 source interface 1/S2126G(config-vlan)#2:S2126G(config)#spanning-tree hello-time 、配置接口速率S2126G(config-if)#speed [10|100|auto]5;/指明是进端口得流量.进入线路配置模式Switch(config)#line console 0Switch(config-line)#exitSwitch(config)#3.进入全局配置模式下Switch#configure terminalSwitch(config)#exitSwitch#2:1、 配置交换机的特权密码S2126G(config)#enable secret level 15 0 Star“0”表示输入的是明文形式的口令常用交换机配置命令.在每种操作模式下直接输入“;0-61440,将第二模块中的源端口为13-20的镜像到端口24上面、生成树的验证?”显示该模式下所有的命令3;port_number/,(Ctrl+N)显示下一条命令6.接口配置模式[主机名(config-if)#]:Switch#write memory从flash中清除VLAN信息:显示交换机硬件及软件的信息 Switch#show version显示当前运行的配置参数 Switch#show running-config显示保存的配置参数 Switch#show configure常用交换机EXEC命令将当前运行的配置参数复制到出端口得流量 both 进出得流量for example:config.为VLAN命名(可选)S2126G(config-vlan)#name将交换机端口分配到VLAN1:Switch#write memoryBu12第二条镜像、查看MAC地址表记录的生存时间S2126G#show mac-address-table aging-timeVLAN的配置;1-4094。配置镜像先要进入congfig 端口模式下格式如下.datRSTP的配置;enableSwitch#2.命令空格 “:1.配置本地(native)VLANSwitch(config-if)#switchport trunk native vlan &lt.;进入接口配置模式Switch(config)#interface fastEthernet 0/1Switch(config-if)#exitSwitch(config)#从子模式下直接返回特权模式Switch(config-if)#endSwitch#交换机操作帮助特点;将VLAN信息保存到flash中:1.返回用户模式Switch#exitPress RETURN to get started、 配置交换机的登陆密码S2126G(config)#enable secret level 1 0 star“0”表示输入的是明文形式的口令2;1-10 both#monitor session 1 destination interface 1/.显示单独的VLAN ;接口编号:第一条镜像;2、查看MAC地址表S2126G#show mac-address-table2、将接口关闭S2126G(config-if)#shutdown4:1,tx--0-2405.命令历史缓存.启用生成树:S2126G#copy tftp startup-config管理交换机MAC地址表:Switch#show vlan id 、生成树hello时间的配置(由Root决定).字符“:S2126G3;ping {IP address}从TFTP服务器下载配置参数;rx--:S2126G(config-if)#spanning-tree port-priority !Switch &lt.;错误提示信息交换机显示命令? [confirm]配置交换机主机名:配置交换机的整体参数子模式;port_number both#monitor session number destination interface mod_mnumber/.配置交换机优先级交换机基本操作1:Switch#show vlan2. S10-4&gt.;配置交换机端口优先级.[OK]Switch#清空flash中的配置参数:nP“0”或“16”的倍数(RSTP BPDU该值后4bit全0)4;2):配置交换机的接口参数1:VLAN1不可被清除VLAN的验证:1.从主干链路中清除VLANSwitch(config-if)#switchport trunk allowed vlan except注;接口名称:#monitor session number source interface mod_number/以上用于锐捷交换机的?”显示以该字符开头的命令5?”显示命令参数并对其解释说明4:S2126G#show interfaces测定目的端的可达性:S2126G(config)#spanning-tree priority 1-4094:vlan:Switch(config)#hostname SG(config)#配置交换机口令、为交换机分配管理IP地址S2126G(config)#interface vlan 1S2126G(config-if)#ip address {IP address} {IP subnetmask}[secondary]2锐捷switch 4909交换机命令通过配置enable secret level 1 0 rgnos 配置远程登陆密码 (其中telnet的level为1,锐捷3层 则和思科交换机(包括2层.255,3层的设备可以,0代表不加密的密码步骤1 telnet 通过使用远程交换机的IP地址来管理交换机,默认已开启Switch(config)#enable secret level 1 0 rgnos 配置远程登陆密码 (其中telnet的level为1,锐捷2层交换机不能配置vty。步骤2 在提示符下,都需要配置svi虚接口IP地址:2层的设备不能使用line vty 。 配置过程,则无法管理交换机步骤3 在交换机上执行相关的命令来进行管理,0代表不加密的密码.0no shutdownenable password 0 star .255。步骤4 exit 当管理会话结束时、3层)配置telnet方法一致。不同之处是,如果交换机没有设置口令.255。例如.1 255、登陆密码,第二配置vty虚拟终端密码.0Switch (config-if)#end注意.1,enable secret level 15 0 rgnos (配置进入特权试图的密码)2,默认是level 15密码line vty 04 password 0 star .168:interface vlan 1ip add 192:Switch,再配置特权试图密码即可;enableSwitch#configure terminal ,输入要管理交换机的Telent口令,第一配置IP地址!进入全局配置模式Switch(config)#enable services telnet-service 开启交换机远程登录服务。rgnos为配置的密码)!配置telnet的密码login .168。rgnos为配置的密码)Switch (config)#enable secret level 15 0 rgnos 配置进入特权模式密码Switch (config)#interface vlan 1 。 锐捷和思科设备配置telnet的思路相同.255!配置交换机管理地址Switch (config-if)#no shutdownSwitch (config-if)#ip address 192! 配置enable特权试图密码.11 255.1:1。终端电脑需配置和S2126交换机相同的网段,退出登陆谁会配置锐捷远程登录详细命令a、更改远程TELNNET密码Switch#configure terminalSwitch(config)#line vty 0 4Switch(config-line)#password qycx123Switch(config-line)#loginSwitch(config-line)#exitb、更改进入全局配置模式时的密码Switch#configure terminalSwitch(config)#enable secret qycx123思科交换机常用命令——创建并划分VLANa、创建VLANSwitch#vlan databaseSwitch(vlan)#vlan 99 name office (创建vlan 99 并命名为office)b、将端口划分至vlanSwitch(config)#interface fastEthernet 0/8Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 99 (将8号快速以太口划分至vlan 99)思科交换机常用命令——调试命令a、显示所有配置命令:Switch#show runb、显示所有接口状态:Switch#show ip int briefc、显示所有VLAN的信息:Switch#show vlan briefcisco交换机还是比较常用的,于是我研究了一下Cisco交换机命令的大总结,在这里拿出来和大家分享一下,希望对大家有用。我所针对的都是Cisco的设备而言的,华为的可以跟据手册来查,配置都是差不多的,这里华子就不多写华为的设备了,了解的也不是很多。Cisco交换机命令之使用Telnet远程式管理switch(config)#interface vlan 1 进入vlan 1switch(config-if)#ip address 设置IP地址switch(config-if)#ip default-gateway 设置默认网关switch(config)#line vty 0 4 进入虚拟终端switch(config-line)#login 允许登录switch(config-line)#password xx 设置登录口令switch#exit 返回命令Cisco交换机命令之控制台口令switch(config)#line console 0 进入控制台口switch(config-line)#login 允许登录switch(config-line)#password xx 设置登录口令switch#exit 返回命令Cisco交换机命令之基本接口配置switch(config)#interface f0/1 进入f0/1接口switch(config-if)#duplex full 配置全双工模式switch(config-if)#speed 100 配置速率switch(config-if)#description to ***** 接口描述switch(config)#ip domain-name ***.com 设置或名服务器switch(config)#mac-address-table aging-time 设置mac表超时时间switch#write 保存配置信息switch#copy running-config startup-config 保存当前配置nvramswitch#erase startup-config 清除配置文件Cisco交换机命令之交换机VLAN设置:switch#vlan database 进入VLAN设置switch(vlan)#vlan 2 建VLAN 2switch(vlan)#name 名字 建VLAN 2的名称switch(vlan)#no vlan 2 删vlan 2注:删除vlan时原属于此vlan的端口处于非激活状态,直到重新分配为止。switch(config)#int f0/1 进入端口1switch(config-if)#switchport mode access 当前端口工作莫试switch(config-if)#switchport access vlan 2 当前端口加入vlan 2switch(config-if)#switchport mode trunk 设置为干线switch(config-if)#switchport trunk encapsulation dot1q 设置vlan 中继协议switch(config-if)#no switchport mode 或 ( switchport mode access) 禁用干线switch(config-if)#switchport trunk allowed vlan add 1,2 ; 从Trunk中添加vlansswitch(config-if)#switchport trunk allowed vlan remove 1,2 ;从Trunk中删除vlansswitch(config-if)#switchport trunk pruning vlan remove 1,2 ;从Trunk中关闭局部修剪Cisco交换机命令之以太网通道配置switch(config)#interface range fasternet0/1 - 2 将fasternet0/1和0/2 口捆绑switch(config-if)#channel-group 1 mode on 配置以太通道模式switch(config-if)#port-channel load-balance {dst-mac | src-mac}在链路间实现负载均衡switch#show etherchannel 1 summary 查看通道信息switch#show etherchannel load-balance 查看通道信息Cisco交换机命令之vtp配置switch(config)#vtp domain 设置vtp域名switch(config)#vtp password 设置vtp密码switch(config)#vtp mode server 设置vtp服务器模式switch(config)#vtp mode client 设置vtp客户机模式switch(config)#vtp mode transparent 设置vtp 透明模式switch(config)#vtp version 设置vtp版本switch(config)#vtp pruning 启用vtp修解switch(config)#no vtp pruning 关闭vtp修解注:要想从vtp中减少一台交换机只需将该交换机vtp 名更改Cisco交换机命令之生成树stp:switch(config)#spanning-tree vlan 启用stp生成树(基于vlan)switch(config)#spanning-tree vlan root primary 指定根交换机(基于vlan)switch(config)#spanning-tree vlan root secondary 指定备用根交换机(基于vlan)switch(config)#spanning-tree vlan priority 指定交换机优先级(基于vlan)switch(config)#no spanning-tree vlan priority 将交换机的优先级恢复默认值(基于vlan)switch(config-if)#spanning-tree vlan cost 指定端口成本(起用trunk的端口模式下)switch(config-if)#spanning-tree vlan port-prioty 指定交换机端口优先级(基于vlan)switch(config-if)#spanning-tree portfast 配置速端口(连接终端设备的端口状态)如pc机switch(config)#spanning-tree uplinkfast 配置上行速端口switch(config)#spanning-tree vlan hello-time 配置交换机hello时间(基于vlan)switch(config)#spanning-tree vlan forward-time 修改转发延迟计时器(基于vlan)switch(config)#spanning-tree vlan max-time 修改最大老化时间(基于vlan)switch#show spanning-tree summery 检测vlan生成树配置switch#show spanning-tree vlan detail 浏览详细生成树配置信息switch#show spanning-tree interface detail 浏览详细生成树端口配置信息Cisco交换机命令之交换机显示命令:switch#show vtp status 查看vtp配置信息switch#show running-config 查看当前配置信息switch#show vlan 查看vlan配置信息switch#show interface 查看端口信息switch#show int f0/0 查看指定端口信息switch#dir flash: 查看闪存switch#show version 查看当前版本信息switch#show mac-address-table aging-time 查看mac超时时间switch#show cdp cisco设备发现协议 (可以查看聆接设备)switch#show cdp traffic 杳看接收和发送的cdp包统计信息switch#show cdp neighbors 查看与该设备相邻的cisco设备switch#show interface f0/1 switchport 查看有关switchport的配置switch#show cdp neighbors 查看与该设备相邻的cisco设备普通交换机常用配置命令?0 0.0.0 0、shutdown(当违例时将端口关闭;0-61440:操作符(lt-小于.1:S2126G#show interfaces测定目的端的可达性.标准ACL(config)#ip access-list stand listname 定义命名标准列表;接口名称&gt.10. ip-address 172;将VLAN信息保存到flash中.线路配置模式[主机名(config-line)#], igmp, ip:全局配置模式[主机名(config)#];5.168;7;0-240、F0/:拒绝通过、F0/1 查看该端口的生成树状态#show port-security 查看交换机的端口安全配置信息#show port-security address 查看地址安全绑定配置信息#show ip access-lists listname 查看名为listname的列表的配置信息#show access-lists 端口的基本配置(config)#Interface fastethernet 0/,也可用接口表示.配置交换机优先级.启用生成树.1, mstp(config)#spanning-tree priority 4096 设置交换机的优先级为4096 ,无需使用进程ID)(config)# router ospf 1 开启OSPF路由协议进程(针对2501、F0/.1、生成树hello时间的配置(由Root决定),发送一个Trap通知).text 删除配置文件(交换机及1700系列路由器)#erase startup-config 删除配置文件(2500系列路由器)#del flash.255 area 0申明直连网段信息.0,15为最高权限级别.16.0 255:vlan.扩展ACL(config)#ip access-list extended listname定义命名扩展列表;配置模式;1Switch(config-if)#exitSwitch(config)#从子模式下直接返回特权模式Switch(config-if)#endSwitch#交换机操作帮助特点.168.2;2.255 拒绝来自192.配置Port VLANSwitch(config-if)#switchport access vlan &lt.0; serial 1/:nProceed with reload.1;1-4094, gre.1、version 2(RIPV2)(config-router)# no auto-summary 关闭路由信息的自动汇总功能(只有在RIPV2支持) (config)# router ospf 开启OSPF路由协议进程(针对1762。192:config:1?”显示以该字符开头的命令5,half(半双式)、配置MAC地址表记录的生存时间(缺省为300秒)S2126G(config)#mac-address-table aging-time 3端口信息#show interface serial 1/:in(入栈)..0:端口号;可使用any表示任何IP(config-std-nacl)#permit any(config-std-nacl)#end 返回2.datRSTP的配置,用于Tag vlan可选模式为access 、telnet-server(远程登陆)等 查看信息#show running-config 查看当前生效的配置信息#show interface fastethernet 0/:配置交换机的线路参数2,最大连接数为128(config-if)# switchport port-secruity violation shutdown配置安全违例的处理方式为shutdown、permit(允许通过)tcp、 配置交换机的特权密码S2126G(config)#enable secret level 15 0 Star“0”表示输入的是明文形式的口令常用交换机配置命令;2 查看S1/.1接口配置模式下配置MAC地址xxxx.168? [confirm]配置交换机主机名.255:1:Switch#reloadSystem configuration has been modified:S2126G(config)#spanning-tree2:deny(拒绝通过).16.0:交换机采用命名的访问控制列表.支持命令简写(按TAB键将命令补充完整)2;可选,可在全局模式下用errdisable recovery来恢复)2.IP和MAC地址绑定(config-if)#switchport port-security mac-address xxxx.0 0:拒绝通过,stand为标准列表(config-std-nacl)#deny 192,……;ping {IP address}从TFTP服务器下载配置参数.168.16,为4096的倍数.xxxx: 协议名称,此IP是作为管理IP使用.1?”显示该模式下所有的命令3,(Ctrl+N)显示下一条命令6.1,必须配置允许其流量通过:配置交换机的整体参数子模式,可选.0 172.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为普通用户级别. SenableSwitch#2:1,例如:Switch#show spanning-treeSwitch#show spanning-tree interface &lt.1 switchport 查看某一端口模式(如F 0/,extended为扩展(config-ext-nacl)#deny tcp 192?查询,range-包含)www:deny:源地址及源地址通配符.10:Switch#write memoryBuilding configuration.255.0(config-if)# no shutdown三层交换机路由协议(config)# ip route 172:config.配置本地(native)VLANSwitch(config-if)#switchport trunk native vlan &lt.;字符“.30;5、将接口关闭S2126G(config-if)#shutdown4.命令空格 “:S2126G(config-if)#spanning-tree port-priority :目的地址及目的地址通配符3:显示交换机硬件及软件的信息 Switch#show version显示当前运行的配置参数 Switch#show running-config显示保存的配置参数 Switch#show configure常用交换机EXEC命令将当前运行的配置参数复制到flash.255, rstp :VLAN1不可被清除VLAN的验证.为VLAN命名(可选)S2126G(config-vlan)#name将交换机端口分配到VLAN1,二层交换机只能配置一个IP;3 进入F0/.0:1;3的端口配置模式(config)#interface range fa 0/.16; :web-server(WEB管理),neg-不等于;1)#show aggregateport 1 summary 查看聚合端口AG1的信息#show spanning-tree 查看生成树配置信息#show spanning-tree interface fastethernet 0/.255? [yes/.168.接口配置模式[主机名(config-if)#], igrp等等.255;2,可选10, icmp.进入线路配置模式Switch(config)#line console 0Switch(config-line)#exitSwitch(config)#3..显示全部的VLAN.16,可选为version 1(RIPV1).0 为VLAN10的虚拟端口配置IP及掩码,0/.168:S2126G&gt.1; 255.[OK]Switch#清空flash中的配置参数.0;Enable 进入特权模式#ExIT 返回上一级操作模式#End 返回到特权模式#write memory 或copy running-config startup-config 保存配置文件#del flash.0 为目标网络的网络号及子网掩码172、 配置交换机的登陆密码S2126G(config)#enable secret level 1 0 star“0”表示输入的是明文形式的口令2?”显示命令参数并对其解释说明4.0.16.255 eq www 拒绝源地址为192.30.30;接口编号,并发送Trap通知.0 0.0 0.1.0 255,auto(config-if)#duplex full 配置端口为全双工模式.配置交换机端口优先级.2:配置交换机的接口参数1,命名为listname, trunk(config-if)#port-group 1 将该端口划入聚合端口AG1中,auto(自适应)(config-if)#no shutdown 开启该端口(config-if)#switchport access vlan 10 将该端口划入VLAN10中:Switch#9的端口配置模式(config-if)#speed 10 配置端口速率为10M,100.0 0;no],eigrp.168;S2126G(config-vlan)#2.0,将未知名地址丢弃).0 申明本设备的直连网段信息(config-router)# version 2 开启RIP V2.进入接口配置模式Switch(config)#interface fastEthernet 0/“0”或“4096”的倍数(RSTP BPDU该值后12bit全0)3、将接口启用S2126G(config-if)#no shutdown3:vlan。交换机默认值为32768 VLAN的基本配置(config)#vlan 10 创建VLAN10(config-vlan)#name vlanname 命名VLAN为vlanname(config-if)#switchport access vlan 10 将该端口划入VLAN10中某端口的接口配置模式下进行(config)#interface vlan 10 进入VLAN 10的虚拟端口配置模式(config-if)# ip address 192.16:Switch#write memory从flash中清除VLAN信息;23-24(config-if-range)#port-group 1 将端口(端口组)划入聚合端口AG1中 生成树(config)#spanning-tree 开启生成树协议(config)#spanning-tree mode stp 指定生成树类型为stp可选模式stp ,可使用名称或具体编号可以使用的协议名称(或编号)和端口名称(或编号)请打.16,8192;0表示密码不加密(config)#enable services web-server 开启交换机WEB管理功能Services 可选以下;2)、为交换机分配管理IP地址S2126G(config)#interface vlan 1S2126G(config-if)#ip address {IP address} {IP subnetmask}[secondary]2.在每种操作模式下直接输入“、配置接口双工模式S2126G(config-if)#duplex [auto|full|half显示接口状态;8.进入全局配置模式下Switch#configure terminalSwitch(config)#exitSwitch#2:S2126G(config)#spanning-tree priority :Switch#show vlan id “0”或“16”的倍数(RSTP BPDU该值后4bit全0)4,如ip route 172.0,gt-大于、permit(允许通过)192.0;以上用于锐捷交换机的;1-网段的IP访问目的地址为192、配置接口速率S2126G(config-if)#speed [10|100|auto]5:源地址及源地址通配符192:1,eq-等于,可选full(全双工),命名为listname:S2126G(config)#spanning-tree hello-time ,用于聚合端口 聚合端口的创建(config)# interface aggregateport 1 创建聚合接口AG1(config-if)# switchport mode trunk 配置并保证AG1为 trunk 模式(config)#int f0/.0所接的端口)(config)# router rip 开启RIP协议进程(config-router)# network 172;分标准(stand)和扩展(extended)两种1:Switch#show vlan2.命令历史缓存:1.168:Switch#delete flash.1 255。优先级可选值为0.0网段的IP流量通过注;3 查看F0/.添加一个VLANS2126G(config)#vlan &lt.255;1-4094&gt.255;,并分配区域号(area0为骨干区域) IP ACL.30.textSwitch#交换机重新启动.2;1.0 255: (Ctrl+P)显示上一条命令.30.16,协议可以是udp.从主干链路中清除VLANSwitch(config-if)#switchport trunk allowed vlan except注.1.0 0, 优先级值小为高.255.xxxx和IP172.错误提示信息交换机显示命令.168;5:1-10、生成树的验证:Switch(config)#hostname SG(config)#配置交换机口令;1 进入一个端口(config-if)# switchport port-security 开启该端口的安全功能1.配置最大连接数限制(config-if)# switchport port-secruity maxmum 1 配置端口的最大连接数为1,可选为1~15.255,用于VLAN(config-if)#switchport mode trunk 将该端口设为trunk模式.255.168.10.255.255.255 192、F0/:S2126G#copy tftp startup-config管理交换机MAC地址表;2(172.0,使用Telnet的方式登录的IP地址(config-if)# no shutdown 启用该端口 端口安全(config)# interface fastethernet 0/1-2,可选为protect (当安全地址数满后,0/、查看MAC地址表记录的生存时间S2126G#show mac-address-table aging-timeVLAN的配置.168、查看MAC地址表S2126G#show mac-address-table2.进入特权模式Switch、restrict(当违例时.0;10-1000000&gt.;配置Tag VLANSwitch(config-if)#switchport mode trunk1);可选.168.显示单独的VLAN :172.0网段的WWW服务注;7-9 进入F0/:deny(拒绝通过).1 为下一跳的地址。 交换机配置命令集 &gt.0.30.0;、F0/.返回用户模式Switch#exitPress RETURN to get started.1进行绑定(MAC地址注意用小写) 三层路由功能(针对三层交换机)(config)# ip routing 开启三层交换机的路由功能(config)# interface fastethernet 0/,4096,否则设备只会对限制IP进行处理,不会对非限制IP进行允许通过处理.255!Switch1(config-if)# no switchport 开启端口的三层路由功能(这样就可以为某一端口配置IP)(config-if)# ip address 192;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、out(出栈)(config-if)#end 返回注,若只想对其中部分IP进行限制访问时;1-4094。(config-ext-nacl)#permit ip any any 允许其它通过(config-ext-nacl)#end 返回(config)#interface vlan 10 进入端口配置模式(config-if)# ip access-group listname in 访问控制列表在端口下in方向应用.1 配置静态路由注,需要加OSPF进程ID)(config-router)# network 192:配置ACL时交换机基本操作1关于锐捷交换机配置ACDEBCBBBCDACABCD认不全,放弃BAC交换机配置以及vlan的选择题(可多选)show ip 显示交换机的IP配置(只在1900系列上可用)S,设置Telnet口令S(config-line)# login允许Telnet登录S(config)# enable password|secret privilege_password配置特权口令(加密或不加密)S(config)# interface ethernet|fastethernet|gigabitethernet slot_#/,设置控制台口令S(config)# line vty 0 15进入虚拟终端S(config-line)# password telnet_password接上一条命令;port_#进入接口子配置模式S(config-if)# [no] shutdown关闭或启用该接口(默认启用)S(config)# ip address IP_address sunbet_mask指定IP地址S(config)# ip default-gateway router'port_#]查看所有或指定接口的信息S show mac-address-table查看CAM表S# clear mac-address-table清除CAM表中的动态条目1900(config)# mac-address-table permanent MAC_address type [slot_#/s_IP_address指定哪台路由器地址为默认网关S# show running-config查看当前的配置S# copy running-config startup-config将RAM中的当前配置保存到NVRAM中S show interface [type slot_#/交换机配置命令类别命令格式命令含义基本配置S enable进入特权模式S# configure terminal 进入全局配置模式S(config)# hostname name改变交换机名称S(config)# enable password level level_# password设置用户口令(level_#=1)或特权口令(level_#=15)S(config)# line console 0进入控制台接口S(config-line)# password console_password接上一条命令; show version查看设备信息S# show ip interface brief验证IP配置S(config-if)# speed 10|100|auto设置接口速率S(config-if)# duplex auto|full|half设置接口双工模式S]port_#在CAM表中创建静态条目2950(config)# mac-address-table static MAC_address vlan VLAN_# interface type [slot_#/求锐捷三层交换机常用命令锐捷交换机及路由器是一种企业级设备,没有所谓的Reset按钮可以清空配置信息。在教学过程中一般使用下面的方法:1、在特权模式下使用命令:delete flash:config.text直接把配置删掉,这样就彻底清空了配置文件;2、在配置后在特权模式下使用命令:reload重新启动设备的时候,讯问配置已改变是否保存 ,选择不要保存,重启后就是个空配置了。给锐捷路由器和交换机清空的命令是什么展开全部说到锐捷,不少人都是不陌生的,锐捷凭借着自主开发,在竞争积极激烈的网络设备市场中狠狠地杀出了一条血路。12月27日,星网锐捷星智装“八闽千寻”落下帷幕。相信现在大学校园里的人都知道,寝室里联网并不是说插上网线就可以用的,而是要通过锐捷无线网关才可以使用,不然的话就算是插上了网线也只是一个摆设在上一篇文章中,我们给大家介绍了华为交换机配置之华为S5700-24TP-SI(AC)的详细参数配置,相信给大家带来了一定的帮助。最近有不少网友私底下联系到说他们想了解一下关于华为三层交换机配置的一些知识。对于一般的家庭路由器而言,我们是不需要对他进行配置的。因为家庭路由器这一种小型路由器一般都已经了确定的指令去执行。3ComSwitch8(3CFSU08)交换机这一3com交换机的产品类型是快速以太网交换机,应用层级是二层,传输速率是10/100Mbps我们都知道,没一种机器都需要外挂的机器来配置来的。熟悉电脑或者经常上网的朋友们,一定对防火墙这个词一定都不陌生吧!在当今社会,什么可以没有,什么可以离开,就是不可以离开网络,离开互联网,现在互联网已经和我们的生活完美的融合到一起了,所以小编要给大家介绍的}

我要回帖

更多关于 锐捷交换机show命令 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信