<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 
思科路由器命令大全最近在学习路由器的配置 把这个发上来方便以后学习和查阅
switch>          用户模式
1:进入特权模式   enable
switch> enable
switch#
2:进入全局配置模式   configure terminal
switch> enable
switch#c onfigure terminal
switch(conf)#
3:交换机命名 hostname aptech2950      以aptech2950为例
switch> enable
switch#c onfigure terminal
switch(conf)#hostname aptch-2950
aptech2950(conf)#
4:配置使能口令   enable password cisco     以cisco为例
switch> enable
switch#c onfigure terminal
switch(conf)#hostname aptch2950
aptech2950(conf)# enable password cisco
5:配置使能密码   enable secret ciscolab     以cicsolab为例
switch> enable
switch#c onfigure terminal
switch(conf)#hostname aptch2950
aptech2950(conf)# enable secret ciscolab
6:设置虚拟局域网vlan 1    interface vlan 1
switch> enable
switch#c onfigure terminal
switch(conf)#hostname aptch2950
aptech2950(conf)# interface vlan 1
aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0       配置交换机端口ip和子网掩码
aptech2950(conf-if)#no shut                               是配置处于运行中
aptech2950(conf-if)#exit
aptech2950(conf)#ip default-gateway 192.168.254              设置网关地址
7:进入交换机某一端口 interface fastehernet 0/17            以17端口为例
switch> enable
switch#c onfigure terminal
switch(conf)#hostname aptch2950
aptech2950(conf)# interface fastehernet 0/17
aptech2950(conf-if)#
8:查看命令   show
switch> enable
switch# show version   察看系统中的所有版本信息
show interface vlan 1   查看交换机有关ip 协议的配置信息
show running-configure 查看交换机当前起作用的配置信息
show interface fastethernet 0/1   察看交换机1接口具体配置和统计信息
show mac-address-table         查看mac地址表
show mac-address-table aging-time   查看mac地址表自动老化时间
9:交换机恢复出厂默认恢复命令 
switch> enable
switch# erase startup-configure
switch# reload
10:双工模式设置
switch> enable
switch#c onfigure terminal
switch2950(conf)#hostname aptch-2950
aptech2950(conf)# interface fastehernet 0/17                  以17端口为例
aptech2950(conf-if)#duplex full/half/auto                     有full , half, auto 三个可选项
11:cdp相关命令
switch> enable
switch# show cdp     查看设备的cdp全局配置信息
show cdp interface fastethernet 0/17     查看17端口的cdp配置信息
show cdp traffic      查看有关cdp包的统计信息
show cdp nerghbors   列出与设备相连的cisco设备
12:csico2950的密码恢复
拔下交换机电源线。
用手按着交换机的MODE键,插上电源线
在switch:后执行flash_ini命令:switch: flash_ini
查看flash中的文件: switch: dir flash:
把“config.text”文件改名为“config.old”: switch: rename flash: config.text flash: config.old
执行boot:    switch: boot
交换机进入是否进入配置的对话,执行no :
进入特权模式察看flash里的文件: show flash :
把“config.old”文件改名为 “config.text”:    switch: rename flash: config.old flash: config.text
把“config.text”拷入系统的“running-configure”: copy flash: config.text system : running-configure
把配置模式重新设置密码存盘,密码恢复成功。
13:交换机telnet远程登录设置:
switch>en
switch#c onfigure terminal
switch(conf)#hostname aptech-2950
aptech2950(conf)#enable password cisco           以cisco为特权模式密码
aptech2950(conf)#interface fastethernet 0/1         以17端口为telnet远程登录端口
aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0
aptech2950(conf-if)#no shut
aptech2950(conf-if)#exit
aptech2950(conf)line vty 0 4                    设置0-4 个用户可以telnet远程登陆
aptech2950(conf-line)#login
aptech2950(conf-line)#password edge             以edge为远程登录的用户密码
主机设置:
ip          192.168.1.2                主机的ip必须和交换机端口的地址在同一网络段
netmask     255.255.255.0
gate-way    192.168.1.1                网关地址是交换机端口地址
运行:
telnet 192.168.1.1
进入telnet远程登录界面
password : edge               
aptech2950>en
password: cisco
aptech#
14:交换机配置的重新载入和保存
设置完成交换机的配置后:
aptech2950(conf)#reload
是否保存(y/n)    y: 保存设置信息         n:不保存设置信息
路由器命令
router>          用户模式
1:进入特权模式   enable
router > enable
router #
2:进入全局配置模式   configure terminal
router > enable
router #c onfigure terminal
router (conf)#
3:交换机命名 hostname routera     以routerA为例
router > enable
router #c onfigure terminal
router(conf)#hostname routerA
routera (conf)#
4:配置使能口令   enable password cisco     以cisco为例
router > enable
router #c onfigure terminal
router(conf)#hostname routerA
routerA (conf)# enable password cisco
5:配置使能密码   enable secret ciscolab     以cicsolab为例
router > enable
router #c onfigure terminal
router(conf)#hostname routerA
routerA (conf)# enable secret ciscolab
6:进入路由器某一端口 interface fastehernet 0/17            以17端口为例
router > enable
router #c onfigure terminal
router(conf)#hostname routerA
routerA (conf)# interface fastehernet 0/17
routerA (conf-if)#
进入路由器的某一子端口 interface fastethernet 0/17.1        以17端口的1子端口为例
router > enable
router #c onfigure terminal
router(conf)#hostname routerA
routerA (conf)# interface fastehernet 0/17.1
7:设置端口ip地址信息
router > enable
router #c onfigure terminal

