思科(CISCO)交换机配置命令 您所在的位置:网站首页 cisco怎么用ping命令 思科(CISCO)交换机配置命令

思科(CISCO)交换机配置命令

2023-07-06 19:14| 来源: 网络整理| 查看: 265

switch>             用户模式

switch>enable 进入特权模式

password:         输入特权模式密码

switch#             特权模式

switch#show version  查看当前版本信息

switch#show ip interface brief 查看交换机上有哪些接口,以及总体的配置信息和状态

switch#ping  x.x.x.x (ip 地址)

switch#show running-config     查看当前(内存中)配置

switch#show startup-config      查看启动(硬盘中)配置

switch#copy running-config  startup-config  将当前配置保存到启动配置中

switch#write                            等同于以上命令

switch#show interface f0/1     查看f0/1接口

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

switch(config)#hostname  aptech                 将交换机名字改为aptech

switch(config)#enable password  xxx(密码)              配置明文密码

switch(config)#no  enable password  xxx(密码)        删除明文密码

switch(config)#enable secret   xxx(密码)                   配置加密密码

switch(config)#no enable secret   xxx(密码)              配置加密密码

switch(config)#interface ethernet 0              进入0号以太网接口

switch(config)#interface ethernet 0/1          进入0号插槽的1号以太网接口(10M)

switch(config)#interface  fastethernet 0/1  进入0号插槽的1号快速以太网接口(100M)

switch(config)#interface  serial 0                   进入0号串型接口(以前用,现在很少用)

switch(config)#interface  serial 0/1               进入0号插槽的1号串型接口

switch(config)#line console 0                          进入到console接口

switch(config-line)#已经在console接口

switch(config-line)#password  xxx(明文密码) 配置console口密码

switch(config-line)#no password  xxx(明文密码) 去除console口密码

switch(config)#line vty 0 15                             进入 0-15 号telnet会话

switch(config-line)#已经在vty线路了

switch(config-line)#password  xxx(明文密码) 配置vty口密码

switch(config-line)#no password  xxx(明文密码) 去除vty口密码

switch(config-line)#login         对telnet密码做验证

switch(config-line)#no login   不对telnet密码做验证

switch(config)#interface vlan 1    进入虚拟局域网接口1

switch(config-if)#已经在该接口模式

switch(config-if)#ip address  x.x.x.x(ip地址)  255.255.255.0 (子网掩码)

switch(config-if)#no shutdown   打开当前端口

switch(config-if)#shutdown        关闭当前端口

switch(config-if)#clock rate 64000   (配置时钟,只需要在串行接口配置即可,以太网接口不用)

switch(config-if)#end 退出到特权模式



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有