读文网>电脑>网络知识>路由器>路由器设置>cisco思科

Cisco路由器常用配置命令推荐六篇

思科依靠自身的技术和对网络经济模式的深刻理解,成为了网络应用的成功实践者之一,那你知道cisco路由器常用配置命令吗?下面是读文网小编整理的一些关于Cisco路由器常用配置命令的相关资料,供你参考。

Cisco路由器常用配置命令之交换机设置IP地址:

switch(configinterfacevlan 1 ;进入

vlan 1switch(config-ifipaddress ;设置IP地址

switch(configipdefault-gateway ;设置默认网关

switcdirflash: ;查看闪存

Cisco路由器常用配置命令之交换机VLAN设置:

switchvlandatabase ;进入VLAN设置

switch(vlan)vlan2 ;建VLAN 2

switch(vlannovlan 2 ;删

vlan 2switch(configintf0/1 ;进入端口1

switch(config-ifswitchportaccess vlan 2 ;当前端口加入

vlan 2switch(config-ifswitchportmode trunk ;设置为干线

switch(config-ifswitchporttrunk allowed vlan 1,2 ;设置允许

vlanswitch(config-ifswitchporttrunk encap dot1q ;设置vlan 中继

switch(configvtpdomain ;设置发vtp域名

switch(configvtppassword ;设置发vtp密码

switch(configvtpmode server ;设置发vtp模式

switch(configvtpmode client ;设置发vtp模式

Cisco路由器常用配置命令之静态路由配置:

ip route;命令格式

router(configiproute 2.0.0.0 255.0.0.0 1.1.1.2 ;静态路由举例

router(configiproute 0.0.0.0 0.0.0.0 1.1.1.2 ;默认路由举例

看过文章“Cisco路由器常用配置命令”

Cisco路由器常用配置命令之交换机基本状态:

switch: ;ROM状态

hostname# ;特权模式

hostname(config)# ;全局配置模式

hostname(config-if)# ;接口状态

enable ;进入特权模式

switchconfigterminal ;进入全局配置模式

switch(confighostname;设置交换机的主机名

switch(config)enablesecret xxx ;设置特权加密口令

switch(config)enablepassword xxa ;设置特权非密口令

switch(config)lineconsole 0 ;进入控制台口

switch(config-line)linevty 0 4 ;进入虚拟终端

switch(config-linelogin;允许登录

switch(config-linepasswordxx ;设置登录口令

xxswitchexit;返回命令

Cisco路由器常用配置命令之动态路由配置:

router(configiprouting ;启动路由转发

router(config)routerrip ;启动RIP路由协议。

router(config-router)network;设置发布路由

router(config-routernegihbor;点对点帧中继用。

Cisco路由器常用配置命令之交换机显示命令:

switchwrite;保存配置信息

switchshowvtp ;查看vtp配置信息

switchshowrun ;查看当前配置信息

switchshowvlan ;查看vlan配置信息

switchshowinterface ;查看端口信息

switchshowint f0/0 ;查看指定端口信息

routercopyrunning-config startup-config ;保存配置

routercopyrunning-config tftp ;保存配置到

tftproutercopystartup-config tftp ;开机配置存到

tftproutercopytftp flash: ;下传文件到

flashroutercopytftp startup-config;下载配置文件ROM状态:

Ctrl+Break ;进入ROM监控状态

rommon>confreg 0x2142 ;跳过配置文件

rommon>confreg 0x2102 ;恢复配置文件

rommon>reset ;重新引导

rommon>copy xmodem: flash: ;从console传输文件

rommon>IP_ADDRESS=10.65.1.2 ;设置路由器IP

rommon>IP_SUBNET_MASK=255.255.0.0 ;设置路由器掩码

rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP服务器IP

rommon>TFTP_FILE=c2600.bin ;指定下载的文件

rommon>tftpdnld ;从tftp下载

rommon>dir flash: ;查看闪存内容

rommon>boot ;引导IOS

相关热搜

相关文章

【cisco思科】热点

【cisco思科】最新