BGP Confederations Technote

This technote is  an example: NOT a complete BGP routing configuration. WFH 8/20/99 (UPDATED)


Router Diagram

--------------------------
         +------------+  |        |  +------------+
  AS     |Router 1    |  |        |  |Router 2    | AS
 9966    |172.16.96.76|  |        |  |10.200.10.3 | 8855
         +------------+  |        |  +------------+
                   /     |        |     /
--------------------------        ----------------------
                 /                    /
           EBGP /               EBGP /
               /                    /
---------------------------------------------------------
              /     AS 9009       /
+------------+ Peer between   +-------------+
|Router 3    |   Conf.        |Router 4     |
|192.168.10.5|----------------|192.168.10.8 |
| CMA 1105   |                | CMA 1108    |
+------------+                +-------------+
      |                              |
      | IBGP                    IBGP |
      |                              |
+------------+                +-------------+          
|Router 5    |                |Router 6     |
|192.168.10.6|                |192.168.10.10|
| CMA 1105   |                | CMA 1108    |
+------------+                +-------------+
  1. Verify that  all routers that are going to run Border Gateway Protocol (BGP) have 16 MB of memory and issue the following commands:
  2. Command> set bgp enable
    Command> save all
    Command> reboot

  3. The Autonomous System  (AS) for this example will be 9009 . Issue the following commands on all BGP routers:
  4. Command>  set bgp id <IP number of ether0>
    Command> set bgp as 9009
    Command> save all
    Command> reset bgp

  5. Set up the EXTERNAL peering to the two different providers.

  6. Router 192.168.10.5 will receive  feed from 172.16.96.76 AS 9966 and router 192.168.10.8 will receive  feed from 10.200.10.3 AS 8855 .

    Set up the peers to these routers with the following commands:

    On 192.168.10.5:
    Command> add bgp peer 192.168.10.5 172.16.96.76 9966 accept all inject all advertise all
    Command> save all

    On 192.168.10.8:
    Command> add bgp peer 192.168.10.8 10.200.10.3 8855 accept all inject all advertise all
    Command> save all

  7. Set up two separate Confederations with two routers each. One confederation will consist of routers 192.168.10.5 and 192.168.10.6 called  CMA 1105. The other confederation will consist of routers 192.168.10.8 and 192.168.10.10 called CMA 1108 .
  8. On routers 192.168.10.5 and 192.168.10.6:
    Command> set bgp confederation-member-as 1105
    Command> save all
    Command> reset bgp

    On routers 192.168.10.8 and 192.168.10.10:
    Command> set bgp confederation-member-as 1108
    Command> save all
    Command> reset bgp

  9. Set up a peer between the 2 confederations. When peering between two confederations use the CMA of the router you are peering with and specify confederation-member in the peering command.
  10. On router 192.168.10.5:
     Command> add bgp peer 192.168.10.5 192.168.10.8 1108 accept all inject all advertise all confederation-member

    On router 192.168.10.8:
    Command> add bgp peer 192.168.10.8 192.168.10.5 1105 accept all inject all advertise all confederation-member

  11. Set up the INTERNAL confederation peers. There are two INTERNAL peers that need to be set up. See the set up commands below.
  12. CMA 1105
    On router 192.168.10.5:
    Command> add bgp peer 192.168.10.5 192.168.10.6 1105 accept all inject all advertise all confederation-member

    On router 192.168.10.6:
    Command> add bgp peer 192.168.10.6 192.168.10.5 1105 accept all inject all advertise all confederation-member

    CMA 1108
    On router 192.168.10.8:
    Command> add bgp peer 192.168.10.8 192.168.10.10 1108 accept all inject all advertise all confederation-member

    On router 192.168.10.10:
    Command> add bgp peer 192.168.10.10 192.168.10.8 1108 accept all inject all advertise all confederation-member

  13. Use the following commands to add summarizations for internal routes that are to be advertised to your providers:
  14. On 192.168.10.5:
    Command> add bgp summarization 192.168.10.0/24 as 9966
    Command> add bgp summarization 192.168.20.0/24 as 9966

    On 192.168.10.8:
    Command> add bgp summmarization 192.168.10.0/24 as 8855
    Command> add bgp summarization 192.168.20.0/24 as 8855