欢迎您访问我爱IT技术网,今天小编为你分享的电脑教程是网络协议方面的经验知识教程:MPLS,下面是详细的分享!
MPLS

CEA1:R01(R01---e0/2---R06)
CEB1:R07(R07---e0/0---R06)暂时末用此CE端
ISP:R06---e1/1---R02---e1/0---R08
CEA2:R03(R03---e0/2---R08)
CEB2:S09(R08---e0/0---S09)暂时末用此CE端
1、SP的CORE内先运行一个IGP,让CORE内的各路由器的路由可达
2、SP的PE端之间运行MP-BGP(VPNv4,MP-BGP邻居必须用环回口建立)
3、SP的PE端创建VRF,把与CE相连的接口划进VRF
4、在PE端和CE端运行IGP,让PE端能学习到私有路由
5、在PE端双向重分布(在PE上把VRF的路由重分布到MP-BGP并设置router export)
6、在另一个PE上面设置相应的route import,并重分布到VRF的ip protocol内
7、SP的CORE内运行MPLS
R01:
!
interface Loopback1
ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0/2
ip address 16.1.1.1 255.255.255.0
no shutdown
!
router rip
version 2
network 1.0.0.0
network 16.0.0.0
no auto-summary
R06:
!
ip cef
!
mpls label range 600 699
mpls label protocol ldp
mpls ldp router-id Ethernet1/1
!
ip vrf VPNr6
rd 68:6
route-target export 6:8
route-target import 8:6
!
interface Loopback68
ip address 68.68.68.68 255.255.255.255
!
interface Ethernet0/0
ip address 67.1.1.6 255.255.255.0
no shutdown
!
interface Ethernet0/2
ip vrf forwarding VPNr6
ip address 16.1.1.6 255.255.255.0
no shutdown
!
interface Ethernet1/1
ip address 62.1.1.6 255.255.255.0
ip ospf priority 0
mpls ip
no shutdown
!
router ospf 110
router-id 6.6.6.6
network 62.1.1.6 0.0.0.0 area 0
network 68.68.68.68 0.0.0.0 area 0
!
router rip
address-family ipv4 vrf VPNr6
redistribute bgp 68 metric transparent
network 16.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 68
bgp router-id 6.6.6.6
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 86.86.86.86 remote-as 68
neighbor 86.86.86.86 update-source Loopback68
!
address-family ipv4
no synchronization
no auto-summary
exit-address-family
!
address-family vpnv4
neighbor 86.86.86.86 activate
neighbor 86.86.86.86 send-community extended
exit-address-family
!
address-family ipv4 vrf VPNr6
no synchronization
redistribute rip
exit-address-family
R02:
!
ip cef
!
mpls label range 200 299
mpls label protocol ldp
mpls ldp router-id Ethernet1/1
!
interface Ethernet1/0
ip address 28.1.1.2 255.255.255.0
mpls ip
!
interface Ethernet1/1
ip address 62.1.1.2 255.255.255.0
mpls ip
!
router ospf 110
router-id 2.2.2.2
network 28.1.1.2 0.0.0.0 area 0
network 62.1.1.2 0.0.0.0 area 0
R08:
!
ip cef
!
mpls label range 800 899
mpls label protocol ldp
mpls ldp router-id Ethernet1/0
!
ip vrf VPNr8
rd 68:8
route-target export 8:6
route-target import 6:8
!
interface Loopback86
ip address 86.86.86.86 255.255.255.255
!
interface Ethernet0/0
ip address 89.1.1.8 255.255.255.0
no shutdown
!
interface Ethernet0/2
ip vrf forwarding VPNr8
ip address 83.1.1.8 255.255.255.0
no shutdown
!
interface Ethernet1/0
ip address 28.1.1.8 255.255.255.0
ip ospf priority 0
mpls ldp discovery transport-address interface
mpls ip
no shutdown
!
router ospf 110
router-id 8.8.8.8
network 28.1.1.8 0.0.0.0 area 0
network 86.86.86.86 0.0.0.0 area 0
!
router rip
address-family ipv4 vrf VPNr8
redistribute bgp 68 metric transparent
network 83.0.0.0
no auto-summary
version 2
exit-address-family
!
router bgp 68
bgp router-id 8.8.8.8
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 68.68.68.68 remote-as 68
neighbor 68.68.68.68 update-source Loopback86
!
address-family ipv4
no synchronization
no auto-summary
exit-address-family
!
address-family vpnv4
neighbor 68.68.68.68 activate
neighbor 68.68.68.68 send-community extended
exit-address-family
!
address-family ipv4 vrf VPNr8
no synchronization
redistribute rip
exit-address-family
!
R03:
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Ethernet0/2
ip address 83.1.1.3 255.255.255.0
no shutdown
!
router rip
version 2
network 3.0.0.0
network 83.0.0.0
no auto-summary
本文出自 “生命不止,战斗不息!” 博客
以上就是关于MPLS的网络协议知识分享,更多电脑教程请移步到>>电脑教程。
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
