#
# Public Release 3
#
# $Id: bgp-ospf,v 1.2 1997/07/17 22:39:30 chopps Exp $
#
Date: Wed, 24 Feb 93 17:44:08 EST
From: "Anthony M. Gallo" <gallo@vnet.ibm.com>
To: jch@mitchell.cit.cornell.edu
Subject: Sample BGP/OSPF configuration

                                        P2P
                                         |
        Router ID = 19.1.1.18            |  OSPF Backbone (area 0.0.0.0)
        AS Number = 1019                 |
                                         |  BGP IGP
                                         |
       Network:            119.2.128.18  | 19.1.1.19
       119.2.128                   ______|______
   EN  ---------------------------|             |
       OSPF area 0.0.0.2          |             |      BGP External to AS 2021
                                  |   Router A  |--------------------- FR
       Network:                   |             | 21.1.1.21
       119.4.128                  |             |
   EN  ---------------------------|_____________|
       OSPF area 0.0.0.2   119.4.128.18





/etc/gated.conf
#####################################################################
interfaces { options all passive; };

autonomoussystem 1019;

routerid 19.1.1.18;

rip no;

hello no;

egp no;

bgp yes {
   preference 50;
   group type
      External peeras 2021
  {

         peer 21.5.1.21
              ;
 };
   group type
      IGP peeras 1019
  {

         peer 19.1.1.19
              ;
 };
};

ospf yes {
   area 0.0.0.2 {
      authtype none;
    networks {
       119.0.0.0 mask 255.0.0.0;
      };
   interface 119.2.128.18
      cost 1 {
        retransmitinterval 5;
        transitdelay 1;
        priority 1;
        hellointerval 10;
        routerdeadinterval 40;
      };
   interface 119.4.128.18
      cost 1 {
        retransmitinterval 5;
        transitdelay 1;
        priority 1;
        hellointerval 10;
        routerdeadinterval 40;
      };
   };
   backbone {
      authtype none;
   interface 19.1.1.19
      cost 1 {
        retransmitinterval 5;
        transitdelay 1;
        priority 1;
        hellointerval 60;
        routerdeadinterval 180;
      };
   };
};

export proto ospfase type 1  {
   proto bgp as 2021  {
      ALL
        metric 1;   };
   proto direct  {
      ALL
        metric 1;   };
};

export proto bgp as 2021 {
   proto direct  {
      ALL
        metric 1;   };
   proto ospfase  {
      ALL
        metric 1;   };
};

