BGP MPLS VPN配置与排错.ppt
《BGP MPLS VPN配置与排错.ppt》由会员分享,可在线阅读,更多相关《BGP MPLS VPN配置与排错.ppt(33页珍藏版)》请在三一办公上搜索。
1、BGP/MPLS VPN配置与排错,主讲:陈萍,目标,1.巩固BGP/MPLS VPN的原理,3.熟悉MPLS VPN网络的排错方法,2.掌握MPLS VPN的配置方法,BGP/MPLS VPN实现原理回顾BGP/MPLS VPN配置步骤与排错方法总结与提要,R-c05(CE1),R8(PE1),R9(P),R-d05(PE2),AS37937,Lo=59.0.0.1,R-c06(CE2),R-CE3,R-CE4,Lo=59.0.0.2,Lo=59.0.0.3,59.0.1.1/30,.2,59.0.1.5/30,.6,Ethernet1/0/0,Ethernet1/0/1,Ethernet2
2、/0/0,Ethernet1/0/2,Ethernet1/0/0,Ethernet1/0/4,Ethernet2/0/1,Ethernet2/0/2,192.168.1.1/2,172.32.1.1/2,Lo=192.168.254.1,Lo=172.32.254.1,192.168.2.1/2,172.32.2.1/2,Lo=192.168.255.1,Lo=172.32.255.1,VPN1,VPN2,一个简单的MPLS VPN组网,BGP/MPLS VPN实现原理回顾BGP/MPLS VPN配置步骤与排错方法总结与提要,1.配置IGP公网路由协议,2.配置MPLS,3.配置BGP,4.配
3、置VPN,配置PE和CE之间的路由,目标:所有PE和P设备可以互相学到32位loopback地址,目标:所有相邻PE和P设备之间建立LDPsession,并为其32位loopback地址分配MPLS标签,目标:所有PE设备之间普通BGP邻居和BGP vpnv4邻居,目标:PE设备可以学习到直连CE侧的私网路由(以OSPF为例),5.将本端学到的私网路由引入到对应的BGP的VPN实例,将BGP学过来的远端私网路由引入给本端的CE侧。,目标:PE设备可以学习到远端CE侧的私网路由 CE设备可以学习到远端CE侧的私网路由,MPLS VPN的配置步骤与逐步排错方法,1.配置IGP公网路由协议,目标:所
4、有PE和P设备可以互相学到32位loop地址,R8(PE1),R9(P),R-d05(PE2),router id 59.0.0.1 ospf 1 area 0.0.0.0 network 59.0.0.1 0.0.0.0 network 59.0.1.0 0.0.0.3,router id 59.0.0.3 ospf 1 area 0.0.0.0 network 59.0.0.3 0.0.0.0 network 59.0.1.4 0.0.0.3 network 59.0.1.0 0.0.0.3,router id 59.0.0.2 ospf 1 area 0.0.0.0 network 59
5、.0.0.2 0.0.0.0 network 59.0.1.4 0.0.0.3,1.配置IGP公网路由协议,目标:所有PE和P设备可以互相学到32位loop地址,R8(PE1),dis ip routing-table Routing Tables:Public Destinations:11 Routes:11Destination/Mask Proto Pre Cost NextHop Interface 59.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.0.2/32 OSPF 10 3 59.0.1.2 Ethernet1/0/2 59.
6、0.0.3/32 OSPF 10 2 59.0.1.2 Ethernet1/0/2 59.0.1.0/30 Direct 0 0 59.0.1.1 Ethernet1/0/2 59.0.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.1.3/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.1.4/30 OSPF 10 2 59.0.1.2 Ethernet1/0/2 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 127.0.0.
7、1 InLoopBack0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoopBack0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoopBack0,1.配置IGP公网路由协议,目标:所有PE和P设备可以互相学到32位loop地址,R9(P),dis ip routing-table Routing Tables:Public Destinations:13 Routes:13Destination/Mask Proto Pre Cost NextHop Interface 59.0.0.1/32 OSPF 10
8、 2 59.0.1.1 Ethernet1/0/0 59.0.0.2/32 OSPF 10 2 59.0.1.6 Ethernet1/0/1 59.0.0.3/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.1.0/30 Direct 0 0 59.0.1.2 Ethernet1/0/0 59.0.1.2/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.1.3/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.1.4/30 Direct 0 0 59.0.1.5 Ethernet1/0/1 59
9、.0.1.5/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.1.7/32 Direct 0 0 127.0.0.1 InLoopBack0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoopBack0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoopBack0,1.配置IGP公网路由协议,目标:所有
10、PE和P设备可以互相学到32位loop地址,R-d05(PE2),dis ip routing-table Routing Tables:Public Destinations:11 Routes:11Destination/Mask Proto Pre Cost NextHop Interface 59.0.0.1/32 OSPF 10 3 59.0.1.5 Ethernet2/0/0 59.0.0.2/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.0.3/32 OSPF 10 2 59.0.1.5 Ethernet2/0/0 59.0.1.0/30 OS
11、PF 10 2 59.0.1.5 Ethernet2/0/0 59.0.1.4/30 Direct 0 0 59.0.1.6 Ethernet2/0/0 59.0.1.6/32 Direct 0 0 127.0.0.1 InLoopBack0 59.0.1.7/32 Direct 0 0 127.0.0.1 InLoopBack0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0127.255.255.255/32 Direct 0 0 127.0.0.1 InL
12、oopBack0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoopBack0,2.配置MPLS,目标:所有PE和P设备之间建立LDPsession,并为其32位loopback地址分配MPLS标签,R8(PE1),R9(P),R-d05(PE2),mpls lsr-id 59.0.0.1 mpls mpls ldp,mpls lsr-id 59.0.0.3mplsmpls ldp,mpls lsr-id 59.0.0.2mplsmpls ldp,interface Ethernet1/0/0 description toR8 undo shutdown
13、 ip address 59.0.1.2 255.255.255.252 mpls mpls ldp,interface Ethernet1/0/1 description to R-d05 undo shutdown ip address 59.0.1.5 255.255.255.252 mpls mpls ldp,interface Ethernet1/0/2 description toR9 undo shutdown ip address 59.0.1.1 255.255.255.252 mpls mpls ldp,interface Ethernet2/0/0 description
14、 toR9 undo shutdown ip address 59.0.1.6 255.255.255.252 mpls mpls ldp,2.配置MPLS,目标:所有相邻PE和P设备之间建立LDPsession,并为其32位loopback地址分配MPLS标签,R8(PE1),R8(PE1)dis mpls ldp session LDP Session(s)in Public Network-Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv-59.0.0.3:0 Operational DU Passive 000:00:00 2/2-LAM:La
15、bel Advertisement Mode SsnAge Unit:DDD:HH:MMR8(PE1)dis mpls ldp lsp LDP LSP Information-SN DestAddress/Mask In/OutLabel Next-Hop In/Out-Interface-1 59.0.0.1/32 3/NULL 127.0.0.1 Eth1/0/2/InLoop0 2 59.0.0.2/32 NULL/1024 59.0.1.2-/Eth1/0/2 3 59.0.0.3/32 NULL/3 59.0.1.2-/Eth1/0/2-A*before an LSP means t
16、he LSP is not established A*before a Label means the USCB or DSCB is stale,2.配置MPLS,目标:所有PE和P设备之间建立LDPsession,并为其32位loopback地址分配MPLS标签,R9(P),dis mpls ldp session LDP Session(s)in Public Network-Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv-59.0.0.1:0 Operational DU Active 000:00:01 8/8 59.0.0.2:0 Op
17、erational DU Active 000:00:06 28/28-LAM:Label Advertisement Mode SsnAge Unit:DDD:HH:MMdis mpls ldp lsp LDP LSP Information-SN DestAddress/Mask In/OutLabel Next-Hop In/Out-Interface-1 59.0.0.1/32 NULL/3 59.0.1.1-/Eth1/0/0 2 59.0.0.1/32 1025/3 59.0.1.1 Eth1/0/1/Eth1/0/0 3 59.0.0.2/32 NULL/3 59.0.1.6-/
18、Eth1/0/1 4 59.0.0.2/32 1024/3 59.0.1.6 Eth1/0/0/Eth1/0/1 5 59.0.0.3/32 3/NULL 127.0.0.1 Eth1/0/1/InLoop0 6 59.0.0.3/32 3/NULL 127.0.0.1 Eth1/0/0/InLoop0-A*before an LSP means the LSP is not established A*before a Label means the USCB or DSCB is stale,2.配置MPLS,目标:所有PE和P设备之间建立LDPsession,并为其32位loopback
19、地址分配MPLS标签,R-d05(PE2),dis mpls ldp session LDP Session(s)in Public Network-Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv-59.0.0.3:0 Operational DU Passive 000:00:06 26/26-LAM:Label Advertisement Mode SsnAge Unit:DDD:HH:MMdis mpls ldp lsp LDP LSP Information-SN DestAddress/Mask In/OutLabel Next-Hop I
20、n/Out-Interface-1 59.0.0.1/32 NULL/1025 59.0.1.5-/Eth2/0/0 2 59.0.0.2/32 3/NULL 127.0.0.1 Eth2/0/0/InLoop0 3 59.0.0.3/32 NULL/3 59.0.1.5-/Eth2/0/0-A*before an LSP means the LSP is not established A*before a Label means the USCB or DSCB is stale,3.配置BGP,目标:所有PE设备之间普通BGP邻居和BGP vpnv4邻居,R8(PE1),R-d05(PE
21、2),bgp 37937 peer 59.0.0.2 as-number 37937 peer 59.0.0.2 connect-interface LoopBack0#ipv4-family vpnv4 peer 59.0.0.2 enable,bgp 37937 peer 59.0.0.1 as-number 37937 peer 59.0.0.1 connect-interface LoopBack0#ipv4-family vpnv4 peer 59.0.0.1 enable,bgp 37937Group AS37937 in peer 59.0.0.2 group AS37937 p
22、eer 59.0.0.2 connect-interface LoopBack0#ipv4-family vpnv4 peer AS37937 enable peer 59.0.0.2 group AS37937,3.配置BGP,目标:所有PE设备之间普通BGP邻居和BGP vpnv4邻居,R8(PE1),dis bgp peer BGP local router ID:59.0.0.1 Local AS number:37937 Total number of peers:1 Peers in established state:1 Peer V AS MsgRcvd MsgSent Out
23、Q Up/Down State PrefRcv 59.0.0.2 4 37937 3 2 0 00:00:10 Established 0dis bgp vpnv4 all peer BGP local router ID:59.0.0.1 Local AS number:37937 Total number of peers:1 Peers in established state:1 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 59.0.0.2 4 37937 3 2 0 00:00:18 Established 0,3.配置B
24、GP,目标:所有PE设备之间普通BGP邻居和BGP vpnv4邻居,R-d05(PE2),dis bgp peer BGP local router ID:59.0.0.2 Local AS number:37937 Total number of peers:1 Peers in established state:1 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 59.0.0.1 4 37937 4 3 0 00:01:09 Established 0dis bgp vpnv4 all peer BGP local router
25、ID:59.0.0.2 Local AS number:37937 Total number of peers:1 Peers in established state:1 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 59.0.0.1 4 37937 4 3 0 00:01:16 Established 0,4.配置VPN,配置PE和CE之间的路由,目标:PE设备可以学习到直连CE侧的私网路由(以OSPF为例),R8(PE1),ip vpn-instance vpn1 route-distinguisher 37937:1 vpn-
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BGP MPLS VPN配置与排错 VPN 配置
链接地址:https://www.31ppt.com/p-2367575.html