思科路由器命令大全(完整版)

思科交换机路由器命令大全

交换机命令:

switch> 用户模式

1:进入特权模式 enable

switch> enable

switch#

2:进入全局配置模式 configure terminal

switch> enable

switch#configure terminal

switch(conf)#

3:交换机命名 hostname aptech2950 以aptech2950为例

switch> enable

switch#configure terminal

switch(conf)#hostname aptch-2950

aptech2950(conf)#

4:配置使能口令 enable password cisco 以cisco为例

switch> enable

switch#configure terminal

switch(conf)#hostname aptch2950

aptech2950(conf)# enable password cisco

5:配置使能密码 enable secret ciscolab 以cicsolab为例--设置禁用IP地址解析特性,设置启用消息同步特性

switch> enable

switch#configure terminal

switch(conf)#hostname aptch2950

aptech2950(conf)# enable secret ciscolab

aptech2950(conf)#no ip

domain-lookup -----设置禁用IP 地址解析特性

aptech2950(conf)#logging

synchronous -----设置启用消息同步特性

aptech2950(conf)#interface range fastethernet0/1-20

aptech2950(conf-if-range)#spanning-tree

portfast -----设置快速

端口

aptech2950(conf)#interface range fastethernet 0/23-24

aptech2950(conf-if-range)#swichport mode

trunk -----设置主干道端口aptech2950(conf)#spanning-tree

uplingkfast ---设置阻塞启用迅速〔只可以在访问层启用〕

6:设置虚拟局域网vlan 1 interface vlan 1

switch> enable

switch#configure terminal

switch(conf)#hostname aptch2950

aptech2950(conf)# interface vlan 1

配置交换机端口ip和子网掩码

aptech2950(conf-if)#no

shut 是配置处于运行中

aptech2950(conf-if)#exit

设置网关地址

7:进入交换机某一端口 interface fastehernet

0/17 以17端口为例

switch> enable

switch#configure 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#configure 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:

把“”文件改名为“”

执行boot: switch: boot

交换机进入是否进入配置的对话,执行no :

进入特权模式观察flash里的文件: show flash :

把“”文件改名为“”:

把“”拷入系统的“running-configure”: copy flash: config.text system : running-configure

把配置模式重新设置密码存盘,密码恢复成功。

13:交换机telnet远程登录设置:

switch>en

switch#configure terminal

switch(conf)#hostname aptech-2950

aptech2950(conf)#enable password cisco 以cisco为特权模式密码

aptech2950(conf)#interface fastethernet 0/1 以17端口为telnet

远程登录端口

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 主机的ip必须和交换机端口的地址在同一网络段

netmask

gate-way 网关地址是交换机端口地址

运行:

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 #configure terminal

router (conf)#

3:交换机命名 hostname routera 以routerA为例

router > enable

router #configure terminal

router(conf)#hostname routerA

routera (conf)#

4:配置使能口令 enable password cisco 以cisco为例

router > enable

router #configure terminal

router(conf)#hostname routerA

routerA (conf)# enable password cisco

5:配置使能密码 enable secret ciscolab 以cicsolab为例router > enable

router #configure terminal

router(conf)#hostname routerA

routerA (conf)# enable secret ciscolab

6:进入路由器某一端口 interface fastehernet

0/17 以17端口为例

router > enable

router #configure terminal

router(conf)#hostname routerA

routerA (conf)# interface fastehernet 0/17

routerA (conf-if)#

以17端口的1子端口为例

router > enable

router #configure terminal

router(conf)#hostname routerA

7:设置端口ip地址信息

router > enable

router #configure terminal

router(conf)#hostname routerA

fastehernet 0/17 以17端口为例

配置交换机端口ip和子网掩码

routerA (conf-if)#no

shut 是配置处于运行中

routerA (conf-if)#exit

8:查看命令 show

router > enable

router # 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地址表自动老化时间

show controllers serial + 编号查看串口类型

show ip router 查看路由器的路由表9:cdp相关命令

router > enable

router # show cdp 查看设备的cdp全局配置信息

show cdp interface fastethernet 0/17 查看17端口的cdp配置信息

show cdp traffic 查看有关cdp包的统计信息

show cdp nerghbors 列出与设备相连的cisco设备

10:csico2600的密码恢复

重新启动路由器,在启动过程中按下win+break键,使路由器进入rom monitor

在提示符下输入命令修改配置寄存器的值,然后重新启动路由器

remmon1>confreg 0x2142

remmon2>reset

重新启动路由器后进入setup模式,选择“no”,退回到exec模式,此时路由器原有的配置仍然保存在startup-config中,为使路由器恢复密码后配置不变把startup-config中配置保存到running-config中,然后重新设置enable 密码,并把配置寄存器改回0x2102:

