思科设备基本配置

2025-05-13 07:56:01

1、我们首先百度下载思科模拟器

2、安装完后,可以参考小编的拓扑图。这里我们要知道,同一类设备要用交叉线,不同设备要用直通线。(PC和路由器是同一类设备,要用交叉线连接。)

思科设备基本配置

3、我们点击交换机进入交换机的IOS系统

思科设备基本配置

4、1:通用命令(IOS系统的>号表示的是用户模式,类似于电脑系统的来宾账户)Switch> 输入命令enalbeSwitch# (#号特权袷蜍滇刷模式,类似于电脑系统的管理员账户,最高权限)返回用户模式 disable 这里可以用TAB键补全命令Switch#disable( # 特权模式的返回命令,可以返回到用户模式)

思科设备基本配置
思科设备基本配置

5、配置模式输入命令configure ?命令加?可以显示此命令后还可以输入的命令或参数Switch#configure ?

思科设备基本配置

6、配置设备名称 Switch(config)#hostname ?这里我们输入Switch(config)#hostname SW1SW1(config)#

思科设备基本配置

7、关闭设备域名解析的功能SW1(config)# no ip domain-lo进入console 接口SW1(config)# line con 0开启日志同步功能,配置命令不会被日志打断SW1(config-line)#logg syn关闭console接口配置超时SW1(config-line)#exec-timeout 0 0

思科设备基本配置

8、配置console口密码SW1(config-line)#password ccna配置console口验证,说明console需要登录。SW1(config-line)#login

思科设备基本配置

9、配置特权模式密码SW1(config)#enable password ccna (明文密码)SW1(config)#enable secrt ccnp (加密密码)加密密码的权限大于明文密码,进入系统时用加密密码。

思科设备基本配置

10、配置远程管理密码SW1(config)# line vty 0 4SW1(config-line)# password ccnaSW1(config-line)# login

思科设备基本配置

11、保存配置(标准命令)SW1#copy running-config startup-config保存配置,快捷命令,常用SW1#wr重启设备SW1#reload

思科设备基本配置
思科设备基本配置

12、配置VLAN1 地址即是配置交换机的管理地址SW1(config)#interface vlan 1SW1(config-if)#ip address 192.168.1.1 255.255.255.0# 交换机的VLAN1 虚拟接口需要手工开启SW1(config-if)#no shutdown

思科设备基本配置

13、配置交换机默认网关,同一个网段访问交换机不用配置网关,跨网段访问交换机必须配置网关。SW1(config)#ip default-gateway 192.168.1.254 # 配置交换机默认网关

思科设备基本配置

14、路由器常用命令:Router(config)#no ip domain-loRouter(con酆璁冻嘌fig)#li荏鱿胫协ne con 0Router(config-line)#logg synRouter(config-line)#execRouter(config-line)#exec-timeout 0 0Router(config-line)#endRouter#

思科设备基本配置

15、更改路由器名字 Router(config)#hostname R1配置接口地址,路由器的所有接口都需要配置地址R1(con熠硒勘唏fig)#int fa0/0R1(config-if)#ip add 192.168.1.254 255.255.255.0路由器的物理接口都需要手工开启R1(config-if)#no shut

思科设备基本配置

16、常用show命令查看当前配置,包括设备的默认配置R1#show running-config查看系统版本,即显示系统自检的主要内容 R1#show version

思科设备基本配置
思科设备基本配置

17、查看Flash,包含空间大小、使用情况以及文件信息R1#show flash:显示接口信息,主要显示物理层信息R1#show interfaces fa0/0

思科设备基本配置
思科设备基本配置

18、简要显示所有接口信息,主要包含端口地址以及端口状态R1#show ip interface brief

思科设备基本配置
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