BGP/Examples/Example 2:Two routers with two peers

From ImageStream Router Documentation

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
foo
+
This is meant to be an example, and not a complete BGP (Border Gateway Protocol) routing configuration.
 +
 
 +
 +
Router Diagram
 +
---------------------------        ------------------------
 +
|        +------------+  |        |  +------------+      |
 +
|  AS    |Router 1    |  |        |  |Router 2    | AS  |
 +
| 9966    |172.16.96.76|  |        |  |10.200.10.3 | 8855 |
 +
|        +------------+  |        |  +------------+      |
 +
|                  /      |        |      |              |
 +
---------------------------        ------------------------
 +
                /                        |
 +
          EBGP /        |----------------|     
 +
              /        |      EBGP     
 +
---------------------------------------------------------
 +
              /  AS 9009 |   
 +
+------------+ ----------|
 +
|Main Router |
 +
|192.168.10.5|
 +
+------------+
 +
      |                               
 +
      | IBGP           
 +
      |               
 +
+------------+                     
 +
|2nd  Router |
 +
|192.168.10.6|-----------|         
 +
+------------+          |
 +
    \            AS 9009 |   
 +
---------------------------------------------------------
 +
      \                  |    EBGP
 +
      \ EBGP            |----------------|
 +
        \                                |
 +
        \                                |
 +
---------------------------        --------------------------
 +
|          \              |        |                        |
 +
|        +------------+  |        |  +-------------+      |
 +
|  AS    |Router 5    |  |        |  |Router 6    | AS    |
 +
| 35000  |2.1.1.1    |  |        |  |191.255.40.5 | 40000 |
 +
|        +------------+  |        |  +-------------+      |
 +
---------------------------        --------------------------
 +
 
 +
Ensure that all routers running BGP have at least 192 MB of memory. Remember to save your configurations to flash whenever you are finished configuring your dynamic routing setup! To enable BGP, do the following:
 +
At the Login: prompt, enter root.
 +
At the Password: prompt, enter your password.
 +
Choose Option 1 (Configuration and Update Menu) from the Main Menu. Select Option 3 (Service Configuration).
 +
From the Service Configuration menu, you can see the status of the Dynamic routing (gated) package. If gated is running, the option will show "(running)".
 +
To start gated, choose Option 3 (Dynamic routing) and choose Option 5 (Start gated) from the Dynamic routing menu. You will also want to select Option 3 (Enable gated on boot) to ensure that BGP session will be established at boottime. Ensure that you have configured gated prior to attempting to start it. Unless it is properly configured, gated will not start.
 +
In our example above, we will be configuring the "Main Router". From the Dynamic routing menu, choose Option 1 (gated configuration). Our AS for this example will be 9009. Choose Option 4 (Configure BGP) from the menu. This will open a file in your default editor.
 +
Edit the "autonomoussystem" parameter. In this case, our AS number is 9009:
 +
Edit the first "External peeras" section
 +
Add additional sections for each external and internal peer
 +
The completed file for our example should look like this:

Revision as of 21:41, 31 May 2008

This is meant to be an example, and not a complete BGP (Border Gateway Protocol) routing configuration.


Router Diagram


------------------------

| +------------+ | | +------------+ | | AS |Router 1 | | | |Router 2 | AS | | 9966 |172.16.96.76| | | |10.200.10.3 | 8855 | | +------------+ | | +------------+ | | / | | | |


------------------------
                /                        |
          EBGP /        |----------------|       
              /         |      EBGP       

             /  AS 9009 |     

+------------+ ----------| |Main Router | |192.168.10.5| +------------+

     |                                 
     | IBGP            
     |                

+------------+ |2nd Router | |192.168.10.6|-----------| +------------+ |

   \            AS 9009 |     

     \                  |     EBGP
      \ EBGP            |----------------|
       \                                 |
        \                                |

--------------------------

| \ | | | | +------------+ | | +-------------+ | | AS |Router 5 | | | |Router 6 | AS | | 35000 |2.1.1.1 | | | |191.255.40.5 | 40000 | | +------------+ | | +-------------+ |


--------------------------
Ensure that all routers running BGP have at least 192 MB of memory. Remember to save your configurations to flash whenever you are finished configuring your dynamic routing setup! To enable BGP, do the following: 

At the Login: prompt, enter root. At the Password: prompt, enter your password. Choose Option 1 (Configuration and Update Menu) from the Main Menu. Select Option 3 (Service Configuration). From the Service Configuration menu, you can see the status of the Dynamic routing (gated) package. If gated is running, the option will show "(running)". To start gated, choose Option 3 (Dynamic routing) and choose Option 5 (Start gated) from the Dynamic routing menu. You will also want to select Option 3 (Enable gated on boot) to ensure that BGP session will be established at boottime. Ensure that you have configured gated prior to attempting to start it. Unless it is properly configured, gated will not start.

In our example above, we will be configuring the "Main Router". From the Dynamic routing menu, choose Option 1 (gated configuration). Our AS for this example will be 9009. Choose Option 4 (Configure BGP) from the menu. This will open a file in your default editor. 

Edit the "autonomoussystem" parameter. In this case, our AS number is 9009: Edit the first "External peeras" section Add additional sections for each external and internal peer

The completed file for our example should look like this:
Personal tools
Router software releases