cisco交换机命令简介

cisco交换机命令简介

ID:9265489

大小:56.50 KB

页数:8页

时间:2018-04-25

cisco交换机命令简介_第1页
cisco交换机命令简介_第2页
cisco交换机命令简介_第3页
cisco交换机命令简介_第4页
cisco交换机命令简介_第5页
资源描述:

《cisco交换机命令简介》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、交换机命令大全1.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令: switch(enable) set passwordswitch(enable) set enalbepass3.在基于IO

2、S的交换机上设置远程访问: switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问: switch(enable) set interface sc0 ip-address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enabl

3、e) set ip route default gateway4.在基于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 

4、cdp {enable

5、disable} module/port为了查看Cisco邻接设备的CDP通告信息:switch(enable) show cdp neighbors[module/port] [vlan

6、duplex

7、capabilities

8、detail]5.基于IOS的交换机的端口描述:switch(config-if)# description description-string基于CLI的交换机的端口描述: switch(enable)set port name module/number description-string 6.

9、在基于IOS的交换机上设置端口速度: switch(config-if)# speed{10

10、100

11、auto}在基于CLI的交换机上设置端口速度:switch(enable) set port speed moudle/number {10

12、100

13、auto}switch(enable) set port speed moudle/number {4

14、16

15、auto}7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)# duplex {auto

16、full

17、half}在基于CLI的交换机上设置以太网的链路模式:switc

18、h(enable) set port duplex module/number {full

19、half}8.在基于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-

20、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-list 9. 在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode tru

21、nkswitch(config-if)# switchport trunk encapsula

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。