ImageVerifierCode 换一换
格式:DOCX , 页数:25 ,大小:27.46KB ,
资源ID:18009651      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/18009651.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Cisco路由器配置命令大全Word文档格式.docx)为本站会员(b****3)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

Cisco路由器配置命令大全Word文档格式.docx

1、show history 查看历史记录show terminal 查看终端记录大小hostname+主机名 配置路由器或交换机的标识config memory 修改保存在NVRAM中的启动配置exec 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 进入

2、CON接口bandwidth+数字 配置带宽no ip address 删除已配置的IP地址show startup config 查看NVRAM中的配置信息copy run-config atartup config 保存信息到NVRAMwrite 保存信息到NVRAMerase startup-config 清除NVRAM中的配置信息show ip interface brief 查看接口的谪要信息banner motd # +信息 + # 配置路由器或交换机的描素信息description+信息 配置接口听描素信息vlan database 进入VLAN数据库模式vlan +vlan号+

3、 名称 创建VLANswitchport access vlan +vlan号 为VLAN为配接口interface 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

4、 route+非直连网段+子网掩码+下一跳地址 配置静态/默认路由show ip route 查看路由表show protocols 显示出所有的被动路由协议和接口上哪些协议被设置show ip protocols 显示了被配置在路由器上的路由选择协议,同时给出了在路由选择协议中使用的定时器 等信息router rip 激活RIP协议network +直连网段 发布直连网段interface lookback 0 激活逻辑接口passive-interface +接口类型+接口号 配置接口为被动模式 debug ip +协议 动态查看路由更新信息undebug all 关闭所有DEBUG信息r

5、outer eigrp +as号 激活EIGRP路由协议network +网段+子网掩码 发布直连网段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 在三层交

6、换机上启用路由功能 show user 查看SW的在线用户clear line +线路号 清除线路3. 三层交换机配置命令配置一组二层端口configure terminal 进入配置状态nterface range port-range 进入组配置状态配置三层端口interface fastethernet | gigabitethernet interface-id | vlan vlan-id | port-channel port-channel-number 进入端口配置状态no switchport 把物理端口变成三层口ip address ip_address subnet_ma

7、sk 配置IP地址和掩码no shutdown 激活端口 例: Switch(config)# interface gigabitethernet0/2 Switch(config-if)# no switchport Switch(config-if)# ip address 192.20.135.21 255.255.255.0 Switch(config-if)# no shutdown配置VLANvlan vlan-id 输入一个VLAN号, 然后进入vlan配态,可以输入一个新的VLAN号或旧的来进行修改。name vlan-name 可选)输入一个VLAN名,如果没有配置VLAN名

8、,缺省的名字是VLAN号前面用0填满的4位数,如VLAN0004是VLAN4的缺省名字mtu mtu-size (可选) 改变MTU大小 例 Switch# configure terminal Switch(config)# vlan 20 Switch(config-vlan)# name test20 Switch(config-vlan)# end 或 Switch# vlan database Switch(vlan)# vlan 20 name test20 Switch(vlan)# exit将端口分配给一个VLANinterface interface-id 进入要分配的端口s

9、witchport mode access 定义二层口switchport access vlan vlan-id 把端口分配给某一VLAN Switch# configure terminal Enter configuration mands, one per line. End with TL/Z. Switch(config)# interface fastethernet0/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 2 Switch(config-if)#

10、 end Switch#配置VLAN trunkinterface interface-Id 进入端口配置状态switchport trunk encapsulation isl | dot1q | negotiate配置trunk封装ISL 或 802.1Q 或自动协商switchport mode dynamic auto | desirable | trunk 配置二层trunk模式。dynamic auto自动协商是否成为trunkdynamic desirable把端口设置为trunk如果对方端口是trunk, desirable, 配置Native VLAN(802.1q)或自动模

11、式,trunk设置端口为强制的trunk方式,而不理会对方端口是否为trunkswitchport access vlan vlan-id 可选) 指定一个缺省VLAN, 如果此端口不再是trunkswitchport trunk native vlan vlan-id 指定802.1Q native VLAN号 Switch(config)# interface fastethernet0/4 Switch(config-if)# switchport mode trunk Switch(config-if)# switchport trunk encapsulation dot1q 定义T

12、RUNK允许的VLANconfigure terminal子 进入配置状态interface interface-id 进入端口配置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/1

13、Switch(config-if)# switchport trunk allowed vlan remove 2 Switch(config-if)# end配置Native VLAN(802.1q)interface interface-id 进入配置成802.1qtrunk的端口switchport trunk native vlan vlan-Id 配置native VLAN号no switchport trunk native vlan 端口配置命令回到缺省的状态配置基于端口权值的负载均衡configure terminal 进入Switch 1配置状态vtp domain doma

