1 / 21
文档名称:

华为命令.doc

格式:doc   页数:21页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

华为命令.doc

上传人:3099984911 2015/9/25 文件大小:0 KB

下载得到文件列表

华为命令.doc

相关文档

文档介绍

文档介绍:1. 在基于 IOS 的交换机上设置主机名/系统名:switch(config)# hostname hostname在基于 CLI 的交换机上设置主机名/系统名:switch(enable) set system name name- IOS 的交换机上设置登录口令:switch(config)# enable password level 1 password在基于 CLI 的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set IOS 的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-maskswitch(config-if)# ip default-gateway ip-address在基于 CLI 的交换机上设置远程访问:switch(enable) set interface sc0 ip-mask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable) set ip route default IOS 的交换机上启用和浏览 CDP 信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看 Cisco 邻接设备的 CDP 通告信息:switch# show cdp interface [type modle/port]switch# show cdp neighbors [type module/port] [detail]在基于 CLI 的交换机上启用和浏览 CDP 信息:switch(enable) set cdp {enable|disable} module/port为了查看 Cisco 邻接设备的 CDP 通告信息:switch(enable) show cdp neighbors[module/port][vlan|duplex|capabilities|detail] IOS 的交换机的端口描述:switch(config-if)# description description-string基于 CLI 的交换机的端口描述:switch(enable)set port name module/number description- IOS 的交换机上设置端口速度:switch(config-if)# speed{10|100|auto}在基于 CLI 的交换机上设置端口速度:switch(enable) set port speed moudle/number {10|100|auto}switch(enable) set port speed moudle/number {4|16|auto} IOS 的交换机上设置以太网的链路模式:switch(config-if)# duplex {auto|full|half}在基于 CLI 的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number {full|half} IOS 的交换机上配置静态 VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于 CLI 的交换机上配置静态 VLAN:switch(enable) set vlan vlan-num [name name]switch(enable) set vlan vlan-num mod-num/port-list9. 在基于 IOS 的交换机上配置 VLAN 中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk