Installing and Administering Internet Services

378 Chapter8
Configuring gated
Importing and Exporting Routes
Examples of import and export Statements
The following import statement imports an 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 toOSPF the ASE route that was
imported to the gated forwarding table in the example above. 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 */
} ;
} ;