14、in-name 配置VTP域vtp mode server 将Switch 1配置成VTP server.show vtp status 验证VTP的配置show vlan 验证VLANinterface fastethernet 0/1 进入F0/1端口switchport trunk encapsulation isl | dot1q | negotiate配置trunk封装switchport mode trunk 配置成trunkshow interfaces fastethernet0/1 switchport 验证VLAN配置按以上步骤对想要负载均衡的接口进行配置在另一个交换机上进

15、行此配置show vlan 当trunk已经起来,在switch2上验证已经学到相的vlan配置configure terminal 在Switch 1上进入配置状态interface fastethernet0/1 进入要配置的端口spanning-tree vlan 8 port-priority 10 将端口权值10赋与VLAN 8.spanning-tree vlan 9 port-priority 10 将端口权值10赋与VLAN 9.spanning-tree vlan 10 port-priority 10 将端口权值10赋与VLAN 10.interface fastether

16、net0/2 进入F0/2spanning-tree vlan 3 port-priority 10 将端口权值10赋与VLAN 3.spanning-tree vlan 4 port-priority 10 将端口权值10赋与VLAN 4spanning-tree vlan 5 port-priority 10 将端口权值10赋与VLAN 5spanning-tree vlan 6 port-priority 10 将端口权值10赋与VLAN 10end 退出show running-config 验证配置copy running-config startup-config 保存配置配置ST

17、P路径值的负载均衡Trunk1走VLAN810,Trunk2走VLAN24configure terminal 进入 Switch 1配置状态interface fastethernet 0/1 进入F0/1switchport trunk encapsulation isl | dot1q | negotiate配置封装switchport mode trunk 配置Trunk,缺省是ISL封装exit 退回在F0/2口上重复24步骤show vlan验证switch1 已经学到Vlanspanning-tree vlan 2 cost 30 设置Vlan2生成树路径值为30spanning

18、-tree vlan 3 cost 30 设置Vlan3生成树路径值为30spanning-tree vlan 4 cost 30 设置Vlan4生成树路径值为30在switch1的F0/2上重复911步骤设置VLAN8,9,10生成树路径值为30补充:CISCO命令集路由选择协议及排障 *ip route命令Router(config)# ip route 子网掩码 管理距离0255,默认为1 (注:静态地址配置) *ip default-network命令Router(config)# ip default-network 配合路由协使用,用其中的一个动态路由号作默认路由配置)Router

19、(config)# ip route 0.0.0.0 0.0.0.0 只有一个公网地址时,在出口路由器上的配置) *内部路由选择协议 *使用router和network命令Router(config)# router 自主系统号Router(config-router)# network *路由信息协议RIPRouter(config)# router rip直接相连的要用rip协议的有类别网络号Router# show ip protocolsRouter# show ip routeRouter# debug ip rip *内部网关路由协议IGRPRouter(config)# rout

20、er igrp 直接相连的要用igrp协议的有类别网络号Router# show ip interface *排除网络故障 排除网络故障的一个总体模型Router# ping Router# show interface Router# show run *IP的故故障排除 检查可用的路由Router# show ip route 27.4.4 跟踪路由(Tracing the Route)SUN-A traceroute winipcfg ipconfig ipconfig / all tracert 使用扩展的ping来跟踪连接性Router# ping *其它可能的故障 一个地址解析(A

21、RP)的故障Router# show arp arp -a arp a 验证终端系统的路由表 netstat rn route f add 0.0.0.0 mask 0.0.0.0 route f print | add | delete | change destination mask netmask gateway route add mask route delete mask nbtstat netstat -rn路由器CISCO交换机配置命令大全2009-08-13 21:131.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname host

22、name 在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password 在基于CLI的交换机上设置登录口令:switch(enable) set password switch(enable) set enalbepass 3.在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1 switch(config-if)# ip address ip-

23、address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlan switch(enable) set ip route default gateway 4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enable switch(conf

24、ig-if)# no cdp enable 为了查看Cisco邻接设备的CDP通告信息:switch# show cdp interface type modle/port switch# show cdp neighbors type module/port detail 在基于CLI的交换机上启用和浏览CDP信息:switch(enable) set cdp enable|disable module/port switch(enable) show cdp neighborsmodule/port vlan|duplex|capabilities|detail 5.基于IOS的交换机的端

25、口描述:switch(config-if)# description description-string 基于CLI的交换机的端口描述:switch(enable)set port name module/number description-string 6.在基于IOS的交换机上设置端口速度:switch(config-if)# speed10|100|auto 在基于CLI的交换机上设置端口速度:switch(enable) set port speed moudle/number 10|100|auto switch(enable) set port speed moudle/number 4|16|auto 7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)# duplex auto|full|half 在基于CLI的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number full|half 8.在基于IOS的交换机上配置静态VLAN:switch#

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1