# Cisco 2960-24配置命令及验证过程<拓扑见下方>

基础校园班级网络搭接。

配置命令

警告!!! 复制前请删除配置命令间的换行

301

enable 

configure terminal 

hostname 301

enable password cisco301

enable secret Cisco301

interface vlan 1

ip address 172.16.111.254 255.255.0.0

no shutdown 

exit

line vty 0 4

password cisco301

enit

line console 0 

password cisco301

login

exit

exit

copy running-config startup-config 

302

enable 

configure terminal 

hostname 302

enable password cisco302

enable secret Cisco302

interface vlan 1

ip address 172.16.101.254 255.255.0.0

no shutdown 

exit

line vty 0 4

password cisco302

enit

line console 0 

password cisco302

exit

exit

copy running-config startup-config 

201

enable 

configure terminal 

hostname 201

enable password cisco201

enable secret Cisco201

interface vlan 1

ip address 172.16.131.254 255.255.0.0

no shutdown 

exit

line vty 0 4

password cisco201

enit

line console 0 

password cisco201

exit

exit

copy running-config startup-config 

202

enable 

configure terminal 

hostname 202

enable password cisco202

enable secret Cisco202

interface vlan 1

ip address 172.16.141.254 255.255.0.0

no shutdown 

exit

line vty 0 4

password cisco202

enit

line console 0 

password cisco202

exit

exit

copy running-config startup-config 

205

enable 

configure terminal 

hostname 205

enable password cisco205

enable secret Cisco205

interface vlan 1

ip address 172.16.151.254 255.255.0.0

no shutdown 

exit

line vty 0 4

password cisco205

exit

exit

copy running-config startup-config 

206

enable 

configure terminal 

hostname 206

enable password cisco206

enable secret Cisco206

interface vlan 1

ip address 172.16.121.254 255.255.0.0

no shutdown 

exit

line vty 0 4

password cisco206

enit

line console 0 

password cisco206

exit

exit

copy running-config startup-config 


命令解析

下面的解析如何看?上面是解析下面的配置命令
#解析
配置命令
#用户模式
enable 
#特权模式
configure terminal 
#更改设备名称
hostname 301
#设置enable明文密码
enable password <<这里是密码
#设置enable密文密码
enable secret <<这里是密码
#进入VLAN1
interface vlan 1
#配置VLAN1 IP地址
ip address 172.16.111.254 255.255.0.0
#打开vlan1 接口
no shutdown 
#退出
exit
#设置telnet密码 进入telnet 接口 0-4 接口 共5个 0 1 2 3 4 
line vty 0 4
#设置telnet密码
password <<这里是密码
#退出
enit
#设置console接口密码 进入console接口 共1个 0
line console 0 
#设置console密码
password <<这里是密码
#登录验证 console密码
login
#退出 console
exit
#退出到特权模式
exit
#保存命令
copy running-config startup-config
#running-config当前交换机系统中正在运行的配置文件 
#startup-config交换机启动时需要加载的配置文件
#保存配置命令 同上
writ

拓扑图

在这里插入图片描述

配置验证

1验证console口密码

在这里插入图片描述

2验证进入模式密码

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ocHrt821-1647234008935)(C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20220314112233437.png)]

3验证进入telnet

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-qSZXJE11-1647234008935)(C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20220314112517070.png)]

4验证show running-config

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-hBtr0Xhg-1647234008935)(C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20220314112700040.png)]
在这里插入图片描述

5验证ping命令

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

conkl

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值