思科路由器配置命令教程

如题所述

enable:进入特权命令状态
configterminal:进入全局设置状态
end:退出全局设置状态
interfacetypeslot/number:进入端口设置状态
exit:退出局部设置状态
hostnamename:设置交换机名
showversion:查看版本及引导信息
showrunning-config:查看运行设置
showvlan:查看VLAN设置
showinterfacetypeslot/number:显示端口信息
pinghostname|IPaddress:网络侦测
1、进入特权模式
Switchenable(进入特权模式)
Switch#
2、进入全局配置与返回模式
Switchenable
Switch#configterminal(进入全局配置模式)
Switch(config)#exit(退回上一级模式)
(cisco)路由器动态路由协议命令
3、RIP协议
router:指定使用RIP协议
version:指定与该路由器相连的网络
showiproute:查看路由表信息
showiprouterip:查看RIP协议路由信息
R1:ipadd192.168.1.254255.255.255.0
clockrate500000/指定该端口时钟频率
bankwidth64/指定相应接口的网络带宽单位KB
iproutting
routerigrp100/指定igrp协议,100为当前网络环境
network192.168.1.0/声明网络192.168.1.0/24
network192.168.2.0
network192.168.3.0
4、ospf协议
routeospfprocess-id指定使用OSPF协议
networkaddresswildcard-maskareaarea-id指定与该路由器相连的网络
showiproute查看路由表信息
showiprouteospf查看OSPF协议路由信息
5、EIGRP协议
routeeigrpprocess-id指定使用EIGRP协议
networknetwork指定与该路由器相连的网络
noauto-summary关闭EIGRP协议自动汇总功能
R1:routereigrp200
network192.168.1.2540.0.0.1
network192.168.2.2540.0.0.1
noauto-summary
温馨提示:答案为网友推荐,仅供参考
相似回答