cisco命令大全解释、注释

上传人:206****923 文档编号:36314781 上传时间:2018-03-27 格式:DOCX 页数:10 大小:21.53KB
返回 下载 相关 举报
cisco命令大全解释、注释_第1页
第1页 / 共10页
cisco命令大全解释、注释_第2页
第2页 / 共10页
cisco命令大全解释、注释_第3页
第3页 / 共10页
cisco命令大全解释、注释_第4页
第4页 / 共10页
cisco命令大全解释、注释_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《cisco命令大全解释、注释》由会员分享,可在线阅读,更多相关《cisco命令大全解释、注释(10页珍藏版)》请在金锄头文库上搜索。

1、cisco 命令大全解释、注释命令大全解释、注释收录最常用的 Cisco 命令分类如下:cisco 命令大全1. switch 配置命令(1)模式转换命令用户模式-特权模式,使用命令“enable“特权模式-全局配置模式,使用命令“config t“全局配置模式-接口模式,使用命令“interface+接口类型+接口号“全局配置模式-线控模式,使用命令“line+接口类型+接口号“注:用户模式:查看初始化的信息.特权模式:查看所有信息、调试、保存配置信息全局模式:配置所有信息、针对整个路由器或交换机的所有接口接口模式:针对某一个接口的配置线控模式:对路由器进行控制的接口配置(2)配置命令sho

2、w 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 中的启动配置ex

3、ec timeout 0 0 设置控制台会话超时为 0service password-encryptin 手工加密所有密码enable password +密码 配置明文密码ena sec +密码 配置密文密码line vty 0 4/15 进入 telnet 接口password +密码 配置 telnet 密码line aux 0 进入 AUX 接口password +密码 配置密码line con 0 进入 CON 接口password +密码 配置密码bandwidth+数字 配置带宽no ip address 删除已配置的 IP 地址show startup config 查看 N

4、VRAM 中的配置信息copy run-config atartup config 保存信息到 NVRAMwrite 保存信息到 NVRAMerase startup-config 清除 NVRAM 中的配置信息show ip interface brief 查看接口的谪要信息banner motd # +信息 + # 配置路由器或交换机的描素信息description+信息 配置接口听描素信息vlan database 进入 VLAN 数据库模式vlan +vlan 号+ 名称 创建 VLANswitchport access vlan +vlan 号 为 VLAN 为配接口interfac

5、e vlan +vlan 号 进入 VLAN 接口模式ip add +ip 地址 为 VLAN 配置管理 IP 地址vtp+service/tracsparent/client 配置 SW 的 VTP 工作模式vtp +domain+域名 配置 SW 的 VTP 域名vtp +password +密码 配置 SW 的密码switchport mode trunk 启用中继no vlan +vlan 号 删除 VLANshow spamming-tree vlan +vlan 号 查看 VLA 怕生成树议2. 路由器配置命令ip route+非直连网段+子网掩码+下一跳地址 配置静态/默认路由s

6、how ip route 查看路由表show protocols 显示出所有的被动路由协议和接口上哪些协议被设置show ip protocols 显示了被配置在路由器上的路由选择协议,同时给出了在路由选择协议中使用的定时器等信息router rip 激活 RIP 协议network +直连网段 发布直连网段interface lookback 0 激活逻辑接口passive-interface +接口类型+接口号 配置接口为被动模式debug ip +协议 动态查看路由更新信息undebug all 关闭所有 DEBUG 信息router eigrp +as 号 激活 EIGRP 路由协议n

7、etwork +网段+子网掩码 发布直连网段show ip eigrp neighbors 查看邻居表show ip eigrp topology 查看拓扑表show ip eigrp traffic 查看发送包数量router ospf +process-ID 激活 OSPF 协议network+直连网段+area+区域号 发布直连网段show ip ospf 显示 OSPF 的进程号和 ROUTER-IDencapsulation+封装格式 更改封装格式no ip admain-lookup 关闭路由器的域名查找ip routing 在三层交换机上启用路由功能show user 查看 SW

