Configuring gated

Importing and Exporting Routes

Examples of import and export Statements

The following import statement imports a BGP route for network 195.1.1 to the gated forwarding table with a preference of 15:

import proto bgp as 1 {

195.1.1 mask 0xffffff00 preference 15;

};

The following export statement exports to OSPF the ASE route that was imported to the gated forwarding table in the previous example. The route was originally built by BGP and the destination of the route is network 195.1.1.

export proto ospfase type 1 /* Export an ASE route to OSPF */ proto bgp as 1 {/*route came from BGP and AS 1*/ 195.1.1 ; /* the route is to network 195.1.1 */

};

};

98

Chapter 3