配置VPLS接入L3VPN示例(IPRAN场景)
Mixed VPN是IPTime MBB移动宽带(Mobile Broadband)解决方案的一种承载方式。该方案是华为公司建设IP MBH(IP Mobile Backhaul)网络的主要方案。
组网需求
Mixed VPN方案具备优秀FMC承载能力和简单灵活的组网形式。CSG到RSG之间采用分层的设计,适合大规模的网络承载。
CSG(Cell Site Gateway,基站侧网关)组成接入网(Access Network),ASG(Aggregation Site Gateway,汇聚侧网关)和RSG(Radio Service Gateway,无线业务侧网关)组成汇聚网(Aggregation Network),可以根据2G、3G 和LTE业务的承载需求进行灵活部署。如图11-11所示。
本例使用Virtual-Ethernet接口配置L2VPN接入L3VPN。由于VE接口只绑定在一块单板上,单板出现故障时,会导致业务中断。为了提高业务可靠性,也可以在ASG上创建两个全局虚拟以太网接口Global-VE1和Global-VE2,其中Global-VE1接口用来终结L2VE,Global-VE2接口用来接入L3VPN网络的L3VE,其他配置保持不变。
对于L2VPN可以采用HVPLS(PWE3接入VPLS)或PWE3方式,本举例采用的方案为ETH基站H-VPLS(PWE3接入VPLS)+L3VPN承载。图11-12为简化后的单环组网图。根据当前版本实现,重点介绍CSG、ASG设备的配置。
设备 |
接口 |
对端设备 |
IP地址 |
---|---|---|---|
CSG |
GE1/0/1 |
ASG1 |
172.16.1.1/24 |
GE1/0/2 |
ASG2 |
172.16.4.1/24 |
|
GE1/0/3 |
NodeB |
- |
|
ASG1 |
GE1/0/0 |
ASG2 |
172.16.2.2/24 |
GE1/0/1 |
CSG |
172.16.1.2/24 |
|
GE1/0/3 |
RSG1 |
172.16.3.1/24 |
|
GE1/0/4 |
RSG2 |
172.16.8.1/24 |
|
ASG2 |
GE1/0/0 |
ASG1 |
172.16.2.1/24 |
GE1/0/2 |
CSG |
172.16.4.2/24 |
|
GE1/0/3 |
RSG2 |
172.16.6.1/24 |
|
GE1/0/4 |
RSG1 |
172.16.7.1/24 |
|
RSG1 |
GE1/0/0 |
RSG2 |
- |
GE1/0/1 |
ASG1 |
172.16.3.2/24 |
|
GE1/0/2 |
ASG2 |
172.16.7.2/24 |
|
GE1/0/3 |
RNC |
- |
|
RSG2 |
GE1/0/0 |
RSG1 |
- |
GE1/0/1 |
ASG2 |
172.16.6.2/24 |
|
GE1/0/2 |
ASG1 |
172.16.8.2/24 |
|
GE1/0/3 |
RNC |
- |
配置思路
采用如下的思路配置VPLS接入L3VPN(IPRAN场景):
配置IP地址和路由
配置MPLS和公网隧道
- CSG和ASG之间配置TE隧道。
- ASG与RSG之间配置LSP隧道。
配置Master/Slave模式的PW Redundancy
- 配置H-VPLS(PWE3接入VPLS)。
- 配置管理PW,并配置Spoke PW联动管理PW。
- 配置BFD检测管理PW。
配置L3VPN
- 在ASG和RSG上配置VPN实例
- 在ASG上配置VE-Group,将VPN实例与L3VE子接口绑定
- 在ASG和RSG之间建立MP-IBGP对等体
- 在ASG和RSG上引入直连VPN路由
- 配置VPN FRR
配置VRRP
- ASG上配置业务VRRP和管理VRRP确定基站的网关
- RSG上配置业务VRRP确定主备
数据准备
为完成此配置例,需准备如下的数据:
接口编号、接口IP地址和OSPF进程号
LSR ID
L2VC的目的地址、VC ID和VC Type
VSI名称及VSI ID
BFD的会话名、本地/远端识别符
VE-Group组号
VRRP的备份组号和优先级
操作步骤
- 配置各接口的IP地址和路由协议
配置完成后,在CSG、ASG和RSG上执行display ip routing-table命令可以看到已学到彼此的路由。配置OSPF时,注意需要发布CSG、ASG和RSG的32位Loopback接口地址(LSR ID)。
具体配置过程略,请参考配置文件。
- 配置MPLS基本功能和公网隧道
- CSG和ASG1、CSG和ASG2之间配置显式路径TE隧道。
- ASG1和ASG2、ASG和RSG之间配置LSP隧道。
- 为增强可靠性,需要使能RSVP GR、LDP GR和OSPF GR。
具体配置过程略,请参考配置文件。
- 配置PW Redundancy
- 配置L3VPN
- 配置BFD检测公网故障
- 配置VRRP
配置文件
CSG的配置文件
# sysname CSG # bfd # mpls lsr-id 1.1.1.1 mpls mpls te mpls rsvp-te mpls rsvp-te hello mpls te cspf # mpls l2vpn # explicit-path to_asg1 next hop 172.16.1.2 next hop 2.2.2.2 # explicit-path to_asg2 next hop 172.16.4.2 next hop 3.3.3.3 # mpls ldp graceful-restart # mpls ldp remote-peer 2.2.2.2 remote-ip 2.2.2.2 # mpls ldp remote-peer 3.3.3.3 remote-ip 3.3.3.3 # interface GigabitEthernet1/0/1 undo shutdown ip address 172.16.1.1 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te hello # interface GigabitEthernet1/0/2 undo shutdown ip address 172.16.4.1 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te hello # interface GigabitEthernet1/0/3 undo shutdown # interface GigabitEthernet1/0/3.10 vlan-type dot1q 10 mpls l2vc 2.2.2.2 100 tunnel-policy policy1 mpls l2vc 3.3.3.3 200 tunnel-policy policy1 secondary mpls l2vpn redundancy master # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 # interface Tunnel11 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 2.2.2.2 mpls te tunnel-id 100 mpls te record-route label mpls te path explicit-path to_asg1 mpls te reserved-for-binding # interface Tunnel12 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 3.3.3.3 mpls te tunnel-id 200 mpls te record-route label mpls te path explicit-path to_asg2 mpls te reserved-for-binding # ospf 100 opaque-capability enable graceful-restart area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 172.16.1.0 0.0.0.255 network 172.16.4.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 2.2.2.2 te Tunnel11 tunnel binding destination 3.3.3.3 te Tunnel12 # bfd master bind pw interface GigabitEthernet1/0/3.10 remote-peer 2.2.2.2 pw-ttl auto-calculate discriminator local 2 discriminator remote 2 commit # return
ASG1的配置文件
# sysname ASG1 # ip vpn-instance vpna ipv4-family route-distinguisher 1:1 apply-label per-instance vpn frr vpn-target 1:1 export-extcommunity vpn-target 1:1 import-extcommunity # bfd # mpls lsr-id 2.2.2.2 mpls mpls te mpls rsvp-te mpls rsvp-te hello mpls te cspf # mpls l2vpn # vsi 1 static pwsignal ldp vsi-id 100 peer 1.1.1.1 tnl-policy policy1 ignore-standby-state peer 3.3.3.3 negotiation-vc-id 8000 upe # explicit-path to_csg next hop 172.16.1.1 next hop 1.1.1.1 # mpls ldp graceful-restart # mpls ldp remote-peer 1.1.1.1 remote-ip 1.1.1.1 # interface GigabitEthernet1/0/0 undo shutdown ip address 172.16.2.2 255.255.255.0 vrrp vrid 20 virtual-ip 172.16.2.3 admin-vrrp vrid 20 ignore-if-down vrrp vrid 20 priority 150 mpls mpls ldp # interface GigabitEthernet1/0/1 undo shutdown ip address 172.16.1.2 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te hello # interface GigabitEthernet1/0/3 undo shutdown ip address 172.16.3.1 255.255.255.0 mpls mpls ldp # interface GigabitEthernet1/0/4 undo shutdown ip address 172.16.8.1 255.255.255.0 mpls mpls ldp # interface Virtual-Ethernet1/0/0 ve-group 10 l2-terminate # interface Virtual-Ethernet1/0/0.1 vlan-type dot1q 10 l2 binding vsi 1 # interface Virtual-Ethernet1/0/1 ve-group 10 l3-access # interface Virtual-Ethernet1/0/1.1 vlan-type dot1q 10 ip binding vpn-instance vpna ip address 10.0.0.2 255.255.255.0 direct-route track pw-state degrade-cost 30 vrrp vrid 10 virtual-ip 10.0.0.3 vrrp vrid 10 track admin-vrrp interface GigabitEthernet1/0/0 vrid 20 # interface LoopBack0 ip address 2.2.2.2 255.255.255.255 # interface Tunnel11 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 1.1.1.1 mpls te tunnel-id 100 mpls te record-route label mpls te signal-protocol rsvp-te mpls te path explicit-path to_csg mpls te backup hot-standby wtr 15 mpls te reserved-for-binding # bgp 100 graceful-restart peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack0 peer 4.4.4.4 as-number 100 peer 4.4.4.4 connect-interface LoopBack0 peer 5.5.5.5 as-number 100 peer 5.5.5.5 connect-interface LoopBack0 # ipv4-family unicast undo synchronization peer 3.3.3.3 enable peer 4.4.4.4 enable peer 5.5.5.5 enable # ipv4-family vpnv4 policy vpn-target peer 3.3.3.3 enable peer 4.4.4.4 enable peer 5.5.5.5 enable # ipv4-family vpn-instance vpna import-route direct # ospf 100 opaque-capability enable graceful-restart area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 172.16.1.0 0.0.0.255 network 172.16.3.0 0.0.0.255 network 172.16.2.0 0.0.0.255 network 172.16.8.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 1.1.1.1 te Tunnel11 # bfd master bind pw vsi 1 peer 1.1.1.1 remote-peer 1.1.1.1 pw-ttl auto-ca lculate discriminator local 2 discriminator remote 2 commit # bfd spoke bind pw vsi 1 peer 3.3.3.3 vc-id 8000 discriminator local 5 discriminator remote 5 commit # return
ASG2的配置文件
# sysname ASG2 # ip vpn-instance vpna ipv4-family route-distinguisher 1:1 apply-label per-instance vpn frr vpn-target 1:1 export-extcommunity vpn-target 1:1 import-extcommunity # bfd # mpls lsr-id 3.3.3.3 mpls mpls te mpls rsvp-te mpls rsvp-te hello mpls te cspf # mpls l2vpn # vsi 1 static pwsignal ldp vsi-id 200 peer 1.1.1.1 tnl-policy policy1 ignore-standby-state peer 2.2.2.2 negotiation-vc-id 8000 upe # explicit-path to_csg next hop 172.16.4.1 next hop 1.1.1.1 # mpls ldp graceful-restart # mpls ldp remote-peer 1.1.1.1 remote-ip 1.1.1.1 # interface GigabitEthernet1/0/0 undo shutdown ip address 172.16.2.1 255.255.255.0 vrrp vrid 20 virtual-ip 172.16.2.3 admin-vrrp vrid 20 ignore-if-down mpls mpls ldp # interface GigabitEthernet1/0/2 undo shutdown ip address 172.16.4.2 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te hello # interface GigabitEthernet1/0/3 undo shutdown ip address 172.16.6.1 255.255.255.0 mpls mpls ldp # interface GigabitEthernet1/0/4 undo shutdown ip address 172.16.7.1 255.255.255.0 mpls mpls ldp # interface Virtual-Ethernet1/0/0 ve-group 10 l2-terminate # interface Virtual-Ethernet1/0/0.1 vlan-type dot1q 10 l2 binding vsi 1 # interface Virtual-Ethernet1/0/1 ve-group 10 l3-access # interface Virtual-Ethernet1/0/1.1 vlan-type dot1q 10 ip binding vpn-instance vpna ip address 10.0.0.4 255.255.255.0 vrrp vrid 10 virtual-ip 10.0.0.3 vrrp vrid 10 track admin-vrrp interface GigabitEthernet1/0/0 vrid 20 # interface LoopBack0 ip address 3.3.3.3 255.255.255.255 # interface Tunnel12 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 1.1.1.1 mpls te tunnel-id 200 mpls te record-route label mpls te signal-protocol rsvp-te mpls te path explicit-path to_csg mpls te backup hot-standby wtr 15 mpls te reserved-for-binding # bgp 100 graceful-restart peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack0 peer 4.4.4.4 as-number 100 peer 4.4.4.4 connect-interface LoopBack0 peer 5.5.5.5 as-number 100 peer 5.5.5.5 connect-interface LoopBack0 # ipv4-family unicast undo synchronization peer 2.2.2.2 enable peer 4.4.4.4 enable peer 5.5.5.5 enable # ipv4-family vpnv4 policy vpn-target peer 2.2.2.2 enable peer 4.4.4.4 enable peer 5.5.5.5 enable # ipv4-family vpn-instance vpna import-route direct # ospf 100 opaque-capability enable graceful-restart area 0.0.0.0 network 3.3.3.3 0.0.0.0 network 172.16.2.0 0.0.0.255 network 172.16.7.0 0.0.0.255 network 172.16.4.0 0.0.0.255 network 172.16.6.0 0.0.0.255 mpls-te enable # tunnel-policy policy1 tunnel binding destination 1.1.1.1 te Tunnel12 # bfd spoke bind pw vsi 1 peer 2.2.2.2 vc-id 8000 discriminator local 5 discriminator remote 5 commit # return
RSG1的配置文件
# sysname RSG1 # vlan batch 10 # ip vpn-instance vpna ipv4-family route-distinguisher 1:1 apply-label per-instance vpn frr vpn-target 1:1 export-extcommunity vpn-target 1:1 import-extcommunity # mpls lsr-id 4.4.4.4 mpls # mpls l2vpn # mpls ldp graceful-restart # interface Vlanif10 ip binding vpn-instance vpna ip address 10.0.1.1 255.255.255.0 vrrp vrid 1 virtual-ip 10.0.1.3 vrrp vrid 1 priority 150 # interface GigabitEthernet1/0/0 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet1/0/1 undo shutdown ip address 172.16.3.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet1/0/2 undo shutdown ip address 172.16.7.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet1/0/3 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface LoopBack0 ip address 4.4.4.4 255.255.255.255 # bgp 100 graceful-restart peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack0 peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack0 peer 5.5.5.5 as-number 100 peer 5.5.5.5 connect-interface LoopBack0 # ipv4-family unicast undo synchronization peer 2.2.2.2 enable peer 3.3.3.3 enable peer 5.5.5.5 enable # ipv4-family vpnv4 policy vpn-target peer 2.2.2.2 enable peer 3.3.3.3 enable peer 5.5.5.5 enable # ipv4-family vpn-instance vpna import-route direct # ospf 100 opaque-capability enable graceful-restart area 0.0.0.0 network 4.4.4.4 0.0.0.0 network 172.16.3.0 0.0.0.255 network 172.16.7.0 0.0.0.255 mpls-te enable # return
RSG2的配置文件
# sysname RSG2 # vlan batch 10 # ip vpn-instance vpna ipv4-family route-distinguisher 1:1 apply-label per-instance vpn frr vpn-target 11 export-extcommunity vpn-target 11 import-extcommunity # mpls lsr-id 5.5.5.5 mpls # mpls l2vpn # mpls ldp graceful-restart # interface Vlanif10 ip binding vpn-instance vpna ip address 10.0.1.2 255.255.255.0 vrrp vrid 1 virtual-ip 10.0.1.3 # interface GigabitEthernet1/0/0 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet1/0/1 undo shutdown ip address 172.16.6.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet1/0/2 undo shutdown ip address 172.16.8.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet1/0/3 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface LoopBack0 ip address 5.5.5.5 255.255.255.255 # bgp 100 graceful-restart peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack0 peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack0 peer 4.4.4.4 as-number 100 peer 4.4.4.4 connect-interface LoopBack0 # ipv4-family unicast undo synchronization peer 2.2.2.2 enable peer 3.3.3.3 enable peer 4.4.4.4 enable # ipv4-family vpnv4 policy vpn-target peer 2.2.2.2 enable peer 3.3.3.3 enable peer 4.4.4.4 enable # ipv4-family vpn-instance vpna import-route direct # ospf 100 opaque-capability enable graceful-restart area 0.0.0.0 network 5.5.5.5 0.0.0.0 network 172.16.8.0 0.0.0.255 network 172.16.6.0 0.0.0.255 mpls-te enable # return