router>enable

router#copy startup-config running-config

router(conf)#enable password cisco

router(conf)#c onfig-register 0x2102

保存当前配置到startup-config , 重新启动路由器。

router #copy running-config startup-config

router #reload

11:路由器telnet远程登录设置:

router>en

router #configure terminal

router (conf)#hostname routerA

routerA (conf)#enable password cisco 以cisco 为特权模式密码

routerA (conf)#interface fastethernet 0/1 以17端口为telnet远程登录端口

routerA (conf-if)#no shut

routerA (conf-if)#exit

routerA (conf)line vty 0 4 设置0-4 个用户可以telnet远程登陆

routerA (conf-line)#login

routerA (conf-line)#password edge 以edge 为远程登录的用户密码

主机设置:

ip 主机的ip必须和交换机端口的地址在同一网络段

netmask

gate-way 网关地址是交换机端口地址

运行:

telnet 192.168.1.1

进入telnet远程登录界面

password : edge

routera>en

password: cisco

routera#

12:配置路由器的标识 banner $……………$

在全局配置的模式下利用“banner”命令可以配置路由器的提示信息,所有连接到路由器的终端都会收到。

router>en

router #configure terminal

router (conf)#hostname routerA

routerA(conf)#banner motd $This is aptech company’ router ! Please don’t change the configuration without permission!$ 13:配置接口标识 description ………

接口标识用于区分路由器的各个接口。

router>en

router #configure terminal

router (conf)#hostname routerA

routerA(conf)#interface fastethernet 0/1 以0/1 接口为例

routerA(conf-if)# description this is a fast Ethernet port used to connecting the company’s intranet!

14:配置超时

超时适用于设置在多长时间没有对console进行配置,自动返回exec会话时间。默认为10分钟。

router>en

router #configure terminal

router (conf)#hostname routerA

routerA(conf)#line console 0

routerA(conf-if)#e xec-timeout 0 0 第一个“0”代表分钟,第二个“0”代表秒

15:配置串口参数

两台路由器通过串口连接需要一个做为DTE,一个做为DCE。DCE设备要向DTE设备提供时钟频率和带宽。

DCE配置:

router>en

router #configure terminal

router (conf)#hostname routerA

routerA(conf)#interface serial 0/0

routerA(conf_if)#clock rate 64000 提供时钟频率为64000

routerA(conf_if)#bandwidth 64 提供带宽为64

DTE配置:路由器串口配置ip地址

router>en

router #configure terminal

router (conf)#hostname routerB

routerB(conf)#interface serial 0/0

16:静态路由的配置

配置路由器A的主机名和接口参数

router>enable

router#configure terminal

router(conf)#hostname routerA

routerA(conf)#interface fastethernet 0/1 路由器A的1端口为两路由器的连接端口

routerA(conf-if)#no shutdown

routerA(conf-if)#exit

routerA(conf)# interface fastethernet 0/0 路由器A的0端口为与主机的连接端口

routerA(conf-if)#no shutdown

主机A的ip地址为 192.168.1.1

255.255.255.0

配置路由器B的主机名和接口参数

router>enable

router#configure terminal

router(conf)#hostname routerB

routerB(conf)#interface fastethernet 0/0 路由器B的0端口为两路由器的连接端口

routerB(conf-if)#no shutdown

routerB (conf-if)#exit

routerB(conf)# interface fastethernet 0/1 路由器B的1端口为与主机的连接端口

255.255.255.0

配置路由器A的静态路由表

192.168.2.2

配置路由器B的静态路由表

在routerA和routerB上配置默认路由routerA(conf)#ip classless

routerB(conf)#ip classless

在routerA和routerB上配置动态路由(RIP) routerA(conf)#router rip

routerB(conf)# router rip

思科路由器命令大全(完整版)

思科路由器命令大全(完整版) 思科路由器命令大全(完整版) 本文档旨在提供思科路由器命令的详细说明和使用指南,包括路由器配置、网络管理、安全性设置等内容。每个章节都详细介绍了不同的命令和参数,以帮助用户更好地理解和使用思科路由器。 1:路由器基本配置 1.1 主机名设置 1.2 用户名和密码设置 1.3 IP 地址和子网掩码配置 1.4 默认网关配置 2:接口配置 2.1 以太网接口配置 2.2 串行接口配置 2.3 子接口配置 2.4 虚拟局域网 (VLAN) 配置 3:路由协议配置 3.1 静态路由配置

