No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Mutual Access Between Local VPNs

Configuring Mutual Access Between Local VPNs

In Figure 45-1, enterprise A and enterprise B implement communication between their respective headquarters and branches through BGP/MPLS IP VPN. Headquarters of enterprise A and headquarters of enterprise B need to communicate with each other due to service requirements.

You can enable the BGP-VPNv4 address family on PE1, import direct routes to local CEs into the VPN routing table on PE1, and configure a static route to the other local CE on a CE to enable the CEs to communicate with each other.

Figure 45-1  Communication between local VPNs

# Configure VPN instances on PE1 to connect CEs to PE1.

<HUAWEI> system-view
[~HUAWEI] sysname PE1
[*HUAWEI] commit
[~PE1] ip vpn-instance vpna
[*PE1-vpn-instance-vpna] ipv4-family
[*PE1-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*PE1-vpn-instance-vpna-af-ipv4] vpn-target 111:1 export-extcommunity
[*PE1-vpn-instance-vpna-af-ipv4] vpn-target 111:1 222:2 import-extcommunity
[*PE1-vpn-instance-vpna-af-ipv4] quit
[*PE1-vpn-instance-vpna] quit
[*PE1] ip vpn-instance vpnb
[*PE1-vpn-instance-vpnb] ipv4-family
[*PE1-vpn-instance-vpnb-af-ipv4] route-distinguisher 100:2
[*PE1-vpn-instance-vpnb-af-ipv4] vpn-target 222:2 export-extcommunity
[*PE1-vpn-instance-vpnb-af-ipv4] vpn-target 222:2 111:1 import-extcommunity
[*PE1-vpn-instance-vpnb-af-ipv4] quit
[*PE1-vpn-instance-vpnb] quit
[*PE1] interface vlanif 10
[*PE1-Vlanif10] ip binding vpn-instance vpna
[*PE1-Vlanif10] ip address 24
[*PE1-Vlanif10] quit
[*PE1] interface vlanif 20
[*PE1-Vlanif20] ip binding vpn-instance vpnb
[*PE1-Vlanif20] ip address 24
[*PE1-Vlanif20] quit
[*PE1] commit
<HUAWEI> system-view
[~HUAWEI] sysname CE1
[*HUAWEI] commit
[~CE1] interface vlanif 10
[*CE1-Vlanif10] ip address 24
[*CE1-Vlanif10] commit
[~CE1-Vlanif10] quit
<HUAWEI> system-view
[~HUAWEI] sysname CE2
[*HUAWEI] commit
[~CE2] interface vlanif 20
[*CE2-Vlanif20] ip address 24
[*CE2-Vlanif20] commit
[~CE2-Vlanif20] quit

# Configure BGP, enable the BGP-VPNv4 address family, and import direct routes of local CEs to the VPN routing table on PE1.

[~PE1] bgp 100
[*PE1-bgp] ipv4-family vpnv4
[*PE1-bgp-af-vpnv4] quit
[*PE1-bgp] ipv4-family vpn-instance vpna
[*PE1–bgp-vpna] import-route direct
[*PE1–bgp-vpna] quit
[*PE1-bgp] ipv4-family vpn-instance vpnb
[*PE1–bgp-vpnb] import-route direct
[*PE1–bgp-vpnb] quit
[*PE1–bgp] quit
[*PE1] commit

# Configure static routes on CEs.

[~CE1] ip route-static 24
[*CE1] commit
[~CE2] ip route-static 24
[*CE2] commit
Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 195994

Downloads: 3214

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next