Installing and Administering Internet Services

Chapter 8 293
Configuring gated
Importing and Exporting Routes
Examples of import and export Statements
The following import statement imports an EGP route for network
195.1.1 to the gated forwarding table with a preference of 15:
import proto egp 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 example above. The
route was originally built by EGP and the destination of the route is
network 195.1.1.
export proto ospfase type 1 { /* Export an ASE route to OSPF */
proto egp as 1 { /* route came from EGP and AS 1 */
195.1.1 ; /* the route is to network 195.1.1 */
} ;
} ;