H3C BGP配置Word文档下载推荐.docx

上传人:b****1 文档编号:4681817 上传时间:2023-05-03 格式:DOCX 页数:29 大小:149.44KB
下载 相关 举报
H3C BGP配置Word文档下载推荐.docx_第1页
第1页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第2页
第2页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第3页
第3页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第4页
第4页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第5页
第5页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第6页
第6页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第7页
第7页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第8页
第8页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第9页
第9页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第10页
第10页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第11页
第11页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第12页
第12页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第13页
第13页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第14页
第14页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第15页
第15页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第16页
第16页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第17页
第17页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第18页
第18页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第19页
第19页 / 共29页
H3C BGP配置Word文档下载推荐.docx_第20页
第20页 / 共29页
亲,该文档总共29页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

H3C BGP配置Word文档下载推荐.docx

《H3C BGP配置Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《H3C BGP配置Word文档下载推荐.docx(29页珍藏版)》请在冰点文库上搜索。

H3C BGP配置Word文档下载推荐.docx

配置RouterB。

<

RouterB>

system-view

[RouterB]bgp65009

[RouterB-bgp]router-id2.2.2.2

[RouterB-bgp]peer3.3.3.3as-number65009

[RouterB-bgp]peer3.3.3.3connect-interfaceloopback0

[RouterB-bgp]quit

[RouterB]ospf1

[RouterB-ospf-1]area0

[RouterB-ospf-1-area-0.0.0.0]network2.2.2.20.0.0.0

[RouterB-ospf-1-area-0.0.0.0]network9.1.1.10.0.0.255

[RouterB-ospf-1-area-0.0.0.0]quit

[RouterB-ospf-1]quit

配置RouterC。

RouterC>

[RouterC]bgp65009

[RouterC-bgp]router-id3.3.3.3

[RouterC-bgp]peer2.2.2.2as-number65009

[RouterC-bgp]peer2.2.2.2connect-interfaceloopback0

[RouterC-bgp]quit

[RouterC]ospf1

[RouterC-ospf-1]area0

[RouterC-ospf-1-area-0.0.0.0]network3.3.3.30.0.0.0

[RouterC-ospf-1-area-0.0.0.0]network9.1.1.00.0.0.255

[RouterC-ospf-1-area-0.0.0.0]quit

[RouterC-ospf-1]quit

[RouterC]displaybgppeer

BGPlocalrouterID:

3.3.3.3

LocalASnumber:

65009

Totalnumberofpeers:

Peersinestablishedstate:

1

Peer 

AS 

MsgRcvd 

MsgSentOutQPrefRcvUp/Down 

State

2.2.2.2 

65009 

10 

000:

06:

09Established

以上显示信息表明RouterB和RouterC之间的IBGP连接已经建立。

(3) 

配置EBGP连接

EBGP邻居关系的两台路由器(通常属于两个不同运营商),处于不同的AS域,对端的Loopback接口一般路由不可达,所以一般使用直连地址建立BGP邻居。

因为要求RouterC能够访问RouterA直连的8.1.1.0/24网段,所以,建立EBGP连接后,需要将8.1.1.0/24网段路由通告到BGP路由表中。

配置RouterA。

RouterA>

[RouterA]bgp65008

[RouterA-bgp]router-id1.1.1.1

[RouterA-bgp]peer3.1.1.1as-number65009

[RouterA-bgp]network8.1.1.124

[RouterA-bgp]quit

[RouterB-bgp]peer3.1.1.2as-number65008

查看RouterB的BGP对等体的连接状态。

[RouterB]displaybgppeer

2.2.2.2

2

3.3.3.3 

12 

300:

09:

16Established

3.1.1.2 

65008 

100:

00:

08Established

可以看出,RouterB与RouterC、RouterB与RouterA之间的BGP连接均已建立。

查看RouterA的BGP路由表。

[RouterA]displaybgprouting-table

TotalNumberofRoutes:

BGPLocalrouterIDis1.1.1.1

Statuscodes:

*-valid,^-VPNv4best,>

-best,d-damped,

h-history, 

i-internal,s-suppressed,S-Stale

Origin:

i-IGP,e-EGP,?

-incomplete

Network 

NextHop 

MED 

LocPrf 

PrefValPath/Ogn

*>

8.1.1.0/24 

0.0.0.0 

i

显示RouterB的BGP路由表。

[RouterB]displaybgprouting-table

