![Huawei Quidway NetEngine40E Скачать руководство пользователя страница 215](http://html.mh-extra.com/html/huawei/quidway-netengine40e/quidway-netengine40e_configuration-manual-reliability_169453215.webp)
[NPE2-bgp-VPN2]
import-route direct
[NPE2-bgp-VPN2]
import-route ospf 200
[NPE2-bgp-VPN2]
quit
[NPE2-bgp]
quit
# Configure PE3.
[PE3]
ospf 100 vpn-instance VPN1
[PE3-ospf-100]
domain-id 10
[PE3-ospf-100]
import-route bgp
[PE3-ospf-100]
area 0
[PE3-ospf-100-area-0.0.0.0]
network 172.18.1.0 0.0.0.255
[PE3-ospf-100-area-0.0.0.0]
quit
[PE3-ospf-100]
quit
[PE3]
ospf 200 vpn-instance VPN2
[PE3-ospf-200]
domain-id 20
[PE3-ospf-200]
import-route bgp
[PE3-ospf-200]
area 0
[PE3-ospf-200-area-0.0.0.0]
network 172.19.1.0 0.0.0.255
[PE3-ospf-200-area-0.0.0.0]
quit
[PE3-ospf-200]
quit
[PE3]
bgp 100
[PE3-bgp]
ipv4-family vpn-instance VPN1
[PE3-bgp-VPN1]
import-route direct
[PE3-bgp-VPN1]
import-route ospf 100
[PE3-bgp-VPN1]
quit
[PE3-bgp]
ipv4-family vpn-instance VPN2
[PE3-bgp-VPN2]
import-route direct
[PE3-bgp-VPN2]
import-route ospf 200
[PE3-bgp-VPN2]
quit
[PE3-bgp]
quit
5.
Set up MP-IBGP peer relationships between the NPE and PE.
# Configure PE2.
[NPE1]
bgp 100
[NPE1-bgp]
peer 5.5.5.9 as-number 100
[NPE1-bgp]
peer 5.5.5.9 connect-interface loopback 1
[NPE1-bgp]
ipv4-family vpnv4
[NPE1-bgp-af-vpnv4]
peer 5.5.5.9 enable
[NPE1-bgp-af-vpnv4]
quit
# Configure NPE2.
[NPE2]
bgp 100
[NPE2-bgp]
peer 5.5.5.9 as-number 100
[NPE2-bgp]
peer 5.5.5.9 connect-interface loopback 1
[NPE2-bgp]
ipv4-family vpnv4
[NPE2-bgp-af-vpnv4]
peer 5.5.5.9 enable
[NPE2-bgp-af-vpnv4]
quit
# Configure PE3.
[PE3]
bgp 100
[PE3-bgp]
peer 3.3.3.9 as-number 100
[PE3-bgp]
peer 3.3.3.9 connect-interface loopback 1
[PE3-bgp]
peer 4.4.4.9 as-number 100
[PE3-bgp]
peer 4.4.4.9 connect-interface loopback 1
[PE3-bgp]
ipv4-family vpnv4
[PE3-bgp-af-vpnv4]
peer 3.3.3.9 enable
[PE3-bgp-af-vpnv4]
peer 4.4.4.9 enable
[PE3-bgp-af-vpnv4]
quit
After the configuration is complete, run the
display bgp peer
or
display bgp vpnv4 all
peer
command. You can view that the BGP peer relationship is set up between NPE and
PE, and it is in the Established status.
Take NPE1 as an example.
[NPE1]
display bgp peer
BGP local router ID : 3.3.3.9
HUAWEI NetEngine80E/40E Router
Configuration Guide - Reliability
4 VRRP Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
198