267
Router D has learned the route 20.0.0.0/8 from Router C.
BGP confederation configuration example
Network requirements
As shown in
, to reduce IBGP connections, AS 200 is split into three sub-ASs: AS65001,
AS65002, and AS65003. Routers in AS65001 are fully meshed.
Figure 68
Network diagram
Device Interface
IP
address
Device
Interface IP
address
Router A
Eth1/1
10.1.2.1/24
Router D
Eth1/1
10.1.5.1/24
Eth1/2
10.1.3.1/24
Eth1/2 10.1.3.2/24
Eth1/3
10.1.4.1/24
Router E
Eth1/1 10.1.5.2/24
Eth1/4
200.1.1.1/24
Eth1/2
10.1.4.2/24
Eth1/5
10.1.1.1/24
Router F
Eth1/1 9.1.1.1/24
Router B
Eth1/1
10.1.1.2/24
Eth1/2 200.1.1.2/24
Router
C
Eth1/1
10.1.2.2/24
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Configure the BGP confederation:
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 65001
[RouterA-bgp] router-id 1.1.1.1
[RouterA-bgp] confederation id 200
[RouterA-bgp] confederation peer-as 65002 65003
[RouterA-bgp] peer 10.1.1.2 as-number 65002
[RouterA-bgp] peer 10.1.2.2 as-number 65003
[RouterA-bgp] address-family ipv4 unicast
[RouterA-bgp-ipv4] peer 10.1.1.2 enable
[RouterA-bgp-ipv4] peer 10.1.2.2 enable
[RouterA-bgp-ipv4] peer 10.1.1.2 next-hop-local
Router F
Router A
Router D
Router E
AS 200
AS 100
Eth1/1
Router B
Router C
AS 65002
AS 65003
Eth1/2
Eth1/4
Eth1/5
Eth1/1
Eth1/1
Eth1/1
Eth1/2
Eth1/2
Eth1/2
Eth1/3
Eth1/1
Eth1/1
AS 65001