锐捷交换机、路由器常用命令集|2010-12-1112:26:00交换机配置命令模式EXEC模式:用户模式switch>交换机信息的查看,简单测试命令特权模式switch#查看、管理交换机配置信息,测试、调试配置模式:全局配置模式switch(config)#配置交换机的整体参数接口配置模式switch(config-if)#配置交换机的接口参数进入全局配置模式Switch#configureterminalSwitch(config)#exitSwitch#进入接口配置模式Switch(config)#0/1Switch(config-if)#exitSwitch(config)#从子模式下直接返回特权模式Switch(config-if)#endSwitch#命令行其他功能获得帮助switch#?switch#show?命令简写全写:switch#configureterminal简写:Switch#config使用历史命令Switch#(向上键)Switch#(向下键)功能配置远程登陆密码Switch(config)#enablesecretlevel10ruijie配置进入特权模式密码Switch(config)#enablesecretlevel150ruijie为交换机配置管理IPSwitch(config)#interfacevlan1Switch(config-if)#noshutdownSwitch(config-if)#(config-if)#end配置文件的管理保存配置将当前运行的参数保存到flash中用于系统初始化时初始化参数Switch#copyrunning-configstartup-configSwitch#writememorySwitch#write删除配置永久性的删除flash中不需要的文件使用命令deleteflash::在配置命令前加no例:switch(config-if)#noipaddress查看配置文件内容Switch#showconfigure 查看保存在FLASH里的配置信息Switch#showrunning-config 查看RAM里当前生效的配置配置PortVLAN创建VLAN10将它命名为test的例子Switch#configureterminalSwitch(config)#vlan10Switch(config-vlan)#nametestSwitch(config-vlan)#end把接口0/10加入VLAN10Switch#configureterminalSwitch(config)#0/10Switch(config-if)#essSwitch(config-if)#essvlan10Switch(config-if)#end将一组接口加入某一个VLANSwitch(config)#0/1-8 ,0/15,0/20Switch(config-if-range)#essvlan20注:连续接口0/1-8,不连续接口用逗号隔开,但一定要写明模块编号配置TagVLAN-Trunk把Fa0/1配成Trunk口Switch#configureterminalSwitch(c
锐捷交换机的配置 来自淘豆网www.taodocs.com转载请标明出处.