转载于:https://blog.51cto.com/shxboy/154394

思科路由器命令大全(一)相关推荐

  1. 全网最优质的思科设备命令大全

    前两天给大家分享了H3C和华为的命令大全,得到了大家的认可,昨天有粉丝在华为命令大全中提到锐捷相关的命令大全,我寻思了一下,其实思科和锐捷的命令是相近的,所以想着直接整理一下思科的就可以了,希望大家能 ...

  2. 这份思科设备命令大全火了~

    本文整理了以下思科设备命令: 模式转换命令 静态路由相关配置 RIP命令汇总 EIGRP相关配置命令 OSPF相关配置命令 IS-IS基本配置命令 BGP基本配置命令 二层链路封装 帧中继相关配置命令 ...

  3. 华为路由器命令大全(字典查询)

    华 为 路 由 器 命 令 大 全 删除设备配置  reset saved-configuration 重启  reboot 看当前配置文件  display current-configuratio ...

  4. 【思科交换机命令大全,含巡检命令,网工建议收藏!】

    思科交换机基本配置命令 switch>enable 进入特权模式 switch#config terminal 进入全局模式 switch(config)#hostname+xxx 设置主机名 ...

  5. 路由器命令大全手册教程 4

    5. Cisco765M 通过ISDN 拨号上263 由于Cisco765 的设置命令与我们常用的Cisco 路由器的命令不同,所以以下列举了通过Cisco765 上263 访 问Internet 的 ...

  6. 思科交换机命令大全(二)

    11 :cdp相关命令 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" / ...

  7. 思科交换机命令大全 二

    11.配置VTP管理域 switch# vlan database switch(vlan)# vtp domain domain-name switch(enable) set vtp [domai ...

  8. 送你了,思科设备基础配置命令大全(一),赶紧收藏......

    [欢迎关注微信公众号:厦门微思网络] xmws-IT 思科设备基础配置命令大全(一) 思科设备管理基础命令 enable   从用户模式进入特权模式 configure terminal   进入配置 ...

  9. 路由删除命令_清除思科路由器配置信息的两种方法

    对于网络设备来说,清除思科路由器配置信息是防止黑客轻松地连接访问公司网络的最佳方法.在对Cisco路由器进行清理时,有两种不同的方法可供选择,而它们通常用于不同的方面: 一.知道路由器的密码,相关步骤 ...

  10. H3C交换机路由器配置命令大全

    H3C交换机配置命令大全 1.system-view 进入系统视图模式 2.sysname 为设备命名 3.display current-configuration 当前配置情况 4. langua ...

最新文章

  1. Lvs 负载均衡之nat模式配置
  2. 如何加快数据库查询速度
  3. java annotations详解_Java Annotations详解
  4. UISegmentedControl UISlider
  5. 02-创建hibernate工程
  6. typescript之nodejs开发
  7. ASA REST API安装步骤
  8. ospf 指定dr_OSPF中DR、BDR竞选机制
  9. win7纯净版64位系统下载
  10. DLang 编译实验
  11. java ldc指令_6.Java JVM_4.JVM字节码之整型入栈指令(iconst、bipush、sipush、ldc)
  12. 车牌归属地 API数据接口
  13. 定义一个Traingle类用来刻画“三角形”,要求:Trangle类具有类型为double的三个边以及周长、面积属性,具有一个boolean型的属性,该属性的值为true时代表三个边属性能构成一个三角
  14. HObject,unsigned char的相互转换
  15. VR系列--VR介绍
  16. DOIP SOME/IP
  17. windows下wav格式歌曲文件信息修改
  18. C语言求高次方的尾数
  19. RectTransform属性
  20. 有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是因为系统无法达到您要求的状态造成的

热门文章

  1. Arduino 和LCD1602液晶屏 I2C接口实验
  2. Crucile-协作式代码审查
  3. 修改EDGE的新标签页网址
  4. iosbanner_ios图片的局部拉伸-------App首页banner图的iPhone X适配
  5. 【台州世通兰陵王系列】服务器的1U、2U、4U是指什么?
  6. 【第005问 Unity中如何显示三角形中心法线?】
  7. 论文阅读笔记:Masked Autoencoders Are Scalable Vision Learners
  8. Flutter 苹果原生拼音键盘在TextField上输入异常 | 拼音输入过程回调问题
  9. HDU - 4311 Meeting point-1(最小曼哈顿距离和)
  10. python中sticky_position: sticky 详解(防坑指南)