3.2 动态路由配置 3.2.1 RIP 配置 3.2.2 OSPF 配置 3.2.3 BGP 配置 4:网络管理 4.1 SNMP 配置 4.2 NetFlow 配置 4.3 Syslog 配置 4.4 路由器时间设置 5:安全性配置 5.1 访问控制列表 (ACL) 配置 5.2 VPN 配置 5.3 防火墙配置 5.4 AAA 配置 附件:本文档附带的附件包括示例配置文件、命令输出示例等,以帮助读者更好地理解和应用文档中的内容。 法律名词及注释:本文档所涉及的法律名词及其注释如下:

1:主机名:指路由器的主机标识名称,用于在网络中识别路由器。 2:用户名和密码:用于登录和管理路由器的凭证信息。 3: IP 地址:网络协议中用于唯一标识设备的数字地址。 4:子网掩码:用于标识 IP 地址中网络部分和主机部分的分界线。 5:默认网关:用于转发网络流量的下一跳路由器。 6:以太网接口:用于连接局域网设备的物理接口。 7:串行接口:用于连接广域网设备的物理接口。 8:子接口:在一个物理接口上创建多个逻辑接口,用于实现VLAN 分隔等功能。 9:虚拟局域网 (VLAN):用于将局域网划分成多个逻辑网络的技术。 10:静态路由:手动配置的路由表项,用于指定数据包传输的路径。 11:动态路由:根据路由协议动态学习和更新的路由表项,用于自动路由选择。 12: RIP:路由信息协议,一种距离向量路由协议。

思科路由器命令大全完整版

思科交换机路由器命令大全交换机命令: switch> 用户模式 1:进入特权模式 enable switch> enable switch# 2:进入全局配置模式 configure terminal switch> enable switch#configure terminal switch(conf)# 3:交换机命名 hostname aptech2950 以aptech2950为例 switch> enable switch#configure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令 enable password cisco 以cisco为例 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码 enable secret ciscolab 以cicsolab为例--设置禁用IP地址解析特性,设置启用消息同步特性 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab aptech2950(conf)#no ip domain-lookup -----设置禁用IP地址解析特性 aptech2950(conf)#logging synchronous -----设置启用消息同步特性 aptech2950(conf)#interface range fastethernet0/1-20 aptech2950(conf-if-range)#spanning-tree portfast -----设置快速 端口 aptech2950(conf)#interface range fastethernet 0/23-24 aptech2950(conf-if-range)#swichport mode trunk -----设置主干道端口

干货!思科网络设备配置命令大全

干货!思科网络设备配置命令大全 础配置 1 思科设备管理基础命令 enable 从用户模式进入特权模式 configure terminal 进入配置模式 interface g0/0进入千兆以太网接口g0/0 ip address 172.16.0.1 255.255.0.0配置接口的 ip 地址 no shutdown 开启接口 line vty 0 4进入虚拟终端 vty 0 - vty 4 password CISCO配置认证密码 login 用户要进入路由器,需要先进行登录 exit 退回到上一级模式 enable password CISCO配置进入特权模式的密码,密码不加密 end 直接回到特权模式 show int g0/0 显示 g0/0 接口的信息 hostname Terminal-Server 配置路由器的主机名 enable secret ccielab 配置进入特权模式的密码,密码加密 no ip domain-lookup 路由器不使用 DNS 服务器解析主机的 IP地址 logging synchronous 路由器上的提示信息进行同步,防止信息干扰我们输入命令no ip routing 关闭路由器的路由功能 ip default-gateway 10.1.14.254 配置路由器访问其他网段时所需的网关 show line 显示各线路的状态 line 33 48 进入 33-48 线路模式 transport input all 允许所有协议进入线路

int loopback0 进入 loopback0 接口 ip host R1 2033 1.1.1.1 为 1.1.1.1 主机起一个主机名 alias exec cr1 clear line 33 为命令起一个别名 privilege exec level 0 clear line把命令 clear line 的等级改为 0,在用户模式下也可以执行它 banner motd 设置用户登录路由器时的提示信 show ip int brief 查看接口状态 2 VLAN相关命令 vlan X 创建VLAN X name SPOTO 将VLAN X命名为SPOTO exit 退出当前模式 interface e0/0 进入以太网接口e0/0 switchport mode access 将二层接口设置为接入模式 switchport access vlan X 将接口划入vlan X interface e0/1 switchport trunk encapsulation dot1q trunk链路封装协议为 802.1q switchport mode trunk 将二层接口配置模式为 trunk switchport trunk allow vlan X trunk接口单独放行某个 vlan。 Show vlan 查看设备vlan信息 3 VTP相关配置命令 vtp domain SPTO 配置VTP域名 vtp mode server 修改模式(默认为 server)

思科路由器命令大全

