交换路由命令大全--1

上传人:jiups****uk12 文档编号:90752134 上传时间:2019-06-16 格式:DOC 页数:8 大小:256.01KB
返回 下载 相关 举报
交换路由命令大全--1_第1页
第1页 / 共8页
交换路由命令大全--1_第2页
第2页 / 共8页
交换路由命令大全--1_第3页
第3页 / 共8页
交换路由命令大全--1_第4页
第4页 / 共8页
交换路由命令大全--1_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《交换路由命令大全--1》由会员分享,可在线阅读,更多相关《交换路由命令大全--1(8页珍藏版)》请在金锄头文库上搜索。

1、交换机的常用操作项1、 更改主机名 switch(config)#hostname sw12、 设置进入特权模式的密码switch(config)#enable password 1234switch(config)#enable secret cisco3、 设置console口密码switch(config)#line console 0switch(config-line)#password 123switch(config-line)#login4、 查看mac地址列表 switch#show mac-address-table5、 查看mac地址列表刷新时间 switch#show

2、mac-address-table aging-time6、 更改mac地址列表刷新时间 switch(config)#mac-address-table aging-time 2007、 查看当前配置(RAM) switch#show running-config8、 查看交换机的配置(NVRAM) switch#show startup-config9、 保存配置switch#copy running-config startup-configswitch#write10、 恢复出厂默认设置switch#erase startup-configswitch#reload11、 查看cdp的

3、全局信息 switch#show cdp12、 查看接口的cdp配置信息 switch#show cdp interface f0/213、 查看有关cdp包的统计信息 switch#show cdp traffic14、 查看邻居信息 switch#show cdp neighbors15、 查看所有入口项的详细信息switch#show cdp neighbors detailswitch#show cdp entry *16、 添加接口的描述信息 switch(config-if)# description connection to routerA17、 设置交换机的网关 switch

4、(config)#ip default-gateway 192.168.1.118、 关掉DNS解析 switch(config)# no ip domain-lookup19、 实现交换机的远程管理switch(config)#enable secret ciscoswitch(config)#intface valn 1switch(config-if)#ip address 192.168.1.100 255.255.255.0switch(config-if)#no shutdownswitch(config)#line vty 0 4switch(config-line)#passw

5、ord 123switch(config-line)#loginc:telnet 192.168.1.10020、 交换机的密码恢复1、将交换机的电源拔下2、按mode键将电源插上,当出现switch:时将手松开3、switch:flash_init /加载到flash中4、switch:dir flash: /查看flash中的文件5、rename flash:config.text flash:config.old /更改文件名6、boot /重新启动交换机7、rename flash:config.old flash:config.text /将文件名改回8、copy flash:con

6、fig.text running-config9、enable password cisco /重新设置密码10、write /保存21、 创建vlan方法一switch#vlan databaseswitch(vlan)#vlan 10 name scswitch(vlan)#exit22、 创建vlan方法二switch(config)#vlan 10switch(config-vlan)#name sc23、 删除vlan方法一switch(vlan)#no vlan 10switch(vlan)#exit24、 删除vlan方法二 switch(config)#no vlan 1025

7、、 删除vlan方法三 switch#delete vlan.dat26、 将端口加入到vlan中 switch(config-if)#switchport access vlan 1027、 将一组连续的端口加入到vlan中switch(config)# interface range f0/1 5switch(config-if-range)#switchport access vlan 1028、 将端口从vlan中删除switch(config-if)#no switchport access vlan 10switch(config-if)#switchport access vla

8、n 1switch(config-if-range)#no switchport access vlan 10switch(config-if-range)#switchport access vlan 129、 查看所有vlan的摘要信息 switch#show vlan brief30、 查看指定vlan的信息switch#show vlan id 1031、 Cisco 2600路由器的基本操作从用户模式进入特权模式routerenablerouter#从特权模式进入全局配置模式router#config terminalrouter(config)#为路由器配置主机名router(co

9、nfig)#hostname teacherteacher(config)#进入路由器的以太口配置模式teacher(config)#interface fastethernet 0/0teacher(config_if)#32、 查看Cisco 2600路由器的串口状态router#show interface serial 0/0 serial 0/0 is up ,line protocol is up可操作状态serial 0/0 is up ,line protocol is up连接问题serial 0/0 is up ,line protocol is down接口问题seria

10、l 0/0 is down ,line protocol is down禁用状态serial 0/0 is administratively down ,line protocol is down192.168.1.1192.168.2.2192.168.2.1192.168.3.1192.168.1.10192.168.3.1033、 静态路由的实现router(config)#hostname AA(config)#interface f0/0A(config-if)#ip address 192.168.1.1 255.255.255.0 A(config-if)#no shutdown

11、A(config)#interface f0/1A(config-if)#ip address 192.168.2.1 255.255.255.0 A(config-if)#no shutdownA(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2B(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.134、 配置默认路由 route(config)#ip route 0.0.0.0 0.0.0.0 下一跳地址35、 查看路由表router#show ip route 其中C代表

12、直连的网络,S代表静态的路由,S*代表默认的路由36、 为Cisco 2600路由器配置密码配置控制台密码router (config)#line console 0router (config-line)#loginrouter (config-line)#password cisco37、 配置特权模式密码 router (config)#enable password cisco38、 配置安全的加密密码 router (config)#enable secret 123439、 配置路由器标识 router(config)#banner motd $This is Aptech com

13、panys Router! Please dont change the configuration whithout permissions$40、 对所有密码进行加密 router (config)#service password-encryption41、 配置超时 router(config)#line console 0router(config-line)#exec-timeout 0 0 /第一个0代表分钟,第二个0代表秒42、 显示同步 router(config)#line console 0router(config-line)#logging synchronous43

14、、 配置禁用DNS router(config)#no ip domain-lookup44、 利用三台路由器实现静态路由和默认路由45、 路由器密码恢复重启路由器按Ctrl+Break键进入ROM Monitor 模式rommon 1confreg 0x2142rommon 2reset重启后选择norouterenablerouter#copy startup-config running-configrouter#config terminal router(config)#enable password ciscorouter(config)#config-register 0x2102router#copy running-config startup-configrouter#reload46、 单臂路由实现不同vlan之间的通信VLAN 1VLAN 2VLAN 3f0/0Trunk1、划分vlanswitch#vlan databaseswitch(vlan)#vlan 2switch(vlan)#vlan 32、将端口加入vlanswitch(config)#interface range f0/6 -8switch(config-if-range)#switchport access vlan 2swi

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

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