BGPLocalrouterIDis2.2.2.2

65008i

显示RouterC的BGP路由表。

[RouterC]displaybgprouting-table

BGPLocalrouterIDis3.3.3.3

i8.1.1.0/24 

100 

从路由表可以看出,RouterA没有学到AS65009部的任何路由,RouterC虽然学到了AS65008中的8.1.1.0的路由,但因为下一跳3.1.1.2不可达,所以也不是有效路由。

(4) 

配置BGP引入直连路由

在RouterB上配置BGP引入直连路由,以便RouterA能够获取到网段9.1.1.0/24的路由,RouterC能够获取到网段3.1.1.0/24的路由。

[RouterB-bgp]import-routedirect

显示RouterA的BGP路由表。

4

–incomplete

2.2.2.2/32 

3.1.1.1 

65009?

3.1.1.0/24 

9.1.1.0/24 

以上显示信息表明,在RouterB上引入直连路由后,RouterA新增了到2.2.2.2/32和9.1.1.0/24两条路由。

 

NextHop 

i2.2.2.2/32 

?

i3.1.1.0/24 

i8.1.1.0/24 

*i9.1.1.0/24 

以上显示信息表明,到8.1.1.0的路由变为有效路由,下一跳为RouterA的地址。

(5) 

验证配置结果

使用Ping进行验证。

[RouterC]ping8.1.1.1

PING8.1.1.1:

56 

databytes,pressCTRL_Ctobreak

Replyfrom8.1.1.1:

bytes=56Sequence=1ttl=254time=2ms

bytes=56Sequence=2ttl=254time=2ms

bytes=56Sequence=3ttl=254time=2ms

bytes=56Sequence=4ttl=254time=2ms

bytes=56Sequence=5ttl=254time=2ms

---8.1.1.1pingstatistics---

5packet(s)transmitted

5packet(s)received

0.00%packetloss

round-tripmin/avg/max=2/2/2ms

1.14.2 

BGP与IGP交互配置

如图1-16所示,公司A的所有设备在AS65008,公司B的所有设备在AS65009,AS65008和AS65009通过设备RouterA和RouterB相连。

现要现RouterA能够访问AS65009的网段9.1.2.0/24,RouterC能够访问AS65008的网段8.1.1.0/24。

图1-16 

BGP与IGP交互配置组网图

配置OSPF

在AS65009配置OSPF,使得RouterB能获取到到9.1.2.0/24网段的路由。

[RouterB-ospf-1-area-0.0.0.0]network9.1.1.00.0.0.255

[RouterC-ospf-1]import-routedirect

配置EBGP连接,并在RouterA上将8.1.1.0/24网段通告到BGP路由表中,以便RouterB获取到网段8.1.1.0/24的路由。

[RouterA-bgp]network8.1.1.024

配置BGP与IGP交互

在RouterB上配置BGP引入OSPF路由,以便RouterA能够获取到到9.1.2.0/24网段的路由。

在RouterB上配置OSPF引入BGP路由,以便RouterC能够获取到到8.1.1.0/24网段的路由。

在RouterB上配置BGP引入OSPF路由。

[RouterB-bgp]import-routeospf1

[RouterB-ospf-1]import-routebgp

3

3.3.3.3/32 

9.1.2.0/24 

查看RouterC的路由表。

[RouterC]displayiprouting-table

RoutingTables:

Public

Destinations:

Routes:

9

Destination/Mask 

Proto 

Pre 

Cost 

Interface

2.2.2.2/32 

OSPF 

9.1.1.1 

S2/0

3.3.3.3/32 

Direct0 

127.0.0.1 

InLoop0

8.1.1.0/24 

O_ASE 

150 

9.1.1.1 

S2/0

9.1.1.0/24 

9.1.1.2 

9.1.1.2/32 

9.1.2.0/24 

9.1.2.1 

Eth1/1

9.1.2.1/32 

127.0.0.0/8 

127.0.0.1/32 

[RouterA]ping-a8.1.1.19.1.2.1

PING9.1.2.1:

Replyfrom9.1.2.1:

bytes=56Sequence=1ttl=254time=15ms

bytes=56Sequence=2ttl=254time=31ms

bytes=56Sequence=3ttl=254time=47ms

bytes=56Sequence=4ttl=254time=46ms

bytes=56Sequence=5ttl=254time=47ms

---9.1.2.1pingstatistics---

5packet(s)r

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 农林牧渔 > 林学

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2