《18DA113007MP-BGPforIPv6原理与实现ISSUE100.pptx》由会员分享,可在线阅读,更多相关《18DA113007MP-BGPforIPv6原理与实现ISSUE100.pptx(32页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 修订记录课程编码课程编码适用产品适用产品产品版本产品版本课程版本课程版本ISSUEDA113007AllAll1.00开发开发/优化者优化者时间时间审核人审核人开发类型(新开发开发类型(新开发/优化)优化)周进军20091119焦云婷新开发本页不打印Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP-BGP for IPv6原理与实现Copyright 2009 Huawei T
2、echnologies Co., Ltd. All rights reserved. 前 言lBGP-4多协议扩展(MP-BGP)定义了两种新的BGP属性,可以用来完成IPv6的域间路由。2Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 参考资料lRFC 2858 Multiprotocol Extensions for BGP-4lRFC 2545 Use of BGP-4 Multiprotocol Extensions for IPv6 Inter-Domain RoutinglRFC1771 A Bor
3、der Gateway Protocol 4 (BGP-4)lRFC1700 Assigned NumberslRFC 2842 Capabilities Advertisement with BGP-43Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 培训目标l学完本课程后,您应该能:p了解MP-BGP的属性p掌握MP-BGP如何实现IPv6域间路由4Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 目 录1. MP-BGP2.
4、 MP-BGP for IPv6 3. MP-BGP for IPv6基本配置4. 大型网络配置5Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP-BGP(RFC2858)lBGP协议的扩展l承载多种网络层协议的路由信息pIPv6单播p6PEp多播(IPv4 ,IPv6)pMPLS VPN (IPv4 ,IPv6)pCLNSl会话建立阶段协商交换Multi-protocol Reachability Information。6Copyright 2009 Huawei Technologies Co., L
5、td. All rights reserved. MP-BGP(RFC2858)qIPv4 BGP-4 属性NEXT-HOPAGGREGATORNLRIqMP-BGP新增属性MP_REACH_NLRIMP_UNREACH_NLRInext hop信息能够用于特定的网络协议NLRI能够用于特定的网络协议RFC2858中规定任何一个中规定任何一个BGP Speaker(包括支持多协议的包括支持多协议的BGP Speaker)都必须有一个都必须有一个IPv4地址以便用在地址以便用在AGGREGATOR中。中。7Copyright 2009 Huawei Technologies Co., Ltd.
6、All rights reserved. BGP UPDATE MessageUnfeasible Route Length(2 octets)Withdrawn Routes (variable)Total path Attribute Length (2 octets)Path Attributes (variable)Network Layer Reachability Information (variable)Length(1 octet)Prefix(variable)Attribute TypeAttribute LengthAttribute ValueLength(1 oct
7、et)Prefix(variable)8Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. Path AttributeAttribute Type(2 octets)Attribute LengthAttribute Value Attr. Type code 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 Attr. Flags1 optional0 well-known1 transitive0 non-transitive1 ORIGIN2 AS-PATH3 NEXT-HOP4 MULTI_
8、EXIT_DISC5 LOCAL_PREF6 ATOMIC_AGGREGATE7 AGGREGATOR14 MP_REACH_NLRI15 MP_UNREACH_NLRI9Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP-BGP属性lMP_REACH_NLRIp承载可达网络集合和next-hop信息。lMP_UNREACH_NLRIp承载不可达网络集合信息。OptionalNon-transitive10Copyright 2009 Huawei Technologies Co., Ltd. All rig
9、hts reserved. MP_REACH_NLRIAddress Family Identifier(2 octets)Subsequent Address Family Identifier(1 octet)Length of Next Hop Network Address(1 octet)Network Address of Next Hop (variable)Number of SNPA(1 octet)Length of first SNPA(1 octet)First SNPA (variable)Length of second SNPA(1 octet)Second SN
10、PA (variable)Length of Last SNPA(1 octet)Last SNPA (variable)Network Layer Reachability Information (variable)Length (1 octets)Prefix (variable)11Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP_UNREACH_NLRIAddress Family Identifier(2 octets)Subsequent Address Family Identifier(1
11、 octet)Withdrawn Routes (variable)需要撤销的需要撤销的 路由的路由的NLRI12Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. Capabilities Optional ParameterMy Autonomous System (2 octets)Version (1 octet)Hold Time (2 octets)BGP Identifier (4 octets)Opt Parm Length (1 octet)Optional Parameters (4 octet
12、s)BGP OPEN MessageCapability Code (1 octet) Capability Length (1 octet)Capability Value (variable)Capabilities Optional ParameterCapability Code (1 octet) 1 Capability Length (1 octet) 4Multiprotocol Extensions CapabilitiesAFI (2 octets) Res (1 octet) SAFI (1 octet) 13Copyright 2009 Huawei Technolog
13、ies Co., Ltd. All rights reserved. 目 录1. MP-BGP2. MP-BGP for IPv6 3. MP-BGP for IPv6基本配置4. 大型网络配置14Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP-BGP for IPv6(RFC2545)lIPv6 单播地址范围pGlobalpSite-localpLink-locallMP-BGP对IPv6的特殊扩展pNext-HOP包含一个Global IPv6地址和一个Link-Local地址pNEXT-HOP,NL
14、RI都使用IPv6地址和前缀表示15Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP_REACH_NLRIAddress Family Identifier(2 octets)Subsequent Address Family Identifier(1 octet)Length of Next Hop Network Address(1 octet)Network Address of Next Hop (variable)Number of SNPA(1 octet)Length of first SNP
15、A(1 octet)First SNPA (variable)Length of second SNPA(1 octet)Second SNPA (variable)Length of Last SNPA(1 octet)Last SNPA (variable)Network Layer Reachability Information (variable)2 IPv61NLRI is used for unicast2NLRI is used for multicast RPF check3NLRI is used for both unicast and muticast RPF chec
16、k4Label5128 VPN16Next-hop只包含Global地址1732 Next-hop包含Global地址和Link-Local地址16Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 目 录1. MP-BGP2. MP-BGP for IPv6 3. MP-BGP for IPv6基本配置基本配置4. 大型网络配置17Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP-BGP for IPv6基本配置-配置实例R2
17、-NE40E-AR1-NE5000ER6-NE20-Cg2/0/3g2/0/2g2/0/4g2/0/012122001:21:/642001:26:/64AS100AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64lR2-NE40E-A和R1-NE5000E之间建立EBGP邻居关系,R2-NE40E-A和R6-NE20-C之间建立IBGP邻居关系。lAS200内运行OSPFv3,在R1-NE5000E上将OSPFv3路由注入到BGP路由表中。18Copyright 2009 Huawei Technologies Co., Ltd. All rights rese
18、rved. MP-BGP for IPv6基本配置-配置实例R2-NE40E-AR1-NE5000ER6-NE20-Cg2/0/3g2/0/2g2/0/4g2/0/012122001:21:/642001:26:/64AS100AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64R2-NE40E-Abgp 100R2-NE40E-A-bgprouter-id 2.2.2.2R2-NE40E-A-bgppeer 2001:21:1 as-number 200R2-NE40E-A-bgpipv6-family R2-NE40E-A-bgp-af-ipv6peer 200
19、1:21:1 enable R1-NE5000Ebgp 200R1-NE5000E-bgprouter-id 1.1.1.1R1-NE5000E-bgppeer 2001:21:2 as-number 100R1-NE5000E-bgpipv6-family R1-NE5000E-bgp-af-ipv6peer 2001:21:2 enable R2-NE40E-A-bgp-af-ipv6display bgp ipv6 peer BGP local router ID : 2.2.2.2 Local AS number : 100 Total number of peers : 1 Peer
20、s in established state : 1 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 2001:21:1 4 200 4 5 0 00:01:14 Established 019Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP-BGP for IPv6基本配置-配置实例R2-NE40E-AR1-NE5000ER6-NE20-Cg2/0/3g2/0/2g2/0/4g2/0/012122001:21:/642001:26:/64AS100
21、AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64R2-NE40E-Abgp 100R2-NE40E-A-bgppeer 2001:26:2 as-number 100R2-NE40E-A-bgpipv6-family R2-NE40E-A-bgp-af-ipv6peer 2001:26:2 enableR6-NE20-Cbgp 100R6-NE20-C-bgprouter-id 6.6.6.6R6-NE20-C-bgppeer 2001:26:1 as-number 100R6-NE20-C-bgpipv6-family R6-NE20-C-bgp-af-ipv
22、6peer 2001:26:1 enable R2-NE40E-Adisplay bgp ipv6 peer BGP local router ID : 2.2.2.2 Local AS number : 100 Total number of peers : 2 Peers in established state : 2 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 2001:21:1 4 200 34 36 0 00:29:40 Established 0 2001:26:2 4 100 10 10 0 00:06:48 Est
23、ablished 020Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP-BGP for IPv6基本配置-配置实例R2-NE40E-AR1-NE5000ER6-NE20-Cg2/0/3g2/0/2g2/0/4g2/0/012122001:21:/642001:26:/64AS100AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64R1-NE5000Ebgp 200R1-NE5000E-bgpipv6-familyR1-NE5000E-bgp-af-ipv6import-rou
24、te ospfv3 1display bgp ipv6 routing-table Total Number of Routes: 2 BGP Local router ID is 2.2.2.2 Status codes: * - valid, - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete * Network : 2001:31: PrefixLen : 64 NextHop : 2001:21:1 LocPr
25、f : Label : 0 PrefVal : 0 Path/Ogn : 200 ?21Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. MP-BGP for IPv6基本配置-配置实例R2-NE40E-AR1-NE5000ER6-NE20-Cg2/0/3g2/0/2g2/0/4g2/0/012122001:21:/642001:26:/64AS100AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64R6-NE20-Cdisplay bgp ipv6 routing-table To
26、tal Number of Routes: 2BGP Local router ID is 6.6.6.6 Status codes: * - valid, - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete i Network : 2001:31: PrefixLen : 64 NextHop : 2001:21:1 LocPrf : 100 Label : 0 PrefVal : 0 Path/Ogn : 200
27、?22Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 目 录1. MP-BGP2. MP-BGP for IPv6 3. MP-BGP for IPv6基本配置4. 大型网络配置大型网络配置23Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 大型BGP网络配置路由反射器lR2-NE40E-A和R4-NE20-A之间建立EBGP邻居关系,R1-NE5000E和R2-NE40E-A, R3-NE40E-B建立IBGP邻居关系。lR1
28、-NE5000E为AS100中的路由反射器,R3-NE40E-B为客户端。R2-NE40E-AR1-NE5000Eg2/0/3g2/0/2g2/0/41212001:21:/64AS100AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64R4-NE20-Ag2/0/0g2/0/52001:24:/6412Route ReflectorClient24Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 大型BGP网络配置路由反射器R2-NE40E-AR1-NE5000Eg2/0/3g2/
29、0/2g2/0/41212001:21:/64AS100AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64R4-NE20-Ag2/0/0g2/0/52001:24:/6412Route ReflectorClientR4-NE20-Abgp 100R4-NE20-A-bgprouter-id 4.4.4.4R4-NE20-A-bgppeer 2001:24:1 as-number 100R4-NE20-A-bgpipv6-family R4-NE20-A -bgp-af-ipv6peer 2001:24:1 enableR4-NE20-A-bgp-af-ipv6n
30、etwork 2001:4:44 128R2-NE40E-Abgp 100R2-NE40E-A-bgprouter-id 2.2.2.2R2-NE40E-A-bgppeer 2001:24:2 as-number 200R2-NE40E-A-bgppeer 2001:1:11 as-number 100R2-NE40E-A-bgppeer 2001:1:11 connect-interface LoopBack1R2-NE40E-A-bgpipv6-family R2-NE40E-A-bgp-af-ipv6peer 2001:24:2 enable R2-NE40E-A-bgp-af-ipv6
31、peer 2001:1:11 enableR2-NE40E-A-bgp-af-ipv6peer 2001:1:11 next-hop-localR1-NE5000Ebgp 100R1-NE5000Erouter-id 1.1.1.1R1-NE5000E -bgppeer 2001:2:22 as-number 100R1-NE5000E -bgppeer 2001:3:33 as-number 100R1-NE5000E -bgppeer 2001:2:22 connect-interface LoopBack1R1-NE5000E -bgppeer 2001:3:33 connect-int
32、erface LoopBack1R1-NE5000E -bgpipv6-family R1-NE5000E -bgp-af-ipv6peer 2001:2:22 enableR1-NE5000E -bgp-af-ipv6peer 2001:3:33 enableR3-NE40E-Bbgp 100R3-NE40E-B-bgprouter-id 1.1.1.1R3-NE40E-B-bgppeer 2001:1:11 as-number 100R3-NE40E-B-bgppeer 2001:1:11 connect-interface LoopBack1R3-NE40E-B-bgp ipv6-fam
33、ily R3-NE40E-B -bgp-af-ipv6peer 2001:2:22 enable25Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 大型BGP网络配置路由反射器R2-NE40E-AR1-NE5000Eg2/0/3g2/0/2g2/0/41212001:21:/64AS100AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64R4-NE20-Ag2/0/0g2/0/52001:24:/6412Route ReflectorClientdisplay bgp ipv6 r
34、outing-tabledisplay bgp ipv6 routing-table Total Number of Routes: 1 BGP Local router ID is 1.1.1.1 Status codes: * - valid, - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *i Network : 2001:4:44 PrefixLen : 128 NextHop : 2001:2:22 L
35、ocPrf : 100 Label : 0 PrefVal : 0 Path/Ogn : 200 i 26Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 大型BGP网络配置路由反射器R2-NE40E-AR1-NE5000Eg2/0/3g2/0/2g2/0/41212001:21:/64AS100AS200R3-NE40E-Bg2/0/3g2/0/3122001:31:/64R4-NE20-Ag2/0/0g2/0/52001:24:/6412Route ReflectorClientR1-NE5000Ebgp 1
36、00 R1-NE5000E-bgpipv6-familyR1-NE5000E-bgp-af-ipv6 peer 2001:3:33 reflect-clientdisplay bgp ipv6 routing-table Total Number of Routes: 1 BGP Local router ID is 3.3.3.3 Status codes: * - valid, - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - inc
37、omplete *i Network : 2001:4:44 PrefixLen : 128 NextHop : 2001:2:22 LocPrf : 100 Label : 0 PrefVal : 0 Path/Ogn : 200 i27Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 大型BGP网络配置团体属性lR4-NE20-A通过BGP发布路由信息给AS100,为该路由信息设置COMMUNITY属性NO_EXPORT,使得AS100内的路由器可以接收该路由信息,但是不会将该路由信息发给AS500 。R2-
38、NE40E-AAS2000R3-NE40E-Bg2/0/61R4-NE20-Ag2/0/0g2/0/52001:24:/6412R5-NE20-B22001:53:/64AS100g2/0/1g2/0/2g2/0/22001:32:/6412AS50028Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 大型BGP网络配置团体属性R2-NE40E-AAS2000R3-NE40E-Bg2/0/61R4-NE20-Ag2/0/0g2/0/52001:24:/6412R5-NE20-B22001:53:/64AS100
39、g2/0/1g2/0/2g2/0/22001:32:/6412AS500R4-NE20-Ainterface LoopBack 1R4-NE20-A-LoopBack1 ipv6 address 2001:4:4000/128R4-NE20-Aip ipv6-prefix 1 permit 2001:4:4000 128 R4-NE20-Aroute-policy ttt permit node 0R4-NE20-A-route-policy if-match ipv6 address prefix-list 1 R4-NE20-A-route-policyapply community no
40、-export R4-NE20-A-route-policyquitR4-NE20-Abgp 2000R4-NE20-A-bgprouter-id 4.4.4.4 R4-NE20-A-bgppeer 2001:24:1 as-number 100 R4-NE20-A-bgpipv6-family R4-NE20-A-bgp-af-ipv6peer 2001:24:1 enableR4-NE20-A-bgp-af-ipv6network 2001:4:4000 128 R4-NE20-A-bgp-af-ipv6ipeer 2001:24:1 route-policy ttt exportR4-N
41、E20-A-bgp-af-ipv6peer 2001:24:1 advertise-community R2-NE40E-Abgp 100R2-NE40E-A-bgprouter-id 2.2.2.2 R2-NE40E-A-bgppeer 2001:24:2 as-number 2000 R2-NE40E-A-bgppeer 2001:32:2 as-number 100 R2-NE40E-A-bgpipv6-family R2-NE40E-A-bgp-af-ipv6peer 2001:24:2 enableR2-NE40E-A-bgp-af-ipv6peer 2001:32:2 enable
42、R2-NE40E-A-bgp-af-ipv6peer 2001:32:2 advertise-communityR2-NE40E-A-bgp-af-ipv6 peer 2001:32:2 next-hop-local 29Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved. 大型BGP网络配置团体属性R2-NE40E-AAS2000R3-NE40E-Bg2/0/61R4-NE20-Ag2/0/0g2/0/52001:24:/6412R5-NE20-B22001:53:/64AS100g2/0/1g2/0/2g2/0/
43、22001:32:/6412AS500R2-NE40E-A-bgpdisplay bgp ipv6 routing-table community Total Number of Routes: 1 BGP Local router ID is 2.2.2.2 Status codes: * - valid, - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete * Network : 2001:4:4000 Prefi
44、xLen : 128 NextHop : 2001:24:2 LocPrf : Label : 0 PrefVal : 0 Community: No-Export R3-NE40E-B-bgpdisplay bgp ipv6 routing-table community Total Number of Routes: 1 BGP Local router ID is 3.3.3.3 Status codes: * - valid, - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *i Network : 2001:4:4000 PrefixLen : 128 NextHop : 2001:32:1 LocPrf : 100 Label : 0 PrefVal : 0 Community: No-Export display bgp ipv6 routing-table communitydisplay bgp ipv6 routing-table30谢谢