Cisco交换机基本使用命令

1、进入命令行spa

switch>                                                                  用户模式命令行

switch> enable                                                       进入特权模式接口

switch#                                                                  特权模式terminal

switch# config terminal                                 进入全局配置模式it

switch# conf t                                                         简写io

switch(config)#                                              全局配置模式table

switch(config)# interface fastethernet 0/1  进入接口模式ast

switch(config)# int f0/1                          简写配置

switch(config-if)#                                            接口模式通信

switch(config-if)# exit                            回到上一层模式

switch(config)# end                                        快速退到特权模式

switch# disable                                        从特权模式回到用户模式

switch>

2、命令行基本配置

switch(config)# hostname ws1                             更改主机名为“sw1”

switch(config)# host ws1                               简写

switch# show version                      显示系统“IOS”名称及版本信息

switch# sh ver                                                                简写

switch# show mac-address-table [dynamic]       查看MAC地址表

 

3、配置交换机速率

switch(config-if)# duplex { full | half | auto }                     指定接口的双工模式

full:全双工

half:半双工

auto:自动协商

 

指定接口的通讯速率:

switch(config-if)# speed { 10 | 100 | 1000 | auto }

相关文章
相关标签/搜索