BGP INTER-AS Option B Configuration and troubleshooting on Huawei routers
Martin Indeche
MPBN PACO SME Engineer at Nokia | IP | EBK | Msc Computer Science I Mentor
Last time I published an article on how to configure BGP Inter-AS Option A. You can check out the article from this link Option A Configuration on Huawei
Let's move a step further and explore how to configure BGP inter-AS option B on Huawei routers.
Quick facts about Inter-AS Option B:
Topology
Configuration Procedure
*************************************PE01************************
ip vpn-instance VRF1
ipv4-family
route-distinguisher 200:1
vpn-target 200:1 export-extcommunity
vpn-target 200:1 import-extcommunity
#
interface GigabitEthernet0/0/0
ip binding vpn-instance VRF1
ip address 10.10.10.2 255.255.255.254
#
***********************************PE02****************************
ip vpn-instance VRF1
ipv4-family
route-distinguisher 65000:1
vpn-target 200:1 export-extcommunity
vpn-target 200:1 import-extcommunity
#
interface GigabitEthernet0/0/1
ip binding vpn-instance VRF1
ip address 20.20.20.2 255.255.255.254
#
*******************************PE01**********************************
bgp 200
router-id 4.4.4.4
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
undo peer 4.4.4.4 enable
#
ipv4-family vpnv4
undo policy vpn-target
peer 4.4.4.4 enable
#
********************************ASBR01********************************
bgp 200
peer 2.2.2.2 as-number 200
peer 172.16.16.2 as-number 100
#
ipv4-family unicast
undo synchronization
undo peer 2.2.2.2 enable
undo peer 172.16.16.2 enable
#
ipv4-family vpnv4
undo policy vpn-target
peer 2.2.2.2 enable
peer 172.16.16.2 enable
#
************************************PE01*******************************
bgp 200
ipv4-family vpn-instance VRF1
network 50.50.50.50 255.255.255.255
#
***********************************Customer01***************************
bgp 65500
router-id 1.1.1.1
peer 10.10.10.2 as-number 200
#
ipv4-family unicast
undo synchronization
network 1.1.1.1 255.255.255.255
import-route direct
peer 10.10.10.2 enable
#
This is how simple it is to set up Inter-AS BGP Option B. The lab setup and all the configurations are available on demand. Ping me if you are interested in trying it out.
Electrical and Electronic graduate Engineer|| Telecoms major||HCIA certified|| JNCIA certified||CCNA certified || Network Engineer ||
1 年Learning alot from your articles Martin!
Optics NPI MEA Engineer at Nokia
1 年Great job