配置运营商的运营商(跨域)示例
一级运营商和二级运营商处于不同的AS中,二级运营商提供BGP/MPLS IPv6 VPN服务的配置举例。
组网需求
如图8-19,一级运营商和二级运营商在不同AS中,二级运营商向自己的客户提供BGP/MPLS IPv6 VPN服务。
本节配置举例与前一节配置运营商的运营商(相同AS)示例的区别在于:本节中,二级运营商与一级运营商不属于同一个AS。其它条件相同。
配置思路
本例配置主要思路是:
配置运营商的运营商关键在于理解两类路由的交换过程,即:
二级运营商内部路由在一级运营商骨干网上的交换:一级运营商将二级运营商作为自己的CE接入。
二级运营商外部路由在二级运营商PE设备间的交换:需要在二级运营商PE设备(PE3和PE4)间建立MP-EBGP对等体关系。
配置跨域运营商的运营商,由于一级运营商PE与一级运营商CE位于不同的AS,它们之间要配置Labeled MP-EBGP,为与CE交换的路由加标签。
数据准备
完成本例配置,需准备如下数据:
一级运营商PE、一级运营商CE及二级运营商PE上的MPLS LSR-ID
配置IGP协议所需数据
一级运营商PE上的使能IPv4地址族的VPN实例、路由标志RD及VPN-Target
二级运营商PE上的使能IPv6地址族的VPN实例、路由标志RD及VPN-Target
在一级运营商CE上配置两个路由策略
操作步骤
- 配置一级运营商骨干网的BGP/MPLS IP VPN,使用IS-IS作为骨干网的IGP协议,PE1和PE2之间使能LDP,并建立MP-IBGP对等体关系
具体配置过程见参见配置运营商的运营商(相同AS)示例的相应部分,此处不再赘述。
配置IGP协议时,注意将各PE的32位Loopback接口地址发布出去。
- 配置二级运营商网络:使用OSPF作为IGP协议,PE3和CE1、PE4和CE2之间分别使能LDP
与配置运营商的运营商(相同AS)示例相同,具体配置过程略。
配置IGP协议时,注意将各PE和CE的32位Loopback接口地址发布出去。
- 配置一级运营商CE接入到一级运营商的PE,并配置它们之间能够交换标签IPv4路由
# 配置CE1:能够与PE3、PE1交换标签IPv4路由。
<CE1> system-view
[~CE1] interface gigabitEthernet 2/0/0
[*CE1-GigabitEthernet2/0/0] ip address 10.1.1.1 24
[*CE1-GigabitEthernet2/0/0] mpls
[*CE1-GigabitEthernet2/0/0] quit
[*CE1] route-policy policy1 permit node 1
[*CE1-route-policy] apply mpls-label
[*CE1-route-policy] quit
[*CE1] route-policy policy2 permit node 1
[*CE1-route-policy] if-match mpls-label
[*CE1-route-policy] apply mpls-label
[*CE1-route-policy] quit
[*CE1] bgp 200
[*CE1-bgp] peer 1.1.1.9 as-number 200
[*CE1-bgp] peer 1.1.1.9 connect-interface loopback 1
[*CE1-bgp] peer 1.1.1.9 route-policy policy2 export
[*CE1-bgp] peer 1.1.1.9 label-route-capability
[*CE1-bgp] peer 10.1.1.2 as-number 100
[*CE1-bgp] peer 10.1.1.2 route-policy policy1 export
[*CE1-bgp] peer 10.1.1.2 label-route-capability
[*CE1-bgp] import-route ospf 1
[*CE1-bgp] commit
[~CE1-bgp] quit
# 配置PE1:能够与CE1交换标签IPv4路由。
<PE1> system-view
[~PE1] ip vpn-instance vpn1
[*PE1-vpn-instance-vpn1] ipv4-family
[*PE1-vpn-instance-vpn1-af-ipv4] route-distinguisher 200:1
[*PE1-vpn-instance-vpn1-af-ipv4] apply-label per-route
[*PE1-vpn-instance-vpn1-af-ipv4] vpn-target 1:1 both
[*PE1-vpn-instance-vpn1-af-ipv4] quit
[*PE1-vpn-instance-vpn1] quit
[*PE1] interface gigabitEthernet 1/0/0
[*PE1-GigabitEthernet1/0/0] ip binding vpn-instance vpn1
[*PE1-GigabitEthernet1/0/0] ip address 10.1.1.2 24
[*PE1-GigabitEthernet1/0/0] mpls
[*PE1-GigabitEthernet1/0/0] quit
[*PE1] route-policy policy1 permit node 1
[*PE1-route-policy] apply mpls-label
[*PE1-route-policy] quit
[*PE1] bgp 100
[*PE1-bgp] ipv4-family vpn-instance vpn1
[*PE1-bgp-vpn1] peer 10.1.1.1 as-number 200
[*PE1-bgp-vpn1] peer 10.1.1.1 route-policy policy1 export
[*PE1-bgp-vpn1] peer 10.1.1.1 label-route-capability
[*PE1-bgp-vpn1] import-route direct
[*PE1-bgp-vpn1] commit
[~PE1-bgp-vpn1] quit
[~PE1-bgp] quit
# 配置PE3:能够与CE1交换标签IPv4路由。
<PE3> system-view
[~PE3] bgp 200
[*PE3-bgp] peer 2.2.2.9 as-number 200
[*PE3-bgp] peer 2.2.2.9 connect-interface loopback 1
[*PE3-bgp] peer 2.2.2.9 label-route-capability
[*PE3-bgp] commit
[~PE3-bgp] quit
配置完成后,CE1和PE3、CE1和PE1之间分别建立BGP对等体关系。
[~CE1] display bgp peer BGP local router ID : 2.2.2.9 Local AS number : 200 Total number of peers : 2 Peers in established state : 2 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 1.1.1.9 4 200 7 8 0 00:04:07 Established 0 10.1.1.2 4 100 3 4 0 00:00:08 Established 0
PE4、CE2和PE2的配置与PE3、CE1和PE1的配置类似,配置过程省略。
- 配置二级运营商的客户接入到二级运营商的PE
与配置运营商的运营商(相同AS)示例相同,具体配置过程略。
- 在二级运营商的PE之间建立MP-EBGP对等体关系,交换二级运营商的客户的VPN路由
# 配置PE3。
<PE3> system-view
[~PE3] bgp 200
[*PE3-bgp] peer 6.6.6.9 as-number 300
[*PE3-bgp] peer 6.6.6.9 connect-interface loopback 1
[*PE3-bgp] peer 6.6.6.9 ebgp-max-hop 10
[*PE3-bgp] ipv6-family vpnv6
[*PE3-bgp-af-vpnv6] peer 6.6.6.9 enable
[*PE3-bgp-af-vpnv6] commit
[~PE3-bgp-af-vpnv6] quit
[~PE3-bgp] quit
# 配置PE4。
<PE4> system-view
[~PE4] bgp 300
[*PE4-bgp] peer 1.1.1.9 as-number 200
[*PE4-bgp] peer 1.1.1.9 connect-interface loopback 1
[*PE4-bgp] peer 1.1.1.9 ebgp-max-hop 10
[*PE4-bgp] ipv6-family vpnv6
[*PE4-bgp-af-vpnv6] peer 1.1.1.9 enable
[**PE4-bgp-af-vpnv6] quit
[*PE4-bgp] commit
[~PE4-bgp] quit
- 检查配置结果
所有配置完成后,在PE1和PE2上执行display ip routing-table命令,可以看到PE1和PE2的公网路由表中只有一级运营商网络的路由。以PE1的显示为例:
[~PE1] display ip routing-table Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 7 Routes : 7 Destination/Mask Proto Pre Cost Flags NextHop Interface 3.3.3.9/32 Direct 0 0 D 127.0.0.1 LoopBack1 4.4.4.9/32 ISIS 15 10 D 10.3.1.2 GigabitEthernet2/0/0 10.3.1.0/24 Direct 0 0 D 10.3.1.1 GigabitEthernet2/0/0 10.3.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0 10.3.1.2/32 Direct 0 0 D 10.3.1.2 GigabitEthernet2/0/0 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
在PE1和PE2上执行display ip routing-table vpn-instance命令,可以看到VPN路由表中有二级运营商网络的内部路由。以PE1的显示为例:
[~PE1] display ip routing-table vpn-instance vpn1 Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route ------------------------------------------------------------------------------ Routing Tables: vpn1 Destinations : 11 Routes : 11 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.9/32 EBGP 255 10 D 10.1.1.1 GigabitEthernet1/0/0 2.2.2.9/32 EBGP 255 0 D 10.1.1.1 GigabitEthernet1/0/0 5.5.5.9/32 IBGP 255 0 RD 4.4.4.9 GigabitEthernet2/0/0 6.6.6.9/32 IBGP 255 10 RD 4.4.4.9 GigabitEthernet2/0/0 10.4.1.0/24 EBGP 255 0 D 10.1.1.1 GigabitEthernet1/0/0 10.1.1.0/24 Direct 0 0 D 10.1.1.2 GigabitEthernet1/0/0 10.1.1.1/32 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0 10.1.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0 10.2.1.0/24 IBGP 255 0 RD 4.4.4.9 GigabitEthernet2/0/0 10.5.1.0/24 IBGP 255 0 RD 4.4.4.9 GigabitEthernet2/0/0 10.5.1.2/32 IBGP 255 0 RD 4.4.4.9 GigabitEthernet2/0/0
在CE1和CE2上执行display ip routing-table命令,可以看到公网路由表中有二级运营商网络内部路由。以CE1的显示为例:
[~CE1] display ip routing-table Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 15 Routes : 15 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.9/32 OSPF 10 1 D 10.4.1.1 GigabitEthernet1/0/0 2.2.2.9/32 Direct 0 0 D 127.0.0.1 LoopBack1 5.5.5.9/32 EBGP 255 0 D 10.1.1.2 GigabitEthernet2/0/0 6.6.6.9/32 EBGP 255 0 D 10.1.1.2 GigabitEthernet2/0/0 10.4.1.0/24 Direct 0 0 D 10.4.1.2 GigabitEthernet1/0/0 10.4.1.1/32 Direct 0 0 D 10.4.1.1 GigabitEthernet1/0/0 10.4.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0 10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet2/0/0 10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0 10.1.1.2/32 Direct 0 0 D 10.1.1.2 GigabitEthernet2/0/0 10.2.1.0/24 EBGP 255 0 D 10.1.1.2 GigabitEthernet2/0/0 10.5.1.0/24 EBGP 255 0 D 10.1.1.2 GigabitEthernet2/0/0 10.5.1.2/32 EBGP 255 0 D 10.1.1.2 GigabitEthernet2/0/0 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
在PE3和PE4上执行display ip routing-table命令,可以看到公网路由表中有二级运营商网络的内部路由。以PE3的显示为例:
[~PE3] display ip routing-table Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 14 Routes : 14 Destination/Mask Proto Pre Cost Flags NextHop Interface Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.9/32 Direct 0 0 D 127.0.0.1 LoopBack1 2.2.2.9/32 OSPF 10 1 D 10.4.1.2 GigabitEthernet2/0/0 5.5.5.9/32 IBGP 255 0 RD 2.2.2.9 GigabitEthernet2/0/0 6.6.6.9/32 IBGP 255 0 RD 2.2.2.9 GigabitEthernet2/0/0 10.4.1.0/24 Direct 0 0 D 10.4.1.1 GigabitEthernet2/0/0 10.4.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0 10.4.1.2/32 Direct 0 0 D 10.4.1.2 GigabitEthernet2/0/0 10.1.1.0/24 EBGP 255 0 RD 6.6.6.9 GigabitEthernet2/0/0 10.1.1.1/32 EBGP 255 0 RD 6.6.6.9 GigabitEthernet2/0/0 10.2.1.0/24 IBGP 255 0 RD 2.2.2.9 GigabitEthernet2/0/0 10.5.1.0/24 IBGP 255 0 RD 2.2.2.9 GigabitEthernet2/0/0 10.5.1.2/32 IBGP 255 0 RD 2.2.2.9 GigabitEthernet2/0/0 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
在PE3和PE4上执行display ipv6 routing-table vpn-instance命令,可以看到VPN路由表中有远端VPN客户的路由,即,有二级运营商的外部路由。以PE3的显示为例:
[~PE3] display ipv6 routing-table vpn-instance vpn1
Routing Table : vpn1 Destinations : 4 Routes : 4 Destination : 2001:db8:1:: PrefixLength : 64 NextHop : 2001:db8:1::2 Preference : 0 Cost : 0 Protocol : Direct RelayNextHop : :: TunnelID : 0x0 Interface : GigabitEthetnet1/0/0 Flags : D Destination : 2001:db8:1::2 PrefixLength : 128 NextHop : ::1 Preference : 0 Cost : 0 Protocol : Direct RelayNextHop : :: TunnelID : 0x0 Interface : GigabitEthetnet1/0/0 Flags : D Destination : 2001:db8:2:: PrefixLength : 64 NextHop : ::FFFF:6.6.6.9 Preference : 255 Cost : 0 Protocol : EBGP RelayNextHop : :: TunnelID : 0xf0010060 Interface : NULL0 Flags : RD Destination : FE80:: PrefixLength : 10 NextHop : :: Preference : 0 Cost : 0 Protocol : Direct RelayNextHop : :: TunnelID : 0x0 Interface : NULL0 Flags : D
PE3和PE4可以相互Ping通:
[~PE3] ping 10.2.1.2 PING 10.2.1.2: 56 data bytes, press CTRL_C to break Reply from 10.2.1.2: bytes=56 Sequence=1 ttl=251 time=116 ms Reply from 10.2.1.2: bytes=56 Sequence=2 ttl=251 time=92 ms Reply from 10.2.1.2: bytes=56 Sequence=3 ttl=251 time=118 ms Reply from 10.2.1.2: bytes=56 Sequence=4 ttl=251 time=103 ms Reply from 10.2.1.2: bytes=56 Sequence=5 ttl=251 time=121 ms --- 10.2.1.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 92/110/121 ms
CE3和CE4可以互相Ping通。
[~CE3] ping ipv6 2001:db8:2::1 PING 2001:db8:2::1 : 56 data bytes, press CTRL_C to break Reply from 2001:db8:2::1 bytes=56 Sequence=1 hop limit=62 time = 140 ms Reply from 2001:db8:2::1 bytes=56 Sequence=2 hop limit=62 time = 141 ms Reply from 2001:db8:2::1 bytes=56 Sequence=3 hop limit=62 time = 141 ms Reply from 2001:db8:2::1 bytes=56 Sequence=4 hop limit=62 time = 140 ms Reply from 2001:db8:2::1 bytes=56 Sequence=5 hop limit=62 time = 156 ms --- 2001:db8:2::1 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 140/143/156 ms
配置文件
CE3的配置文件
#
sysname CE3
#
interface GigabitEthernet1/0/0
undo shutdown
ipv6 enable
ipv6 address 2001:db8:1::1/64
#
ipv6
#
bgp 65410
router-id 10.10.10.10
peer 2001:db8:1::2 as-number 200
#
ipv6-family unicast
undo synchronization
import-route direct
peer 2001:db8:1::2 enable
#
return
PE3的配置文件
#
sysname PE3
#
ip vpn-instance vpn1
ipv6-family
route-distinguisher 100:1
apply-label per-route
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
ipv6
#
mpls lsr-id 1.1.1.9
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip binding vpn-instance vpn1
ipv6 enable
ipv6 address 2001:db8:1::2/64
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
bgp 200
peer 2.2.2.9 as-number 200
peer 2.2.2.9 connect-interface LoopBack1
peer 6.6.6.9 as-number 300
peer 6.6.6.9 ebgp-max-hop 10
peer 6.6.6.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 2.2.2.9 enable
peer 2.2.2.9 label-route-capability
peer 6.6.6.9 enable
#
ipv6-family vpnv6
policy vpn-target
peer 6.6.6.9 enable
#
ipv6-family vpn-instance vpn1
peer 2001:db8:1::1 as-number 65410
import-route direct
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 10.4.1.0 0.0.0.255
#
return
CE1的配置文件
#
sysname CE1
#
mpls lsr-id 2.2.2.9
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
bgp 200
peer 10.1.1.2 as-number 100
peer 1.1.1.9 as-number 200
peer 1.1.1.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
import-route ospf 1
peer 10.1.1.2 enable
peer 10.1.1.2 route-policy policy1 export
peer 10.1.1.2 label-route-capability
peer 1.1.1.9 enable
peer 1.1.1.9 route-policy policy2 export
peer 1.1.1.9 label-route-capability
#
route-policy policy1 permit node 1
apply mpls-label
route-policy policy2 permit node 2
if-match mpls-label
apply mpls-label
#
ospf 1
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.4.1.0 0.0.0.255
#
return
PE1的配置文件
#
sysname PE1
#
ip vpn-instance vpn1
ipv4-family
route-distinguisher 200:1
apply-label per-route
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
mpls lsr-id 3.3.3.9
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip binding vpn-instance vpn1
ip address 10.1.1.2 255.255.255.0
mpls
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
bgp 100
peer 4.4.4.9 as-number 100
peer 4.4.4.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 4.4.4.9 enable
#
ipv4-family vpnv4
policy vpn-target
peer 4.4.4.9 enable
#
ipv4-family vpn-instance vpn1
peer 10.1.1.1 as-number 200
peer 10.1.1.1 route-policy policy1 export
peer 10.1.1.1 label-route-capability
import-route direct
#
route-policy policy1 permit node 1
apply mpls-label
#
return
PE2的配置文件
#
sysname PE2
#
ip vpn-instance vpn1
ipv4-family
route-distinguisher 200:2
apply-label per-route
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
mpls lsr-id 4.4.4.9
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0005.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip binding vpn-instance vpn1
ip address 10.5.1.1 255.255.255.0
mpls
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
isis enable 1
#
bgp 100
peer 3.3.3.9 as-number 100
peer 3.3.3.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 3.3.3.9 enable
#
ipv4-family vpnv4
policy vpn-target
peer 3.3.3.9 enable
#
ipv4-family vpn-instance vpn1
peer 10.5.1.2 as-number 300
peer 10.5.1.2 route-policy policy1 export
peer 10.5.1.2 label-route-capability
import-route direct
#
route-policy policy1 permit node 1
apply mpls-label
#
return
CE2的配置文件
#
sysname CE2
#
mpls lsr-id 5.5.5.9
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.5.1.2 255.255.255.0
mpls
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 5.5.5.9 255.255.255.255
#
bgp 300
peer 10.5.1.1 as-number 100
peer 6.6.6.9 as-number 300
peer 6.6.6.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
import-route ospf 1
peer 10.5.1.1 enable
peer 10.5.1.1 route-policy policy1 export
peer 10.5.1.1 label-route-capability
peer 6.6.6.9 enable
peer 6.6.6.9 route-policy policy2 export
peer 6.6.6.9 label-route-capability
#
route-policy policy1 permit node 1
apply mpls-label
route-policy policy2 permit node 1
if-match mpls-label
apply mpls-label
#
ospf 1
area 0.0.0.0
network 5.5.5.9 0.0.0.0
network 10.2.1.0 0.0.0.255
network 10.5.1.0 0.0.0.255
#
return
PE4的配置文件
#
sysname PE4
#
ip vpn-instance vpn1
ipv6-family
route-distinguisher 100:2
apply-label per-route
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
ipv6
#
mpls lsr-id 6.6.6.9
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip binding vpn-instance vpn1
ipv6 enable
ipv6 address 2001:db8:2::2/64
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 6.6.6.9 255.255.255.255
#
bgp 300
peer 5.5.5.9 as-number 300
peer 5.5.5.9 connect-interface LoopBack1
peer 1.1.1.9 as-number 200
peer 1.1.1.9 ebgp-max-hop 10
peer 1.1.1.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 5.5.5.9 enable
peer 5.5.5.9 label-route-capability
peer 1.1.1.9 enable
#
ipv6-family vpnv6
policy vpn-target
peer 1.1.1.9 enable
#
ospf 1
area 0.0.0.0
network 6.6.6.9 0.0.0.0
network 10.2.1.0 0.0.0.255
#
ipv6-family vpn-instance vpn1
peer 2001:db8:2::1 as-number 65420
import-route direct
#
return
CE4的配置文件
#
sysname CE4
#
ipv6
#
interface GigabitEthernet1/0/0
undo shutdown
ipv6 enable
ipv6 address 2001:db8:2::1/64
#
bgp 65420
router-id 20.20.20.20
peer 2001:db8:2::2 as-number 300
#
ipv6-family unicast
undo synchronization
import-route direct
peer 2001:db8:2::2 enable
#
return