Cisco路由器基础命令你总结了吗_cisco路由器命令总结
Cisco路由器基础命令你总结了吗由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“cisco路由器命令总结”。
Cisco路由器基础命令你总结了吗?
2011-07-29 10:26 佚名 论坛 我要评论(1)字号:T | T
路由器是组网设备中必不可少的一员,那么它的配置问题就成了必不可缺的步骤之一,下面就让我们来看一下基本的命令的结合,有获得思科认证初步想法的人一定要会以下内容。
路由器命令基础——模式转换命令
用户模式----特权模式,使用命令“enable” 特权模式----全局配置模式,使用命令“config t” 全局配置模式----接口模式,使用命令“interface+接口类型+接口号” 全局配置模式----线控模式,使用命令“line+接口类型+接口号” 注:
用户模式:查看初始化的信息.特权模式:查看所有信息、调试、保存配置信息
全局模式:配置所有信息、针对整个路由器或交换机的所有接口
接口模式:针对某一个接口的配置
线控模式:对路由器进行控制的接口配置
路由器命令基础——配置命令
Router(config)# no ip domain-lookup 关闭动态域名解析 Router(config)# ip domain-lookup 打开动态域名解析
Router(config-line)#logging synchronous日志自动跳行/logg sync 防止命令打断 Router(config-line)#exec-timeout xx执行命令超时5
switch(config-if-range)#switchport acce vlan 1026、switch(config)#interface f0/1 进入接口
switch(config-if)#switchport mode trunk 设置为trunk(永久)
switch(config-if)#switchport mode dynamic desirable/auto(其它trunk)
switch(config-if)#switchport trunk allowed vlan remove 10 移除vlan10)
switch(config-if)#switchport trunk allowed vlan add 20 添加vlan2027、switch#show interface f0/1 switchport查看接口模式
show ip interface brief