Configuration Roadmap
The configuration roadmap is as follows:
1.
Establish EBGP connections between Router A and Router B and between Router A and
Router C, and establish an IBGP connection between Router B and Router C.
2.
Apply a routing policy to increase the MED value of the route sent by Router B to
Router A so that Router A will send traffic to AS 65009 through Router C.
Data Preparation
To complete the configuration, you need the following data:
l
Router ID 1.1.1.1 and AS number 65008 of Router A
l
Router IDs 2.2.2.2 and 3.3.3.3, and AS numbers 65009 of Routers B and C respectively
l
New MED value 100 of the route on Router B
Procedure
Step 1
Configure an IP address for each interface. The configuration details are not provided here.
Step 2
Establish BGP connections.
# Configure Router A.
[RouterA]
bgp 65008
[RouterA-bgp]
router-id 1.1.1.1
[RouterA-bgp]
peer 200.1.1.1 as-number 65009
[RouterA-bgp]
peer 200.1.2.1 as-number 65009
[RouterA-bgp]
quit
# Configure Router B.
[RouterB]
bgp 65009
[RouterB-bgp]
router-id 2.2.2.2
[RouterB-bgp]
peer 200.1.1.2 as-number 65008
[RouterB-bgp]
peer 9.1.1.2 as-number 65009
[RouterB-bgp]
ipv4-family unicast
[RouterB-bgp-af-ipv4]
network 9.1.1.0 255.255.255.0
[RouterB-bgp-af-ipv4]
quit
[RouterB-bgp]
quit
# Configure Router C.
[RouterC]
bgp 65009
[RouterC-bgp]
router-id 3.3.3.3
[RouterC-bgp]
peer 200.1.2.2 as-number 65008
[RouterC-bgp]
peer 9.1.1.1 as-number 65009
[RouterC-bgp]
ipv4-family unicast
[RouterC-bgp-af-ipv4]
network 9.1.1.0 255.255.255.0
[RouterC-bgp-af-ipv4]
quit
[RouterC-bgp]
quit
# View the routing table of Router A.
[RouterA]
display bgp routing-table 9.1.1.0 24
BGP local router ID : 1.1.1.1
Local AS number : 65008
Paths: 2 available, 1 best, 1 select
BGP routing table entry information of 9.1.1.0/24:
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
8 BGP Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
975