预览加载中,请您耐心等待几秒...
1/6
2/6
3/6
4/6
5/6
6/6

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

Cisco三层交换机配置命令及解释(2011-07-1108:54:50)标签:分类:IT资讯cisco杂谈基本配置S>enable进入特权模式S#configureterminal进入全局配置模式S(config)#hostnamename改变交换机名称S(config)#enablepasswordlevellevel_#password设置用户口令〔level_#=1)或特权口令〔level_#=15)S(config)#lineconsole0进入控制台接口S(config-line)#passwordconsole_password接上一条命令,设置控制台口令S(config)#linevty015进入虚拟终端S(config-line)#passwordtelnet_password接上一条命令,设置Telnet口令S(config-line)#login允许Telnet登录S(config)#enablepassword|secretprivilege_password配置特权口令〔加密或不加密〕S(config)#interfaceethernet|fastethernet|gigabitethernetslot_#/port_#进入接口子配置模式S(config-if)#[no]shutdown关闭或启用该接口〔默认启用〕S(config)#ipaddressIP_addresssunbet_mask指定IP地址S(config)#ipdefault-gatewayrouter's_IP_address指定哪台路由器地址为默认网关S#showrunning-config查看当前的配置S#copyrunning-configstartup-config将RAM中的当前配置保存到NVRAM中S>showinterface[typeslot_#/port_#]查看所有或指定接口的信息S>showip显示交换机的IP配置〔只在1900系列上可用〕S>showversion查看设备信息S#showipinterfacebrief验证IP配置S(config-if)#speed10|100|auto设置接口速率S(config-if)#duplexauto|full|half设置接口双工模式S>showmac-address-table查看CAM表S#clearmac-address-table清除CAM表中的动态条目1900(config)#mac-address-tablepermanentMAC_addresstype[slot_#/]port_#在CAM表中创建静态条目2950(config)#mac-address-tablestaticMAC_addressvlanVLAN_#interfacetype[slot_#/]port_#在CAM表中创建静态条目1900(config)#mac-address-tablerestrictedstaticMAC_addresssource_portlist_of_allowed_interface设置静态端口安全措施1900(config-if)#portsecure启用粘性学习1900(config-if)#portsecuremax-mac-countvalue设置粘性学习特性能够学到的地址数量〔默认132,取值范围是1-132〕1900(config)#address-violationsuspend|ignore|disable改变安全选项1900>showmac-address-tablesecurity验证端口安全措施2950(config)#switchportmodeaccess定义接口为主机端口而不是中继端口2950(config)#switchportport-security启用端口安全措施2950(config)#switchportport-securitymaximumvalue指定可与此接口相关的设备的最大数量2950(config)#switchportport-securityviolationprotect|restrict|shutdown指定出现安全违规时应该发生的事2950(config)#switchportport-securitymac-addressMAC_address指定允许与此接口相关确实切的MAC地址2950(config)#switchportport-securitymac-addresssticky启用粘性学习特性2950(config)#showportinterfacetype[slot_#/]port_#验证接口配置2950(config-if)descriptionname设置接口描述信息2950