BGP的路由反射器Word文档格式.docx
《BGP的路由反射器Word文档格式.docx》由会员分享,可在线阅读,更多相关《BGP的路由反射器Word文档格式.docx(37页珍藏版)》请在冰豆网上搜索。
08
09
ipaddress1.1.1.1255.255.255.0
10
11
12
13
interfaceEthernet0/0
14
15
noshu
16
17
18
19
interfaceEthernet0/0.14
20
21
encapsulationdot1Q14
22
23
ipaddress10.1.1.1255.255.255.0
24
25
26
27
28
29
interfaceEthernet0/0.15
30
31
encapsulationdot1Q15
32
33
ipaddress20.1.1.1255.255.255.0
34
35
36
37
38
39
interfaceSerial1/0
40
41
ipaddress12.1.1.1255.255.255.0
42
43
44
45
46
47
interfaceSerial2/0
48
49
ipaddress13.1.1.1255.255.255.0
50
51
52
53
54
55
routerospf10
56
57
network10.1.1.00.0.0.255area0
58
59
network12.1.1.00.0.0.255area0
60
61
network13.1.1.00.0.0.255area0
62
63
network20.1.1.00.0.0.255area0
64
65
66
67
routerbgp10
68
69
nosynchronization
70
71
bgprouter-id
1.1.1.1
72
73
network1.1.1.0mask255.255.255.0
74
75
neighbor10.1.1.4remote-as20
76
77
neighbor12.1.1.2remote-as10
78
79
neighbor13.1.1.3remote-as10
80
81
neighbor20.1.1.5remote-as10
82
83
noauto-summary
84
85
86
87
88
linecon0
89
90
exec-timeout00
91
92
loggingsynchronous
93
94
R2的配置:
r2
ipaddress2.2.2.2255.255.255.0
ipaddress12.1.1.2255.255.255.0
2.2.2.2
network2.2.2.0mask255.255.255.0
neighbor12.1.1.1remote-as10
R3的配置:
r3
ipaddress3.3.3.3255.255.255.0
ipaddress13.1.1.3255.255.255.0
3.3.3.3
network3.3.3.0mask255.255.255.0
neighbor13.1.1.1remote-as10
R4的配置:
r4
ipaddress4.4.4.4255.255.255.0
ipaddress10.1.1.4255.255.255.0
routerbgp20
4.4.4.4
network4.4.4.0mask255.255.255.0
neighbor10.1.1.1remote-as10
R5的配置:
r5
ipaddress5.5.5.5255.255.255.0
ipaddress20.1.1.5255.255.255.0
5.5.5.5
network5.5.5.0mask255.255.255.0
neighbor20.1.1.1remote-as10
验证:
下面我们查看一下每个路由器的BGP表,目的是验证BGP中路由条目传递的原则。
r1的BGP表
r1#showipbgp
BGPtableversionis6,localrouterIDis1.1.1.1
Statuscodes:
ssuppressed,ddamped,hhistory,*valid,>
best,i-internal,
rRIB-failure,SStale
Origincodes:
i-IGP,e-EGP,?
-incomplete
Network
NextHop
MetricLocPrfWeightPath
*>
1.1.1.0/24
0.0.0.0
0
32768i
i2.2.2.0/24
12.1.1.2
100
0i
i3.3.3.0/24
13.1.1.3
4.4.4.0/24
10.1.1.4
020i
i5.5.5.0/24
20.1.1.5
r2的BGP表
r2#showipbgp
BGPtableversionis4,localrouterIDis2.2.2.2
i1.1.1.0/24
12.1.1.1
2.2.2.0/24
0
i4.4.4.0/24
r3的BGP表
r3#showipbgp
BGPtableversionis4,localrouterIDis3.3.3.3
NextHop
13.1.1.1
3.3.3.0/24
r4的BGP表
r4#showipbgp
BGPtableversionis6,localrouterIDis4.4.4.4
MetricLocPrfWeightPath
10.1.1.1
010i
5.5.5.0/24
r5的BGP表
r5#showipbgp
BGPtableversionis4,localrouterIDis5.5.5.5
20.1.1.1
从上面每个路由器的BGP表中我们可以得知,默认情况下,IBGP对等体学习到的路由,在满足同步、可达的前提下,仍不会向其他IBGP对等体通告。
但会向EBGP对等体通告。
,下面我们把R2做成R1路由反射器的客户来观察一下实验现象。
配置如下:
r1(config)#routerbgp10
r1(config-router)#neighbor12.1.1.2
route-reflector-client
下面我们来看一R2的BGP表
BGPtableversionis10,localrouterIDis2.2.2.2
i