8、 的在线用户clear line +线路号 清除线路 3. 三层交换机配置命令配置一组二层端口配置一组二层端口configure terminal 进入配置状态nterface range port-range 进入组配置状态配置三层端口配置三层端口configure terminal 进入配置状态interface fastethernet | gigabitethernet interface-id | vlan vlan-id | port-channel port-channel-number 进入端口配置状态no switchport 把物理端口变成三层口ip address ip_

9、address subnet_mask 配置 IP 地址和掩码no shutdown 激活端口例:Switch(config)# interface gigabitethernet0/2Switch(config-if)# no switchportSwitch(config-if)# ip address 192.20.135.21 255.255.255.0Switch(config-if)# no shutdown配置配置 VLANconfigure terminal 进入配置状态vlan vlan-id 输入一个 VLAN 号, 然后进入 vlan 配态,可以输入一个新的 VLAN 号

10、或旧的来进行修改。name vlan-name 可选)输入一个 VLAN 名,如果没有配置 VLAN 名,缺省的名字是 VLAN 号前面用 0填满的 4 位数,如 VLAN0004 是 VLAN4 的缺省名字mtu mtu-size (可选) 改变 MTU 大小例Switch# configure terminalSwitch(config)# vlan 20Switch(config-vlan)# name test20Switch(config-vlan)# end或Switch# vlan databaseSwitch(vlan)# vlan 20 name test20Switch(v

11、lan)# exit将端口分配给一个 VLANconfigure terminal 进入配置状态interface interface-id 进入要分配的端口switchport mode access 定义二层口switchport access vlan vlan-id 把端口分配给某一 VLAN例Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# interface fastethernet0/1Switch(config-if)# sw

12、itchport mode accessSwitch(config-if)# switchport access vlan 2Switch(config-if)# endSwitch#配置配置 VLAN trunkconfigure terminal 进入配置状态interface interface-Id 进入端口配置状态switchport trunk encapsulation isl | dot1q | negotiate配置 trunk 封装 ISL 或 802.1Q 或自动协商switchport mode dynamic auto | desirable | trunk 配置二层

13、 trunk 模式。dynamic auto自动协商是否成为 trunkdynamic desirable把端口设置为 trunk 如果对方端口是 trunk, desirable, 配置 Native VLAN(802.1q)或自动模式,trunk设置端口为强制的 trunk 方式,而不理会对方端口是否为 trunkswitchport access vlan vlan-id 可选) 指定一个缺省 VLAN, 如果此端口不再是 trunkswitchport trunk native vlan vlan-id 指定 802.1Q native VLAN 号例:Switch# configur

14、e terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# interface fastethernet0/4Switch(config-if)# switchport mode trunkSwitch(config-if)# switchport trunk encapsulation dot1qSwitch(config-if)# end定义定义 TRUNK 允许的允许的 VLANconfigure terminal 子 进入配置状态interface interface-id

15、进入端口配置switchport mode trunk 配置二层口为 trunkswitchport trunk allowed vlan add | all | except | remove vlan-list 可选) 配置 trunk 允许的VLAN.使用 add, all, except, remove 关健字no switchport trunk allowed vlan 允许所有 VLAN 通过例Switch(config)# interface fastethernet0/1Switch(config-if)# switchport trunk allowed vlan remo

16、ve 2Switch(config-if)# end配置配置 Native VLAN(802.1q)configure terminal 进入配置状态interface interface-id 进入配置成 802.1qtrunk 的端口switchport trunk native vlan vlan-Id 配置 native VLAN 号no switchport trunk native vlan 端口配置命令回到缺省的状态配置基于端口权值的负载均衡配置基于端口权值的负载均衡configure terminal 进入 Switch 1 配置状态vtp domain domain-name 配置 VTP 域vtp mode server 将 Switch 1 配置成 VTP server.show vtp status 验证 VTP 的配置show vlan 验证 VLANconfigure terminal 进入配置状态interface fastethernet 0/1 进入 F0/1 端口switchpor

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号