switch> 用户模式 1:进入特权模式 enable switch> enable switch# 2:进入全局配置模式 configure terminal switch> enable switch#configure 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#configure 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> 用户模式 1:进入特权模式enable switch> enable switch# 2:进入全局配置模式configure terminal switch> enable switch#configure terminal switch(conf)# 3:交换机命名hostname aptech2950 以aptech2950为例switch> enable switch#configure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令enable password cisco 以cisco为例 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco

5:配置使能密码enable secret ciscolab 以cicsolab为例--设置禁用IP地址解析特性,设置启用消息同步特性 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab aptech2950(conf)#no ip domain-lookup -----设置禁用IP 地址解析特性 aptech2950(conf)#logging synchronous -----设置启用消息同步特性 aptech2950(conf)#interface range fastethernet0/1-20 aptech2950(conf-if-range)#spanning-tree portfast -----设置快速端口 aptech2950(conf)#interface range fastethernet 0/23-24 aptech2950(conf-if-range)#swichport mode trunk -----设置主干道端口 aptech2950(conf)#spanning-tree uplingkfast ---设置阻塞启用迅速(只可以在访问层启用) 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#configure terminal switch(conf)#hostname aptch2950

思科路由器配置命令大全

思科路由器常用配置命令一览表: 1、Exec commands: <1-99> 恢复一个会话 bfe 手工应急模式设置 clear 复位功能 clock 管理系统时钟 configure 进入设置模式 connect 打开一个终端 copy 从tftp服务器拷贝设置文件或把设置文件拷贝到tftp服务器上debug 调试功能 disable 退出优先命令状态 disconnect 断开一个网络连接 enable 进入优先命令状态 erase 擦除快闪内存 exit 退出exce模式 help 交互帮助系统的描述 lat 打开一个本地传输连接 lock 锁定终端 login 以一个用户名登录 logout 退出终端 mbranch 向树形下端分支跟踪多路由广播 mrbranch 向树形上端分支跟踪反向多路由广播 name-connection 给一个存在的网络连接命名 no 关闭调试功能 pad 打开X.29 PAD连接 ping 发送回显信息 ppp 开始点到点的连接协议 reload 停机并执行冷启动 resume 恢复一个活动的网络连接 rlogin 打开远程注册连接 rsh 执行一个远端命令 send 发送信息到另外的终端行 setup 运行setup命令 show 显示正在运行系统信息 slip 开始SLIP协议 start-chat 在命令行上执行对话描述 systat 显示终端行的信息 telnet 远程登录 terminal 终端行参数 test 测试子系统内存和端口 tn3270 打开一个tin3270连接 trace 跟踪路由到目的地

undebug 退出调试功能 verify 验证检查闪烁文件的总数 where 显示活动的连接 which-route 执行OSI路由表查找并显示结果write 把正在运行的设置写入内存、网络、或终端x3 在PAD上设置X.3参数 xremote 进入xremote模式 2、#show ? access-expression 显示访问控制表达式 access-lists 显示访问控制表 apollo Apollo 网络信息 appletalk Apple Talk 信息 arap 显示Appletalk 远端通道统计 arp 地址解析协议表 async 访问路由接口的终端行上的信息 bridge 前向网络数据库 buffers 缓冲池统计 clns CLNS网络信息 clock 显示系统时钟 cmns 连接模式网络服务信息 compress 显示压缩状态 configuration 非易失性内存的内容 controllers 端口控制状态 debugging 调试选项状态 decnet DEC网络信息 dialer 拨号参数和统计 dnsix 显示Dnsix/DMPP信息 entry 排队终端入口 extended 扩展端口信息 flash 系统闪烁信息 flh-log 闪烁装载帮助日志缓冲区 frame-relay 帧中继信息 history 显示对话层历史命令 hosts IP域名,查找方式,名字服务,主机表interfaces 端口状态和设置 ip IP信息 ipx Novell IPX信息 isis IS-IS路由信息 keymap 终端键盘映射 lat DEC LAT信息

思科路由器(Cisco Router)常用配置命令大全

思科路由器(Cisco Router)常用配置命令大全 1. Access-enable允许路由器在动态访问列表中创建临时访问列表入口 2. Access-group把访问控制列表(ACL)应用到接口上 3. Access-list定义一个标准的IP ACL 4. Access-template在连接的路由器上手动替换临时访问列表入口 5. Appn向APPN子系统发送命令 6. Atmsig 执行ATM信令命令 7. B 手动引导操作系统 8. Bandwidth 设置接口的带宽 9. Banner motd 指定日期信息标语 10. Bfe 设置突发事件手册模式 11. Boot system 指定路由器启动时加载的系统映像 12. Calendar 设置硬件日历 13. Cd 更改路径 14. Cdp enable 允许接口运行CDP协议 15. Clear 复位功能 16. Clear counters 清除接口计数器 17. Clear interface 重新启动接口上的件逻辑 18. Clockrate 设置串口硬件连接的时钟速率,如网络接口模块和接口处理器能接受的速率 19. Cmt 开启/关闭FDDI连接管理功能 20. Config-register 修改设置寄存器设置 21. Configure 允许进入存在的设置模式,在中心站点上维护并保存设置信息 22. Configure memory 从NVRAM加载设置信息 23. Configure terminal 从终端进行手动设置 24. Connect 打开一个终端连接 25. Copy 复制设置或映像数据

