Cisco完全试验手册

更新时间:2023-11-17 03:56:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

Cisco完全试验手册

BCN试验 目 录

BCN_P52_VLA

N····························································································································· 3 BCN_P83_VT

P································································································································· 7 BCN_P140_ST

P······························································································································· 12 BCN_P206_RIP_V

1······················································································································· 22 BCN_P232_RIP_V

2······················································································································· 26 BCN_P323_OSP

F··························································································································· 30 BCN_P356_HSR

P··························································································································· 39 BCN_P384_AC

L····························································································································· 53 BCN_P415_NA

T······························································································································ 48 BCN_P448_SNM

P··························································································································· 57 BCN_RIP_额

外······························································································································· 61

BCN_单臂路由······························································································································· 64 项目实

践··········································································································································· 69 BGP介

绍··········································································································································· 91 EIGRP介

绍······································································································································ 94 OSPF与EIGRP的比较·············································································································· 96 IS-I

S···················································································································································· 100

路由器密码恢复···························································································································· 104

交换机密码恢复···························································································································· 113

静态路由故障排除······················································································································· 114 RIP路由故障排除························································································································ 116

OSPF路由故障排除···················································································································· 118 EIGRP路由故障排除·················································································································· 121

BGP路由故障排除······················································································································· 122

IS-IS路由故障排除················································································································· 124 再分发路由故障排除·················································································································· 125 华为和思科路由器的互联配置实例···················································································· 127 实 验 报 告 实验目标:

通过配置 vlan、中继、以太通道优化一个跨交换机的网络。 实验拓扑:

实验要求:

1、 在两台2950交换机上创立VLAN10、VLAN20、VLAN30和VLAN40。

2、 把两个交换机上的interface f0/21 分配给VLAN10,interface f0/22 分配给VLAN20,interface f0/23 分配给VLAN30,interface f0/24 分配给VLAN40。

3、 每台交换机的interface f0/5 配置为两台交换机的中继端口,实现VLAN数据传输。 4、 配置两台交换机的interface f0/1 ,interface f0/2 的端口做以太通道中继线路。 实验步骤:

1、交换机A配置过程 Switch>en

Switch#vlan database Switch(vlan)#vlan 10 Switch(vlan)#vlan 20 Switch(vlan)#vlan 30 Switch(vlan)#vlan 40 Switch(vlan)#exit

(--在交换机上配置VLAN10-40--) Switch#conf t

Switch(config)#ho 2950A (--将switch重命名为:2950A--) 2950A(config)#int f0/1

2950A(config-if)#switch mode trunk 2950A(config-if)#int f0/2

2950A(config-if)#switch mode trunk 2950A(config-if)#int f0/5

2950A(config-if)#switch mode trunk 2950A(config-if)#exit

(--将f0/1、f0/2、f0/5配置为中继端口--) 2950A(config)#int f0/21

2950A(config-if)#switchport mode access 2950A(config-if)#switchport access vlan 10 2950A(config-if)#int f0/22

2950A(config-if)#switchport mode access 2950A(config-if)#switchport access vlan 20 2950A(config-if)#int f0/23

2950A(config-if)#switchport mode access

2950A(config-if)#switchport access vlan 30 2950A(config-if)#int f0/24

2950A(config-if)#switchport mode access 2950A(config-if)#switchport access vlan 40 2950A(config-if)#exit

(--将f0/21、f0/22、f0/23、f0/24端口划分到指定vlan--) 2950A(config)#end 2950A#sh int f0/1 swi 2950A#sh int f0/2 swi 2950A#sh int f0/5 swi 2950A#sh vla bri

(--查看f0/1、f0/2、f0/5端口和vlan的配置情况--) 2950A(config)#int ran f0/1 -2

2950A(config-if-range)#channel-group 1 mode on 2950A(config-if-range)#exit (--将f0/1、f0/2端口配置为通道--) 2950A(config)#end 2950A#sh eth 1 sum (--查看通道配置情况--) 2、交换机B配置过程 Switch>en

Switch#vlan database Switch(vlan)#vlan 10 Switch(vlan)#vlan 20 Switch(vlan)#vlan 30 Switch(vlan)#vlan 40 Switch(vlan)#exit

(--在交换机上配置VLAN10-40--) Switch#conf t

Switch(config)#ho 2950B (--将switch重命名为:2950B--) 2950B (config)#int f0/1

2950B (config-if)#switch mode trunk 2950B (config-if)#int f0/2

2950B (config-if)#switch mode trunk 2950B (config-if)#int f0/5

2950B (config-if)#switch mode trunk 2950B (config-if)#exit

(--将f0/1、f0/2、f0/5配置为中继端口--) 2950B (config)#int f0/21

