Mixed VPN is a bearer mode used by the IPTime MBB solution. This solution is a major solution for IP mobile backhaul (MBH) networks that Huawei builds.
The mixed VPN solution provides excellent FMC capabilities and adopts a simple and flexible networking scheme. The network between CSGs and RSGs is designed hierarchically to meet large-scale service bearer requirements.
CSGs are connected to form the access network, and ASGs and RSGs are connected to form the aggregation network. All these devices can be flexibly deployed to meet 2G, 3G, and LTE service bearer requirements. See Figure 1.
This example uses Virtual-Ethernet interface to configure L2VPN accessing L3VPN. As a VE interface is bound to only one board, when the board is faulty, services are interrupted. To improve service reliability, create two global virtual interfaces: Global-VE1 and Global-VE2. Global-VE1 is configured as an L2VE interface to terminate L2VPN services, and the Global-VE2 is configured as an L3VE interface to access an L3VPN network. Other configurations remain unchanged
H-VPLS (PWE3 accessing VPLS) or PWE3 can be used to deploy the L2VPN. This example uses Ethernet base stations and PWE3+L3VPN for service bearer. Figure 2 shows a simplified single-ring network. The current versions are used for networking. The configurations on the CSGs and ASGs are mainly described here.
Device |
Interface |
Peer Device |
IP Address |
---|---|---|---|
CSG |
GE0/1/1 |
ASG1 |
172.16.1.1/24 |
GE0/1/2 |
ASG2 |
172.16.4.1/24 |
|
GE0/1/3 |
NodeB |
- |
|
ASG1 |
GE0/1/0 |
ASG2 |
172.16.2.2/24 |
GE0/1/1 |
CSG |
172.16.1.2/24 |
|
GE0/1/3 |
RSG1 |
172.16.3.1/24 |
|
GE0/1/4 |
RSG2 |
172.16.8.1/24 |
|
ASG2 |
GE0/1/0 |
ASG1 |
172.16.2.1/24 |
GE0/1/2 |
CSG |
172.16.4.2/24 |
|
GE0/1/3 |
RSG2 |
172.16.6.1/24 |
|
GE0/1/4 |
RSG1 |
172.16.7.1/24 |
|
RSG1 |
GE0/1/0 |
RSG2 |
- |
GE0/1/1 |
ASG1 |
172.16.3.2/24 |
|
GE0/1/2 |
ASG2 |
172.16.7.2/24 |
|
GE0/1/3 |
RNC |
- |
|
RSG2 |
GE0/1/0 |
RSG1 |
- |
GE0/1/1 |
ASG2 |
172.16.6.2/24 |
|
GE0/1/2 |
ASG1 |
172.16.8.2/24 |
|
GE0/1/3 |
RNC |
- |
The configuration roadmap is as follows:
Configure IP addresses and routes.
Configure MPLS and public network tunnels. Specifically:
Configure PW redundancy in independent mode:
Configure an L3VPN.
Configure VRRP.
To complete the configuration, you need the following data.
Interface numbers, interface IP addresses, and OSPF process IDs
LSR IDs
L2VCs' destination IP addresses, VC IDs, and VC types
Names, local discriminators, and remote discriminators of BFD sessions
VE group number
Numbers and priorities of VRRP groups
After the configuration is complete, run the display ip routing-table command on the CSG, ASGs, and RSGs. These devices have learned routes from each other. Note that when configuring OSPF, you need to configure OSPF to advertise the 32-bit loopback interface addresses (LSR IDs) of the CSG, ASGs, and RSGs.
For configuration details, see Configuration Files in this section.
For configuration details, see Configuration Files in this section.
For configuration details, see Configuration Files in this section and "VRRP Configuration" located under NetEngine 8000 F Configuration Guide > Network Reliability.
For configuration details, see Configuration Files in this section and "VRRP Configuration" located under NetEngine 8000 F Configuration Guide > Network Reliability.
CSG configuration file
# sysname CSG # 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_sr1 next hop 172.16.1.2 next hop 2.2.2.2 # explicit-path to_sr2 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 GigabitEthernet0/1/1 undo shutdown ip address 172.16.1.1 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te hello # interface GigabitEthernet0/1/2 undo shutdown ip address 172.16.4.1 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te hello # interface GigabitEthernet0/1/3 undo shutdown # interface GigabitEthernet0/1/3.10 vlan-type dot1q 10 mpls l2vc 2.2.2.2 100 tunnel-policy policy1 control-word mpls l2vc 3.3.3.3 200 tunnel-policy policy1 secondary control-word mpls l2vpn redundancy independent mpls l2vpn stream-dual-receiving # 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 mpls te signal-protocol rsvp-te mpls te path explicit-path to_sr1 mpls te backup hot-standby wtr 15 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 mpls te signal-protocol rsvp-te mpls te path explicit-path to_sr2 mpls te backup hot-standby wtr 15 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 GigabitEthernet0/1/3.10 remote-peer 2.2.2.2 pw-ttl auto-calculate discriminator local 2 discriminator remote 2 commit # return
ASG1 configuration file
# 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 # 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 GigabitEthernet0/1/0 undo shutdown ip address 172.16.2.2 255.255.255.0 vrrp vrid 1 virtual-ip 172.16.2.3 admin-vrrp vrid 1 ignore-if-down vrrp vrid 1 priority 150 mpls mpls ldp # interface GigabitEthernet0/1/1 undo shutdown ip address 172.16.1.2 255.255.255.0 mpls mpls te mpls rsvp-te mpls rsvp-te hello # interface GigabitEthernet0/1/3 undo shutdown ip address 172.16.3.1 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/4 undo shutdown ip address 172.16.8.1 255.255.255.0 mpls mpls ldp # interface Virtual-Ethernet0/1/0 ve-group 1 l2-terminate # interface Virtual-Ethernet0/1/0.1 mpls l2vc 1.1.1.1 100 tunnel-policy policy1 ignore-standby-state mpls l2vc track admin-vrrp interface GigabitEthernet0/1/0 vrid 20 pw-redundancy # interface Virtual-Ethernet0/1/1 ve-group 1 l3-access # interface Virtual-Ethernet0/1/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 GigabitEthernet0/1/0 vrid 20 # interface LoopBack0 ip address 2.2.2.2 255.255.255.255 # interface LoopBack1 mpls l2vc 3.3.3.3 400 control-word admin # 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 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 enablef 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 pw1 bind pw interface virtual-ethernet0/1/0.1 discriminator local 2 discriminator remote 2 commit # return
ASG2 configuration file
# 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 # 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 GigabitEthernet0/1/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 GigabitEthernet0/1/1 undo shutdown # interface GigabitEthernet0/1/2 undo shutdown ip address 172.16.4.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet0/1/3 undo shutdown ip address 172.16.6.1 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/4 undo shutdown ip address 172.16.7.1 255.255.255.0 mpls mpls ldp # interface Virtual-Ethernet0/1/0 ve-group 1 l2-terminate # interface Virtual-Ethernet0/1/0.1 mpls mpls l2vc 1.1.1.1 200 tunnel-policy policy1 ignore-standby-state mpls l2vc track admin-vrrp interface GigabitEthernet0/1/0 vrid 20 pw-redundancy # interface Virtual-Ethernet0/1/1 ve-group 1 l3-access # interface Virtual-Ethernet0/1/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 GigabitEthernet0/1/0 vrid 20 # interface LoopBack0 ip address 3.3.3.3 255.255.255.255 # interface LoopBack1 mpls l2vc 2.2.2.2 400 control-word admin # 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 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 pw2 bind pw interface virtual-ethernet0/1/0.1 discriminator local 2 discriminator remote 2 commit # return
RSG1 configuration file
# 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 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 GigabitEthernet0/1/0 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet0/1/1 undo shutdown ip address 172.16.3.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/2 undo shutdown ip address 172.16.7.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/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 configuration file
# sysname RSG2 # vlan batch 10 # ip vpn-instance vpna ipv4-family route-distinguisher 11 apply-label per-instance vpn frr vpn-target 11 export-extcommunity vpn-target 11 import-extcommunity # mpls lsr-id 5.5.5.5 # 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 GigabitEthernet0/1/0 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet0/1/1 undo shutdown ip address 172.16.6.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/2 undo shutdown ip address 172.16.8.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/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