




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
交换机的常用操作项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 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的全局信息 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(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)#password 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:config.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、 删除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 vlan 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(config)#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接口问题serial 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 shutdownA(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代表直连的网络,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 companys 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、 配置禁用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 2switch(config-if-range)# interface range f0/9 -11switch(config-if-range)#switchport access vlan 33、配置trunk switch(config)#interface f0/12switch(config-if)#switchport mode trunk4、配置路由器的子接口封装dot1q,并设置IP地址router(config)#interface f0/0.1router(config-subif)#encapsulation dot1q 1router(config-subif)#ip address 192.168.0.1 255.255.255.0router(config-subif)#no shut router(config)#interface f0/0.2router(config-subif)#encapsulation dot1q 2router(config-subif)#ip address 192.168.1.1 255.255.255.0router(config-subif)#no shutrouter(config)#interface f0/0.3router(config-subif)#encapsulation dot1q 3router(config-subif)#ip address 192.168.2.1 255.255.255.0router(config-subif)#no shutrouter(config)#interface f0/0router(config-if)#no shut5、设置pc的IP地址和默认网关47、 0RIP版本V1和V2 的区别RIP v1发送路由更新时不携带子网掩码,属于有类路由协议发送路由更新时,目标地址为广播地址:255.255.255.255RIP v2发送路由更新时携带子网掩码,属于无类路由协议发送路由更新时,目标地址为组播地址:224.0.0.9ABC10.0.0.0/820.0.0.0/8192.168.2.0/24f0/0f0/1f0/0f0/1f0/0f0/1.1.1.1.2.2.2192.168.1.0/2448、 RIP V1的配置配置步骤:.11、配置路由器接口IP地址routerA(config)#interface f0/0routerA(config-if)#ip address 192.168.1.1 255.255.255.0routerA(config-if)#no shutdownrouterA(config-if)#interface f0/1routerA(config-if)# ip address 10.0.0.2 255.0.0.0routerA(config-if)#no shutdownrouterB(config)#interface f0/0routerB(config-if)#ip address 10.0.0.1 255.0.0.0routerB(config-if)#no shutdownrouterB(config)#interface f0/1routerB(config-if)#ip address 20.0.0.2 255.0.0.0routerB(config-if)#no shutdownrouterC(config)#interface f0/0routerC(config-if)#ip address 20.0.0.1 255.0.0.0routerC(config-if)#no shutdownrouterC(config)#interface f0/1routerC(config-if)#ip address 192.168.2.2 255.255.255.0routerC(config-if)#no shutdown2、在路由器上启动RIP进程,并宣告网络号:routerA(config)#router riprouterA(config-router)#network 10.0.0.0routerA(config-router)#network 192.168.1.0routerB(config)#router riprouterB(config-router)#network 10.0.0.0routerB(config-router)#network 20.0.0.0routerC(config)#router riprouterC(config-router)#network 20.0.0.0routerC(config-router)#network 192.168.2.03、验证配置是否正确1)查看路由表router#show ip route2)查看路由协议配置router#show ip protocol3)打开RIP协议调试命令router#debug ip rip4、在PC上设置IP地址、子网掩码、默认网关,用ping命令测试连通性ABC10.1.1.0/24192.168.1.0/2410.1.2.0/24192.168.2.0/24.1.1.1.1.2.310.1.1.2/2410.1.2.2/24192.168.2.2/24f0/0f0/0f0/0f0/1f0/1f0/149.RIP V2的配置配置步骤:1、配置各路由器接口IP地址routerA(config)#interface f0/0routerA(config-if)#ip address 10.1.1.1 255.255.255.0routerA(config-if)#no shutdownrouterA(config-if)#interface f0/1routerA(config-if)# ip address 192.168.1.1 255.255.255.0routerA(config-if)#no shutdownrouterB(config)#interface f0/0routerB(config-if)#ip address 10.1.2.1 255.255.255.0routerB(config-if)#no shutdownrouterB(config)#interface f0/1routerB(config-if)#ip address 192.168.1.2 255.255.255.0routerB(config-if)#no shutdownrouterC(config)#interface f0/0routerC(config-if)#ip address 192.168.1.3 255.255.255.0routerC(config-if)#no shutdownrouterC(config)#interface f0/1routerC(config-if)#ip address 192.168.2.1 255.255.255.0routerC(config-if)#no shutdown2、在路由器上配置RIP V2 路由协议routerA(config)#router riprouterA(config-router)#version 2routerA(config-router)#no auto-summaryrouterA(config-router)#network 10.0.0.0routerA(config-router)#network 192.168.1.0routerB(config)#router riprouterB(config-router)#version 2routerB(config-router)# no auto-summaryrouterB(config-router)#network 10.0.0.0routerB(config-router)#network 192.168.1.0routerC(config)#router riprouterC(config-router)# version 2routerC(config-router)# no auto-summaryrouterC(c
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年医院与健身中心专业医护人员健身训练服务合同
- 2025年物流公司供应链经理面试模拟题及答案
- 2025年网络安全技术中级进阶指南与模拟题库
- 2025年残疾人服务技能提升复习要点与模拟题集解析
- 2025年中级数字化管理师必-备的实战技能与面试模拟题详解
- 安全生产模拟考试平台题库及答案
- 2025年IT精英招聘程序员笔试预测试题及答案详解
- 粮食仓储基础知识培训课件
- 2025年电力行业无人机巡检技术发展趋势与操作员模拟题答案
- 2025年项目管理师实战模拟题与案例分析答案
- 2025湖南湘潭湘乡市融媒体中心招聘事业单位工作人员10人笔试备考题库及答案解析
- 2025至2030中国婚庆行业发展趋势分析与未来投资战略咨询研究报告
- 2025年职业病诊断医师资格考试(职业性化学中毒)历年参考题库含答案详解(5卷)
- 2025年安徽高考生物试题及答案
- 2025年国际汉语教师资格考试(对外汉语教学理论)历年参考题库含答案详解(5套)
- 2025年高校机房管理试题及答案
- ESG基础知识培训课件
- 泌尿系统常见疾病科普讲座
- 2025广西公需科目真题续集(附答案)
- (正式版)SH∕T 3548-2024 石油化工涂料防腐蚀工程施工及验收规范
- 儿童视角下幼儿园班级主题墙创设的策略研究
评论
0/150
提交评论