思科路由器命令大全完整版

思科路由器命令大全完整 版 Modified by JEEP on December 26th, 2020.

思科交换机路由器命令大全交换机命令: switch> 用户模式 1:进入特权模式 enable switch> enable switch# 2:进入全局配置模式 configure terminal switch> enable switch#configure terminal switch(conf)# 3:交换机命名 hostname aptech2950 以aptech2950为例 switch> enable switch#configure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令 enable password cisco 以cisco为例 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码 enable secret ciscolab 以cicsolab为例--设置禁用IP地址解析特性,设置启用消息同步特性 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab

aptech2950(conf)#no ip domain-lookup -----设置禁用IP地址解析特性 aptech2950(conf)#logging synchronous -----设置启用消息同步特性 aptech2950(conf)#interface range fastethernet0/1-20 aptech2950(conf-if-range)#spanning-tree portfast -----设置快速 端口 aptech2950(conf)#interface range fastethernet 0/23-24 aptech2950(conf-if-range)#swichport mode trunk -----设置主干道端口 aptech2950(conf)#spanning-tree uplingkfast ---设置阻塞启用迅速(只可以在访问层启用) 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 配置交换机端口ip和子网掩码 aptech2950(conf-if)#no shut 是配置处于运行中 aptech2950(conf-if)#exit 设置网关地址 7:进入交换机某一端口 interface fastehernet 0/17 以17端口为例 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)# 8:查看命令 show switch> enable switch# show version 察看系统中的所有版本信息

思科路由器常用配置命令大全

思科路由器常用配置命令大全(A-X) Access-enable 允许路由器在动态访问列表中创建临时访问列表入口 Access-group 把访问控制列表(ACL)应用到接口上 Access-list 定义一个标准的IP ACL Access-template 在连接的路由器上手动替换临时访问列表入口 Appn 向APPN子系统发送命令 Atmsig 执行ATM信令命令 B 手动引导操作系统 Bandwidth 设置接口的带宽 Banner motd 指定日期信息标语 Bfe 设置突发事件手册模式 Boot system 指定路由器启动时加载的系统映像 Calendar 设置硬件日历 Cd 更改路径 Cdp enable 允许接口运行CDP协议 Clear 复位功能 Clear counters 清除接口计数器 Clear interface 重新启动接口上的件逻辑 Clockrate 设置串口硬件连接的时钟速率,如网络接口模块和接口处理器能接受的速率 Cmt 开启/关闭FDDI连接管理功能 Config-register 修改配置寄存器设置 Configure 允许进入存在的配置模式,在中心站点上维护并保存配置信息 Configure memory 从NVRAM加载配置信息 Configure terminal 从终端进行手动配置 Connect 打开一个终端连接 Copy 复制配置或映像数据 Copy flash tftp 备份系统映像文件到TFTP服务器 Copy running-config startup-config 将RAM中的当前配置存储到NVRAM Copy running-config tftp 将RAM中的当前配置存储到网络TFTP服务器上 Copy tftp flash 从TFTP服务器上下载新映像到Flash Copy tftp running-config 从TFTP服务器上下载配置文件 Debug 使用调试功能 Debug dialer 显示接口在拨什么号及诸如此类的信息 Debug ip rip 显示RIP路由选择更新数据

思科网络设备常用命令

网络设备安装与调试考纲要求 1、IPV4地址划分(判断网络号,网段) 2、交换机、路由器基本知识及配置 3、交换机、路由器的Telnet远程登入 4、虚拟局域网VLAN的配置 5、PPP协议基本配置 6、静态路由、缺省路由、RIP、OSPF的基本配置 7、Ipconfig、Ping、Telnet等常用命令的应用 一、交换机、路由器基本配置 1.配置模式切换 1.用户模式进入特权模式 sw>enable Sw# 2. 特权模式进入全局配置模式 Sw#configure terminal Sw(config)# 3. 全局配置模式进入接口配置模式 Sw(config)#interface fastEthernet 0/1 Sw(config-if)# 2.路由器端口IP地址的配置 Router(config)#interface fastEthernet 0/1 -----进入相应接口(进入F0/1接口)Router (config-if)#no shutdown -----开启端口(路由器默认为关闭)Router (config-if)#ip address 192.168.1.1 255.255.255.0 -----设置IP地址 IP地址掩码 备注:输入shutdown可关闭对应的端口 或(可使用图形界面):(路由器端口默认是关闭,需要把On打钩)

