CCNA-基本配置

在这里插入图片描述
线序分为交叉线和平行线
交叉线是用在同层设备上,使同用的线序是A-B B-A
直通线,平行线 使用在不同层设备线序是 A-A B-B例如交换机和主机,线序相同。
PC跟路由器用的是平行线。

设备的模式

用户模式

switch>        进行简单的查看
通过键入enable进入特权模式

特权模式

switch>enable
switch#  (进行所有的查看以及简单的配置)

全局配置模式

R1#configure terminal 可以进行全局更改
R1(config)# 对全局进行所有的配置

接口模式:

R1(config)#interface fastEthernet 0/0
R1(config-if)#                    对接口进行所有的配置

线路模式:

R1(config)#line console 0
R1(config-line)#             对console口进行配置

Ethernet 10M接口
fastEthernet 100M接口
GigabitEthernet0/0 1000M接口
单工 全双工(半双工,全)双工
重启设备

switch#reload

查询路由器时间

switch#show clock

修改路由器时间

switch#clock set 13:33:49 nov 12 2018

打开debug全局

R1#debug ip packet

关闭所有debug

R1#undebug all

?思科帮助系统 tab自动补全
退出指令
Exit 一层一层退出
End 直接退出到特权模式
Disable 特权模式退出到用户模式

设备的预配置指令
更改设备名称

R1(config)#wangcai
wangcai(config)#

关闭域名解析

因为在做实验的时候的优化命令时往往会由于打错命令造成路由器会自动去向DNS服务器发送域名解析请求,造成损耗路由器CPU消耗很大,而且解析时间很长而没法继续其他命令,为了加快命令的执行就关闭域名解析功能

R1(config)#no ip domain-lookup

日志同步

R1(config)#line console 0
R1(config-line)#logging synchronous

用不超时

R1(config-line)#exec-timeout 0 0

设备的加密(给console口加密)

R1(config)#line console 0
R1(config-line)#password doubi
R1(config-line)#login  调用
先end再exit,在用户模式才需要密码

使用用户名加密码进行加密

R1(config)#username ccna password cisco
R1(config)#line console 0
R1(config-line)#login local

密文 secret是MD5加密

R1(config)#username ccna secret cisco

给明文进行一个加密

R1(config)#service password-encryption

给设备二层加密

R1(config)#enable secret ccna

给权限(跳出用户模式)

Router(config)#username ccna privilege 15 password cisco

保存

Router#copy running-config startup-config
Destination filename [startup-config]?


Router#write 
Building configuration...
[OK]

删除指令

Router#erase startup-config 
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

完成之后一定要重新启动

网络组件步骤:
1、拓扑设计—IP地址规则
2、配置
1)底层—所有设备的IP地址
2)路由
3)策略
4)安全
5)优化
3、测试
4、排错
5、维护

给接口配置IP地址

R2(config)#interface f0/0
R2(config-if)#ip address 12.1.1.2 255.255.255.0
R2(config-if)#no shut

查看接口摘要

R1#show ip interface brief

Interface              IP-Address      OK? Method Status                Protocol
 
FastEthernet0/0        12.1.1.1        YES manual up                    up
 
FastEthernet0/1        unassigned      YES unset  administratively down down
 
Vlan1                  unassigned      YES unset  administratively down down

接口状态
Up 表示该接口可以正确识别电流
Down
administratively domn

接口协议
Up 表示可以正确识别数据
Down

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值