HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)
r
ramd.conf(4) ramd.conf(4)
Local Preference (LP) for BGP
bgpd uses the defaultlocalpref
configuration statement to set the preference value:
defaultlocalpref
preference-value
;
where preference-value specifies the default LP value.
The BGP section in the RAMD configuration file specifies the value for local preference attribute.
bgpd
uses the localpref configuration to set preference value based on autonomous system (AS) number, AS
path or prefix. Routes with higher local preference value is preferred to those with a low preference value.
localpref configuration statement overrides the
defaultlocalpref configuration statement.
The syntax of the
localpref configuration statement is as follows:
localpref {
[as asnum]
[prefix prefixlength]
[
aspath aslist]
[dir (in|out)]
pref preference-value
[override|inherit];
};
where:
as asnum Specifies the local preference value for the routes from the remote autonomous system
(AS). Applicable only for the in direction.
prefix prefixlength Specifies the local preference value for the route prefix.
aspath aslist Specifies the local preference values for the AS path list.
dir (in|out) Specifies the local preference value for the incoming or outgoing routes. By default,
bgpd specifies the local preference value for the incoming routes.
pref preference-value
Specifies the value for local preference (LP).
override|inherit
Specifies that the local preference value must override or inherit the LP value in the
incoming updates. By default, this is inherit.
Multi Entry/Exit Discriminator (MED) for BGP
bgpd uses the defaultmetric
configuration to set the metric value:
defaultmetric metricvalue;
where metricvalue specifies the default metric value.
For BGP external peers, the metric value can be used to specify the preferred path to enter or exit in the
same autonomous system (AS). bgpd sends the specified metric value in its update messages.
bgpd uses
the
metric statement to set metric value based on AS, AS path, route prefix, or directions.
bgpd uses
Multi Entry or Exit Discriminator (MED) to convey the preferred path to an AS, where lower MED value is
preferred over higher MED value. By default, MED is disabled.
The syntax of the
metric configuration statement is as follows:
metric {
[as asnum]
[prefix prefixlength]
[aspath aslist]
[dir (in| out)]
metricvalue metricvalue
[override|inherit];
};
where the following means:
as asnum Specifies the MED value to assign for routes from the peer in the specified auto-
nomous system (AS).
HP-UX 11i Version 3: February 2007 − 15 − Hewlett-Packard Company 353