3.配置设备名称 Switch(config)#hostname SW -----在配置模式输入hostname+名字 或: 二、交换机、路由器的Telnet远程登入 Telnet 默认是开启,需要在设备接口配置可连通的IP地址,路由器在具体的物理接口上配置IP地址,交换机在VLAN上配置IP地址,确保PC机可以连通远程登入的设备(使用PING测试)。可以连通在做如下操作 (1)只配置登入密码 Sw(config)#line vty 0 4 ---启用5条线路让5个用户接入,并进入line配置模式Switch(config-line)#password abc ----设置登录密码abc Switch(config-line)#login ----要求密码登入(只要输入密码)(2)配置登入账号以及密码 Sw(config)#username admin password admin ---------配置账号密码 Sw(config)#line vty 0 4 ----启用5条线路让5个用户接入,并进入line配置模式Switch(config-line)#login local ----要求本地账号登入(需要输入账号以及密码)(3)无账号密码登入 Sw(config)#line vty 0 4 ---启用5条线路让5个用户接入,并进入line配置模式Switch(config-line)#no login ----无账号密码登入 注意1:在设置密码后如果无法登入,需要在输入命令login\login local,也就是login\login local需在设置完密码后输入。 注意2:远程登入进入特权模式必须输入特权密码,也就是在从用户模式输入Enable进入特权模式,在安全的考虑上,要求你必须设置特权密码。可根据题目要求进行设置。 Sw(config)#enable password abc --------配置特权密码为明文abc 备注:如果需要密文密码可以使用enable secret abc

思科路由器配置命令详解及实例

思科路由器配置命令详解及实例 思科路由器配置命令详解及实例 一、路由器基本配置 1.1 登录路由器 为了配置和管理思科路由器,您需要登录到路由器的控制台或通过远程登录方式。使用以下命令登录路由器,并进行必要的身份验证: ``` Router> enable Routerconfigure terminal Enter configuration commands, one per line: End with TL/Z: Router(config)hostname [路由器名称] Router(config)enable secret [密码] Router(config)line console 0 Router(config-line)password [密码] Router(config-line)logging synchronous

Router(config-line)exit Router(config)line vty 0 4 Router(config-line)password [密码] Router(config-line)logging synchronous ``` 1.2 配置接口 接下来,您需要配置路由器的接口,以便与其他网络设备进行通信。使用以下命令配置接口: ``` Router(config)interface [接口类型] [接口编号] Router(config-if)ip address [IP地址] [子网掩码] Router(config-if)no shutdown Router(config-if)exit ``` 二、路由配置 2.1 静态路由

思科交换机路由器命令大全

思科交换机路由器命令大全 思科交换机和路由器命令大全 本文档为思科交换机和路由器命令的最新最全范本,供参考使用。以下是详细的命令列表,包括每个命令的说明和用法。 一、接口配置命令 1、ip address:设置接口的IP地质 示例:ip address 192.168.1.1 255.255.255:0 2、no shutdown:启用接口 示例:no shutdown 3、duplex:设置接口的双工模式 示例:duplex auto 4、speed:设置接口的速度 示例:speed 100 5、exit:退出接口配置模式 示例:exit 二、VLAN命令 1、vlan database:进入VLAN数据库模式

示例:vlan database 2、vlan id name:创建VLAN并设置名称 示例:vlan 10 name VLAN-10 3、vlan id:删除VLAN 示例:no vlan 10 4、show vlan:显示VLAN信息 示例:show vlan 5、exit:退出VLAN数据库模式 示例:exit 三、路由命令 1、ip route:设置静态路由 示例:ip route 192.168.2:0 255.255.255:0 192.168.1.2 2、router rip:启用RIP路由协议 示例:router rip 3、network:将网络添加到RIP路由表中 示例:network 10:0:0:0

4、redistribute:将静态路由或其他路由协议添加到RIP路由表中 示例:redistribute static 5、exit:退出路由配置模式 示例:exit 四、ACL命令 1、access-list:创建标准或扩展ACL 示例:access-list 10 permit 192.168.1:0 0:0:0.255 2、ip access-group:应用ACL到接口 示例:ip access-group 10 in 3、show access-lists:显示ACL信息 示例:show access-lists 4、exit:退出ACL配置模式 示例:exit 五、SNMP命令 1、snmp-server community:设置SNMP团体字符串 示例:snmp-server community public RO

思科路由器命令大全详解

