beautypg.com

Westermo MR Series User Manual

Page 57

background image

57

6622-3201

Web Interface and Command Line Reference Guide

www.westermo.com

as number:local, where as-number is an AS number and local is a locally-significant number
between zero and 65535. Alternately, well-known communities may be specified by name:

NO_EXPORT, NO_ADVERTISE, NO_EXPORT_SUBCONFED, or NO_PEER.

localpref number

Set the LOCAL_PREF AS path attribute. If number starts with a plus or minus sign, LOCAL_
PREF will be adjusted by adding or subtracting number; otherwise it will be set to number.

med number

metric number

Set the MULTI_EXIT_DISC AS path attribute. If number starts with a plus or minus sign,
MULTI_EXIT_DISC will be adjusted by adding or subtracting number; otherwise it will be set to
number.

nexthop (address|blackhole|reject|self|no-modify)

Set the NEXTHOP AS path attribute to a different nexthop address or use blackhole or reject
routes. If set to no-modify, the nexthop attribute is not modified. Unless set to self, the nexthop
is left unmodified for IBGP sessions. self forces the nexthop to be set to the local interface
address.

set nexthop 192.168.0.1

set nexthop blackhole

set nexthop reject

set nexthop no-modify

set nexthop self

pftable table

Add the prefix in the update to the specified pf(4) table, regardless of whether or not the path
was selected for routing. This option may be useful in building realtime blacklists.

prepend-neighbor number

Prepend the neighbor’s AS number times to the AS path.

prepend-self number

Prepend the local AS number times to the AS path.

rtlabel label

Add the prefix with the specified label to the kernel routing table.

weight number

The weight is used to tip prefixes with equally long AS paths in one or the other direction. A
prefix is weighed at a very late stage in the decision process. If number starts with a plus or
minus sign, the weight will be adjusted by adding or subtracting number; otherwise it will be set
to number. Weight is a local non-transitive attribute and a bgp-specific extension.

Example bgp.conf

# sample bgp configuration file

#macros

peer1=”100.100.100.23”

# global configuration

AS 65001

router-id 100.100.100.20

holdtime 180

holdtime min 3

# fib-update no

# route-collector no

log updates

network inet static

network inet connected

neighbor 100.100.100.23 {

This manual is related to the following products: