首页 > 其他 > 详细

9.思科交换路由基本命令操作

时间:2017-03-08 01:32:15      阅读:159      评论:0      收藏:0      [点我收藏+]

工作模式:

>:用户模式

#:特权模式

(config)#:全局模式

(config-if)#:接口模式

命令大致划分:

用户模式下大多都是对设备IOS系统进行操作配置的一些命令。

特权模式下大多都是Show查看类命令。

全局模式下大多都是配置类命令。

接口模式下大多都是对于接口的配置命令。

CSICO基础常用命令

命令

描述

> enable

进入特权模式

# conf t

进入全局模式

(config)# interface f0/0(接口名)

进入接口模式

(config-if)# exit

退出到上级模式

(config-if)# end

退回到特权模式

# reload

重启设备

# wr

保存配置到NVRAM

# erase nvram

清空NVRAM中的所有配置

# delete nvramstartup-config

清空NVRAM中的所有配置

# show ver

查看IOS系统版本

# show ip interface brief

查看设备接口信息

# show interface f0/0(接口名)

查看接口的工作模式,速率

# show mac-address-table

查看MAC地址表

# show ip route

查看路由表

# show running-config

查看RAM中的临时配置

# show startup-config

查看NVRAM中的永久配置

# copy startup-config running-config

拷贝NVRAM中的配置到RAM

(config)# hostname R1(主机名)

配置一个新的主机名

(config)# line con 0

进入Console管理口

(config-line)# exec-timeout 0 0

配置Console接口永不超时

(config-line)# password 123(密码)

配置Console接口密码

(config-line)# logging synchronous

配置防打断

(config-line)# no ip domain-lookup

配置禁止DNS查找

(config-if)# ip add 192.168.1.1 255.255.255.0

给该接口配置一个IP地址

(config-if)# no shutdown

打开该接口

(config-if)# shutdown

关闭该接口

(config-if)# duplex full(全双工)或half(半双工)或auto10/100自适应)

配置接口的双工模式

(config-if)# speed 101001000auto

配置接口速率

9.思科交换路由基本命令操作

原文:http://10978134.blog.51cto.com/10968134/1904033

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!