思科路由器命令大全详解 思科路由器命令大全详解 本文档旨在提供一份最新最全的思科路由器命令详解,供读者参考使用。以下为各个章节的详细内容: 1、连接管理 1.1 连接路由器 1.1.1 使用串行接口连接路由器 1.1.2 使用以太网接口连接路由器 1.2 断开与路由器的连接 1.3 查看当前连接状态 2、基本配置 2.1 配置路由器主机名 2.2 设置密码和特权级 2.2.1 设置密码 2.2.2 设置特权级密码 2.3 配置路由器接口 2.3.1 配置IP地质

2.3.2 配置子网掩码 2.3.3 配置默认网关 2.4 查看路由器配置信息 2.5 保存路由器配置 3、路由配置 3.1 配置静态路由 3.2 配置动态路由 3.2.1 RIP协议配置 3.2.2 OSPF协议配置 3.2.3 BGP协议配置 3.3 查看路由表 4、网络地质转换(NAT)配置 4.1 配置静态NAT 4.2 配置动态NAT 4.3 配置PAT 4.4 查看NAT配置信息 5、访问控制列表(ACL)配置

5.1 配置标准ACL 5.2 配置扩展ACL 5.3 应用ACL到接口 5.4 查看ACL配置 6、路由器安全性配置 6.1 配置SSH访问 6.2 配置Telnet访问 6.3 配置访问类别 6.4 配置防火墙 6.5 配置AAA认证 7、接口配置 7.1 配置以太网接口 7.2 配置串行接口 7.3 配置VLAN接口 7.4 配置隧道接口 附件: 本文档附带以下附件:

1:思科路由器命令示例图表 2:思科路由器配置实例 法律名词及注释: 1、版权:法律规定的对原创作品的独占使用权。 2、许可证:许可证是通过行政机关的批准,对依法许可的活动设定限制和要求。 3、违约:违反合同中的任何条款或条件的行为或事件。

Cisco路由器配置命令

Cisco路由器配置命令 本文档详细介绍了Cisco路由器配置命令的使用方法,包括各 个章节的具体细化。请注意,下文所述的配置命令仅供参考。具体 配置需根据实际需求进行调整。 1.连接路由器 - 使用一根RJ45网线将计算机与路由器的控制台端口连接。 - 打开终端仿真软件,如SecureCRT或PuTTY,设置串口连 接参数。 2.进入特权模式 - 打开终端仿真软件后,通过控制台端口进入路由器。 - 输入enable命令,输入特权级别密码,进入特权模式。 3.为路由器配置IP地质 - 进入全局配置模式:configure terminal。 - 输入interface命令进入接口配置模式。 - 输入interface类型和编号命令,例如:interface FastEthernet0/1. - 输入ip address命令为该接口配置IP地质和子网掩码。

- 输入no shutdown命令启用该接口。 4.配置静态路由 - 进入全局配置模式:configure terminal。 - 输入ip route命令配置静态路由。 - 输入目标网络地质和下一跳地质。 - 输入exit命令返回上一级。 5.配置动态路由 - 进入全局配置模式:configure terminal。 - 输入router命令进入路由器配置模式。 - 输入选择的动态路由协议,如RIP、OSPF等。 - 配置相关的路由参数,如网段、下一跳地质等。 - 输入exit命令返回上一级。 6.配置访问控制列表(ACL) - 进入全局配置模式:configure terminal。 - 输入access-list命令创建访问控制列表。 - 配置允许或拒绝的规则。 - 将ACL应用到特定接口上。

思科路由器常用配置命令大全

思科路由器常用配置命令大全(A-X) Access-enable允许路由器在动态访问列表中创建临时访问列表入口 Access-group把访问控制列表(ACL)应用到接口上 Access-list定义一个标准的IP ACL Access-template在连接的路由器上手动替换临时访问列表入口 Appn向APPN子系统发送命令 Atmsig执行ATM信令命令 B 手动引导操作系统 Bandwidth 设置接口的带宽 Banner motd 指定日期信息标语 Bfe 设置突发事件手册模式 Boot system 指定路由器启动时加载的系统映像 Calendar 设置硬件日历 Cd 更改路径 Cdp enable 允许接口运行CDP协议 Clear 复位功能 Clear counters 清除接口计数器 Clear interface 重新启动接口上的件逻辑 Clockrate 设置串口硬件连接的时钟速率,如网络接口模块和接口处理器能接受的速率 Cmt 开启/关闭FDDI连接管理功能 Config-register 修改配置寄存器设置 Configure 允许进入存在的配置模式,在中心站点上维护并保存配置信息 Configure memory 从NVRAM加载配置信息 Configure terminal 从终端进行手动配置 Connect 打开一个终端连接 Copy 复制配置或映像数据 Copy flash tftp 备份系统映像文件到TFTP服务器 Copy running-config startup-config 将RAM中的当前配置存储到NVRAM Copy running-config tftp 将RAM中的当前配置存储到网络TFTP服务器上 Copy tftp flash 从TFTP服务器上下载新映像到Flash Copy tftp running-config 从TFTP服务器上下载配置文件 Debug 使用调试功能 Debug dialer 显示接口在拨什么号及诸如此类的信息 Debug ip rip 显示RIP路由选择更新数据 Debug ipx routing activity 显示关于路由选择协议(RIP)更新数据包的信息 Debug ipx sap 显示关于SAP〔业务通告协议〕更新数据包信息 Debug isdn q921 显示在路由器D通道ISDN接口上发生的数据链路层〔第2层〕的访问过程 Debug ppp 显示在实施PPP中发生的业务和交换信息 Delete 删除文件 Deny 为一个已命名的IP ACL设置条件 Dialer idle-timeout 规定线路断开前的空闲时间的长度

