mpls mce

配置ce, pe vrf
ip vpn-instance a
route-distinguisher 1:1
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity

ip vpn-instance b
route-distinguisher 2:2
vpn-target 2:2 export-extcommunity
vpn-target 2:2 import-extcommunity

配置 mce/pe ospf及互联地址 其他pe/mce 类似

mce2:
ospf 45 router-id 5.5.5.5 vpn-instance a
area 0.0.0.0
ospf 54 router-id 5.5.5.6 vpn-instance b
area 0.0.0.0

interface GigabitEthernet0/0/0.10
dot1q termination vid 10
ip binding vpn-instance a
ip address 10.0.45.5 255.255.255.0
ospf enable 45 area 0.0.0.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.20
dot1q termination vid 20
ip binding vpn-instance b
ip address 10.0.54.5 255.255.255.0
ospf enable 54 area 0.0.0.0
arp broadcast enable
#
interface LoopBack0
ip binding vpn-instance a
ip address 5.5.5.5 255.255.255.255
ospf enable 45 area 0.0.0.0
#
interface LoopBack1
ip binding vpn-instance b
ip address 5.5.5.6 255.255.255.255
ospf enable 54 area 0.0.0.0

pe4:

ospf 45 vpn-instance a
area 0.0.0.0
ospf 54 vpn-instance b
area 0.0.0.0
ospf 24 rou 4.4.4.4
area 0.0.0.0

interface GigabitEthernet0/0/0.10
dot1q termination vid 10
ip binding vpn-instance a
ip address 10.0.45.4 255.255.255.0
ospf enable 45 area 0.0.0.0
arp broadcast enable
#
interface GigabitEthernet0/0/0.20
dot1q termination vid 20
ip binding vpn-instance b
ip address 10.0.54.4 255.255.255.0
ospf enable 54 area 0.0.0.0
arp broadcast enable
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
ospf enable 24 area 0.0.0.0

int g0/0/1
ip address 10.0.34.4 24
ospf enable 24 area 0.0.0.0

配置PE2,P,PE4 igp略

配置mpls ,ldp (P3,PE4 略)
PE2:
mpls lsr-id 2.2.2.2
mpls
mpls ldp
interface GigabitEthernet0/0/1
mpls
mpls ldp


配置mBGP

PE2:
bgp 24
router-id 2.2.2.2
peer 3.3.3.3 as-number 24
peer 3.3.3.3 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 3.3.3.3 enable
#
ipv4-family vpnv4
policy vpn-target
peer 3.3.3.3 enable

pe4:
bgp 24
router-id 4.4.4.4
peer 3.3.3.3 as-number 24
peer 3.3.3.3 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 3.3.3.3 enable
#
ipv4-family vpnv4
policy vpn-target
peer 3.3.3.3 enable
p3:
bgp 24
router-id 3.3.3.3
peer 2.2.2.2 as-number 24
peer 2.2.2.2 connect-interface LoopBack0
peer 4.4.4.4 as-number 24
peer 4.4.4.4 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
undo peer 2.2.2.2 enable
undo peer 4.4.4.4 enable
#
ipv4-family vpnv4
undo policy vpn-target //重要
peer 2.2.2.2 enable
peer 2.2.2.2 reflect-client
peer 4.4.4.4 enable
peer 4.4.4.4 reflect-client

 

MCE1 路由传递到 MCE5:
PE2:
#
ipv4-family vpn-instance a
import-route ospf 12
#
ipv4-family vpn-instance b
import-route ospf 21
PE4:
ospf 45
import bgp
ospf 54
import bgp

MCE5 路由传递到 MCE1:
PE4:
#
ipv4-family vpn-instance a
import-route ospf 45
#
ipv4-family vpn-instance b
import-route ospf 54
PE2:
ospf 12
import bgp
ospf 21
import bgp

posted @ 2021-02-15 21:03  abel2020  阅读(50)  评论(0编辑  收藏  举报