一、进入命令行

switch>                                                                  用户模式

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

switch> enable                                                       进入特权模式

switch#                                                                  特权模式

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

switch# conf t                                                         简写

switch(config)#                                              全局配置模式

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

switch(config)# int f0/1                          简写

switch(config-if)#                                            接口模式

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

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

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

switch>

二、命令行基本配置

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

switch(config)# host ws1                               简写

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

switch# sh ver                                                                简写

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

 

三、配置交换机速率

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

full:全双工

half:半双工

auto:自动协商

 

指定接口的通信速率:

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

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