HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)
g
gated.conf(4) gated.conf(4)
OSPF ASE routes also have the provision to carry a tag. This is an arbitrary 32 bit number that can be
used on OSPF routers to filter routing information. See the OSPF protocol configuration for detailed infor-
mation on OSPF tags. The default tag specified by the ospf defaults clause may be overridden by a tag
specified on the export statement.
Specifying the source
The export list specifies export based on the origin of a route and the syntax varies depending on the
source.
Exporting BGP and EGP routes
proto bgp | egp autonomoussystem autonomous_system
restrict ;
proto bgp | egp autonomoussystem autonomous_system
[ metric metric ] {
route_filter [ restrict |(metric metric )];
};
BGP and EGP routes may be specified by source autonomous system. All routes may be exported by as
path, see below for more information.
Exporting RIP and HELLO routes
proto rip | hello
[(interface interface_list )|(gateway gateway_list )]
restrict ;
proto rip | hello
[(interface interface_list )|(gateway gateway_list )]
[ metric metric ] {
route_filter [ restrict |(metric metric )];
};
RIP and HELLO routes may be exported by protocol, source interface and/or source gateway.
Exporting OSPF routes
proto ospf | ospfase restrict ;
proto ospf | ospfase [ metric metric ] {
route_filter [ restrict |(metric metric )];
};
Both OSPF, and OSPF ASE routes may be exported into other protocols. See below for information on
exporting by tag.
Exporting routes from non-routing protocols
Non-routing with interface
proto direct | static | kernel
[(interface interface_list )]
restrict ;
proto direct | static | kernel
[(interface interface_list )]
[ metric metric ] {
route_filter [ restrict |(metric metric )];
};
These protocols may be exported by protocol, or by the interface of the next hop. These protocols are:
direct
Routes to directly attached interfaces.
static
Static routes specified in a static clause.
kernel
On systems with the routing socket, routes learned from the routing socket are installed in the
GateD routing table with a protocol of kernel. These routes may be exported by referencing this
protocol. This is useful when it is desirable to have a script install routes with the route com-
mand and propagate them to other routing protocols.
Section 4−−116 Hewlett-Packard Company − 47 − HP-UX 11i Version 1: September 2005