实验目:
l 理解BGP步机制途
l 通IGP实现BGP步
l 熟练进行BGP邻居设置网络前缀公布
l 查BGP邻居路表
实验环境:
.实验方式选择:
Q Packet Tracer 553
R 模拟器:GNS3
R 物理设备: RSR20四台console线条广域网线三条
二.实验拓扑
三.知识技术分析
步指BGP必须等直IGP治系统中成功传播该选路信息治系统通告渡信息说路器IBGP等体收目更新信息通告EBGP等体前试图验证该目通治系统部否达(验证该目否存IGP非BGP路器否传递业务量该目IGP认识目接受样条路信息通告EBGP等体否路作IGP步进行通告
BGP步规:BGP步开情况BGP路器会通IBGP邻居学BGP路通告EBGP邻居非IGP路表中存路EBGP路器通告
BGP步目:防止AS(路器运行BGP)部出现路黑洞外部通告AS达虚假路
BGP步基需求:果AS部存非BGP路器出现BGPIGP边界需边界路器BGP路发布IGP中保证AS通告外部BGP路AS部连通实际求BGP路IGP路步
满足BGP步规基需求结果:果BGP路发布IGP中BGP路AS外部路(INTERNET)结果IGP路器维护数万计外部路路器CPUMEMEORYAS部链路带宽占带巨开销
实验求:
1 图中标注配置路器端口IP址(包括物理接口环回接口)
2 创建路器BGP进程开启BGP步功配置 RouterID邻居通network命令网络前缀进行公布
3 配置OSPF实现AS100部网络通畅BGP步功提供支持
4 查邻居关系BGP路表路器路表通PING验证网络通畅情况
实验步骤:
1 领取设备线缆检查完性记录:_____________________________
2 拓扑图指示设备进行连接
3 根图中标注配置路器接口IP址(时钟配置略):
R1(config)#interface Loopback1
R1(configif)#ip address 1111 2552552550
R1(configif)#ip ospf network pointtopoint
R1(config)#interface Serial10
R1(configif)#ip address 12001 2552552550
R1(config)#interface Serial11
R1(configif)#ip address 13001 2552552550
R2(config)#interface Loopback1
R2(configif)#ip address 2222 2552552550
R2 (configif)#ip ospf network pointtopoint
R2(config)#interface Serial10
R2(configif)ip address 24002 2552552550
R2(config)#interface Serial11
R2(configif)ip address 12002 2552552550
R3(config)#interface Loopback1
R3(configif)#ip address 3333 2552552550
R3(configif)#ip ospf network pointtopoint
R3(config)#interface Serial10
R3(configif)#ip address 13003 2552552550
R4(config)#interface Loopback1
R4(configif)#ip address 4444 2552552550
R4 (configif)#ip ospf network pointtopoint
R4(config)#interface Serial11
R4(configif)#ip address 24004 2552552550
4 利PING命令验证直连链路联通性:
通情况请序检查:
² 接口物理连接
² 终端设备IP址配置
² 接口状态(路器show int XXX查询)
² 串行线路时钟
² 路器路表中直连网段条目
5 路器创建BGP进程开启步功配置RouterID邻居:
R1(config)#router bgp 100
R1(configrouter) #synchronization
R1(configrouter)#bgp routerid 1111
R1(configrouter)#neighbor 12002 remoteas 100
R1(configrouter)#neighbor 13003 remoteas 100
R2(config)#router bgp 100
R2(configrouter)#synchronization
R2(configrouter)#bgp routerid 2222
R2(configrouter)#neighbor 12001 remoteas 100
R2(configrouter)#neighbor 13003 remoteas 100
R2(configrouter)#neighbor 24004 remoteas 200
R2(configrouter)#neighbor 24004 ebgpmultihop 255
R3(config)#router bgp 100
R3(configrouter)#synchronization
R3(configrouter)#bgp routerid 3333
R3(configrouter)#neighbor 12002 remoteas 100
R3(configrouter)#neighbor 13001 remoteas 100
R4(config)#router bgp 200
R4 (configrouter)#synchronization
R4(configrouter)#bgp routerid 4444
R4(configrouter)#neighbor 24002 remoteas 100
R4(configrouter)#neighbor 24002 ebgpmultihop 255
6 路器通network命令网络前缀进行公布
R1(config)#router bgp 100
R1(configrouter)#network 1110 mask 2552552550
R1(configrouter)#network 12000 mask 2552552550
R1(configrouter)#network 13000 mask 2552552550
R2(config)#router bgp 100
R2(configrouter)#network 2220 mask 2552552550
R2(configrouter)#network 12000 mask 2552552550
R2(configrouter)#network 24000 mask 2552552550
R3(config)#router bgp 100
R3(configrouter)#network 3330 mask 2552552550
R3(configrouter)#network 13000 mask 2552552550
R4(config)#router bgp 200
R4(configrouter)#network 4440 mask 2552552550
R4(configrouter)#network 24000 mask 2552552550
7 查R1BGP邻居表见邻居关系正常:
R1#show ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ UpDown StatePfxRcd
12002 4 100 78 74 12 0 0 010501 4
13003 4 100 12 15 12 0 0 000809 2
8 查R1BGP路表见IBGP邻居学路佳路:
R1#show ip bgp
Network Next Hop Metric LocPrf Weight Path
* i 222024 12002 0 100 0 i
* i 333024 13003 0 100 0 i
* i 444024 24004 0 100 0 200 i
r>i 1200024 12002 0 100 0 i
r>i 1300024 13003 0 100 0 i
* i 2400024 12002 0 100 0 i
9 查R1路表见IBGP邻居学路没进入路表:
R1#show ip route
10008 is variably subnetted 2 subnets 2 masks
C 111024 is directly connected Loopback1
120008 is variably subnetted 2 subnets 2 masks
C 1200024 is directly connected Serial10
130008 is variably subnetted 2 subnets 2 masks
C 1300024 is directly connected Serial11
10 AS100中路器通OSPF实现治系统网络收敛:
R1(config)#router ospf 1
R1(configrouter)#routerid 1111
R1(configrouter)#network 1110 000255 area 0
R1(configrouter)#network 12000 000255 area 0
R1(configrouter)#network 13000 000255 area 0
R2(config)#router ospf 1
R2(configrouter)#routerid 2222
R2(configrouter)#network 2220 000255 area 0
R2(configrouter)#network 12000 000255 area 0
R2(configrouter)#network 24000 000255 area 0
R3(config)#router ospf 1
R3(configrouter)#routerid 3333
R3(configrouter)#network 3330 000255 area 0
R3(configrouter)#network 13000 000255 area 0
11 次查R1BGP路表见444024外基正常:
R1#show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 111024 0000 0 32768 i
r>i 222024 12002 0 100 0 i
r>i 333024 13003 0 100 0 i
* i 444024 24004 0 100 0 200 i
*> 1200024 0000 0 32768 i
*> 1300024 0000 0 32768 i
r>i 2400024 12002 0 100 0 i
12 次查R1路表见缺少444024路
13 R2BGP路导入OSPF进程444024通OSPFAS100中传播:
R2(config)#router ospf 1
R2(configrouter)#redistribute bgp 100 subnets
14 第三次查R1路表:
R1#show ip route
400024 is subnetted 1 subnets
O E2 4440 [1101] via 12002 000002 Serial10
15 通PING 测试网络联通性:
R3#ping 4444 source 3333
Type escape sequence to abort
Sending 5 100byte ICMP Echos to 4444 timeout is 2 seconds
Packet sent with a source address of 3333
Success rate is 100 percent (55) roundtrip minavgmax 888992 ms
实验总结:
收获:
足:
实验评价:
项目
拓扑搭建
24分
设备配置
60分
职业素质
16分
总分
100分
分
评价标准:
1) 拓扑搭建:略
2) 设备配置:实现实验求15分
3) 职业素质:工作流程合理10分工作认真负责6分
课作业:
通查找资料实验解决问题:
1 例中R4否必须开启步功?
2 路表中关4440路什O标志B标志?
3 文档香网(httpswwwxiangdangnet)户传
《香当网》用户分享的内容,不代表《香当网》观点或立场,请自行判断内容的真实性和可靠性!
该内容是文档的文本内容,更好的格式请下载文档