思科命令全集汇总

CISCO命令全集-思科命令汇总 各个视图模式介绍: 普通视图router> 特权视图router# /在普通模式下输入enable 全局视图router(config)# /在特权模式下输入config t 接口视图router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口)

思科命令大全(完整版)

思科命令大全(完整版) 1.设置主机名/系统名 IOS:witch(config)#hotname"hotname" CLI:witch(enable)etytemnamename-tring 2.设置登录口令 IOS:witch(config)#enablepawordlevel1paword CLI:witch(enable)etpaword witch(enable)etenalbepa 3.设置远程访问 IOS:witch(config)#interfacevlan1 witch(config-if)#ipaddreip-addrenetmak witch(config-if)#ipdefault-gatewayip-addre CLI:witch(enable)etinterfacec0ip-addrenetmakbroadcat-addre witch(enable)etinterfacec0vlan witch(enable)etiproutedefaultgateway 4.启用和浏览CDP信息 IOS:witch(config-if)#cdpenable witch(config-if)#nocdpenable CLI:witch(enable)etcdp{enable|diable}module/port

5.查看Cico邻接设备的CDP通告 IOS:witch#howcdpinterface[typemodle/port] witch#howcdpneighbor[typemodule/port][detail] CLI:witch(enable)howcdpneighbor[module/port][vlan|duple某|capabilitie|detail] 6.端口描述IOS:witch(config-if)#decriptionecription-tring CLI:witch(enable)etportnamemodule/numberdecription-tring 7.设置端口速度 IOS:witch(config-if)#peed{10|100|auto} CLI:witch(enable)etportpeedmoudle/number{10|100|auto} witch(enable)etportpeedmoudle/number{4|16|auto} 8.设置以太网的链路模式 IOS:witch(config-if)#duple某{auto|full|half} CLI:witch(enable)etportduple某module/number{full|half} 9.配置静态VLAN IOS:witch#vlandatabae witch(vlan)#vlanvlan-numnamevla witch(vlan)#e某it witch#configureteriminal

Cisco路由器配置命令

C i s c o路由器配置命令Virtue carries wealth. On the morning of November 2, 2022

关于Cisco的知识,可能好多人还不了解没有关系,这里主要分析了Cisco路由器配置命令,看完本文你肯定有不少收获,希望本文能教会你更多东西; Cisco路由器配置命令之模式转换命令 用户模式----特权模式,使用命令"enable" 特权模式----全局配置模式,使用命令"config t" 全局配置模式----接口模式,使用命令"interface+接口类型+接口号" 全局配置模式----线控模式,使用命令"line+接口类型+接口号" 注: 用户模式:查看初始化的信息. 特权模式:查看所有信息、调试、保存配置信息 全局模式:配置所有信息、针对整个路由器或交换机的所有接口 接口模式:针对某一个接口的配置 线控模式:对路由器进行控制的接口配置 Cisco路由器配置命令之配置命令 show running config 显示所有的配置 show versin 显示版本号和寄存器值

shut down 关闭接口 no shutdown 打开接口 ip add +ip地址配置IP地址 secondary+IP地址为接口配置第二个IP地址 show interface+接口类型+接口号查看接口管理性show controllers interface 查看接口是否有DCE电缆show history 查看历史记录 show terminal 查看终端记录大小 hostname+主机名配置路由器或交换机的标识 config memory 修改保存在NVRAM中的启动配置 exec timeout 0 0 设置控制台会话超时为0 service password-encryptin 手工加密所有密码enable password +密码配置明文密码 ena sec +密码配置密文密码 line vty 0 4/15 进入telnet接口 password +密码配置telnet密码

相关主题
相关文档
最新文档