Technical data

Gateway Routing Daemon (GATED) Configuration Reference
A.19 Sample Host Configurations
A.19.2 Sample BGP and OSPF Configuration
The following sample implements the transformation of distance metrics between
the internal (OSPF) and external (BGP) protocols. Autonomous system 1019, of
which GATED is a member, contains network 19.0.0.0. The GATED machine has
several interfaces into this autonomous system. The GATED daemon is using
BGP to peer with AS 2021, neighbor 21.5.1.21.
###################
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;
hello interval 10;
routerdeadinterval 40;
};
interface 119.4.128.18
cost 1 {
retransmitinterval 5;
transitdelay 1;
priority 1;
hellointerval 60;
routerdeadinterval 180;
};
};
A–46 Gateway Routing Daemon (GATED) Configuration Reference