2950B (config-if)#switchport mode access 2950B (config-if)#switchport access vlan 10 2950B (config-if)#int f0/22

2950B (config-if)#switchport mode access 2950B (config-if)#switchport access vlan 20 2950B (config-if)#int f0/23

2950B (config-if)#switchport mode access 2950B (config-if)#switchport access vlan 30 2950B (config-if)#int f0/24

2950B (config-if)#switchport mode access

2950B (config-if)#switchport access vlan 40 2950B (config-if)#exit

(--将f0/21、f0/22、f0/23、f0/24端口划分到指定vlan--) 2950B (config)#end 2950B#sh int f0/1 swi 2950B#sh int f0/2 swi 2950B#sh int f0/5 swi 2950B#sh vla bri

(--查看f0/1、f0/2、f0/5端口和vlan的配置情况--) 2950B (config)#int ran f0/1 -2

2950B (config-if-range)#channel-group 1 mode on 2950B (config-if-range)#exit (--将f0/1、f0/2端口配置为通道--) 2950B (config)#end 2950B#sh eth 1 sum (--查看通道配置情况--) 实验现场:

在查看通道配置情况时,出现POL(SD)即Down状态。 分析原因:配置通道操作顺序所引致

操作方法:配置好其它所有选项后,最后再配置通道

解决方法:进入2950B (config-if-range)#模式下,删除通道,然后将端口shutdown,等接口显示为down后,再输入:no sh,重新激活端口。端口显示为up后,再进行配置通道。 实验心得:

1、switch(vlan)#no vlan 20 name cisco (后面不能跟名字)

2、switch(config-if)#no switchport access vlan 20 (后面不能跟vlan号)

3、switch (config-if-range)#channel-group 1 mode on (通道组号取值范围1-64) 4、switch(config-if)#switchport mode access (定义接入链路) 5、删除vlan后,端口不会自动回到默认vlan1,需要手动配置。 6、2900交换机不支持通道,配置前应先查看说明书。

7、vlan1,vlan1001-1005不能删除,vlan1用来传递vtp通告或控制信息,而vlan1001-1005留给令牌环。 8、vlan1-1005为基本vlan,vlan1006-4095为扩展vlan,这个最大值来源于802.1q中的vlan ID值. 9、vlan1-4094的配置信息保存在vlan.dat文件中,可通过show flash:查看。 10、删除vlan 后,原属于该vlan 的端口不会自动回到vlan1,需要手到配置。 实 验 报 告 实验目标:

在多个交换机组成LAN的环境中利用VTP 来管理VLAN。 实验拓扑:

实验要求:

5、 在2950A交换机上创建VTP域名:cisco,将2900和2950B配置为:client模式,并查看2900B和2900是否能学到域名。

6、 在2950A交换机上创立VLAN10、VLAN20,并查看2900B和2900是否能学到VLAN信息。

7、 在2950A交换机上设置VTP域密码后,创建VLAN30、VLAN40,查看2900B和2900是否能学到新创建的VLAN信息。

8、 在2950A上启用修剪。

9、 将2950B配置为:transparent,查看VTP信息的变化。 10、 设置所有交换机设置为版本2。

11、 将2950B从cisco域删除,然后再添加到cisco域中。 12、 清除交换机所有配置。 实验步骤: 1、要求一操作过程

? 进入2950A交换机,进行以下配置: Switch>en Switch#conf t

Switch(config)#ho 2950A (--将switch重命名为:2950A--) 2950A(config)#int ran f0/1 -3

2950A(config-if-range)#switchport mode trunk 2950A(config-if-range)#exit

(--将f0/1、f0/2、f0/3配置为中继端口--) 2950A(config)#int ran f0/1 -2

2950A(config-if-range)#channel-group 1 mode on 2950A(config-if-range)#exit (--将f0/1、f0/2端口配置为通道--) 2950A(config)#vtp domain cisco (--配置域名为:cisco--)

? 进入2950B交换机,进行以下配置: Switch>en Switch#conf t

Switch(config)#ho 2950B (--将switch重命名为:2950B--) 2950B(config)#int ran f0/1 -2

2950B(config-if-range)#switchport mode trunk 2950B (config-if-range)#int f0/4 2950B (config-if)#switch mode trunk 2950B(config-if-range)#exit

(--将f0/1、f0/2、f0/4配置为中继端口--) 2950B(config)#int ran f0/1 -2

2950B(config-if-range)#channel-group 1 mode on 2950B(config-if-range)#exit (--将f0/1、f0/2端口配置为通道--) 2950B(config)#vtp mode client (--配置为客户端模式--) 2950B(config)#end 2900#sh vtp sta

(--查看是否学到域名信息--)

? 进入2900交换机,进行以下配置: Switch>en Switch#conf t

本文来源:https://www.bwwdw.com/article/02fv.html

Top