Welcome 微信登录

首页 / 操作系统 / Linux / Cisco路由交换基本配置命令

(注:红色为变量) 1、路由配置ip:r1(config)#interface f0/0
r1(config-if)#ipadd 192.168.1.1255.255.255.0 r1(config-if)#no sh 2、交换机配置IP:sw1(config)#interfacevlan 1 Sw1(config-if)#ip add 192.168.1.1255.255.255.0
sw2(config-if)#no sh 3、配置主机名:r1(或者sw1)(config)#host name 4、显示系统及IOS名称及版本信息:sw1#shver 5、查看当前配置信息:sw1#showrun 6、查看以保存信息:sw1#showstar 7、保存当前配置:sw1#copyrunstar 8、删除已保存信息:sw1#erasenvram(真实机)/erasestartup-config(虚拟机) 9、永不超时:sw1(config-line)#exec-timeout00 10、显示同步:sw1(config-line)# logging synchronous 11、禁止dns查找:sw1(config)#noipdomain-10 12、指定接口的双工模式:sw1(config-if)#duplex{full / half /auto} 13、指定接口的通信速率:sw(config-if)#speed{10/100/1000/auto} 14、查看路由表:r1#showiproute  15、配置默认路由:r1(config)#iproute0.0.0.00.0.0.0 192.168.1.1 16、配置console口密码:r1(或sw1)(config)#lineconsole 0 (config-line)#passwordcisco (config-line)#login 17、配置特权模式密码:r1(或sw1)(config)#enablepasswordcisco/明文显示 r1(或sw1)(config)#servicepassword-encryption/加密明文密码   18、路由器密码恢复:a、重启路由器,按ctrl+breack。 b、rommom>config0x2142c、在重启。Rommom>reset.D、router#copystartup-configrunning-config E、修改密码。F、router(config)#config-register 0x2102 Router(config)#exitrouter#copyrunning-configstartup-config 19、交换机密码恢复:a、把电源插头。B、按“mode” c、switch:flash_initd、switch:renameflash:config.txtflash:config.olde、switch:bootf、switch#renameflash:config.oldflash:config.textg、switch#copyflash:config.Textsystem:running-configh、修改密码并保存 20、设置VTY密码:sw1(config)#line vty 0 4 Sw1(config-line)#passwordcisco Sw1(config-line)#login 21、登录交换机:C:>telnet192.168.1.10 22、配置默认网关:sw1(config)#ip default-getway 192.168.2.254 23、升级路由IOS:router#copytftpflash 备份IOS:router#copyflashtftp 24、在交换机上配置DHCP
配置地址池:Ø
(config)# ip dhcp pool t114
配置网段:Ø
(dhcp-config)# network 192.168.1.0 255.255.255.0
Ø配置默认网关:
(dhcp-config)#default-route 192.168.1.1
Ø配置dns:
(dhcp-config)#dns-server 202.0.0.1
Ø配置租期:
(dhcp-config)#lease 2
配置静态预留地址:Ø
(config)#ip dhcp excluded-address 192.168.1.30通过XShell链接虚拟机的CentOS用Red Hat Enterprise Linux 搭建Java开发环境相关资讯      Cisco  Cisco配置命令 
  • Cisco Unified Communications   (10/12/2015 15:11:19)
  • 《Cisco网络技术》课程实验指导书-  (08/03/2015 21:05:31)
  • Cisco中的IGRP协议笔记  (09/10/2013 06:24:16)
  • Cisco 正为苹果设备优化其网络表现  (09/01/2015 12:24:06)
  • Cisco 路由器启动过程详解及重置密  (11/20/2013 13:57:48)
  • CISCO ASA NAT配置  (09/08/2013 19:38:11)
本文评论 查看全部评论 (0)
表情: 姓名: 字数