Sunteți pe pagina 1din 7

Manual:Routing/BGP

Manual:Routing/BGP
Applies to RouterOS: v3, v4 +

Summary
The Border Gateway Protocol (BGP) allows setting up an interdomain dynamic routing system that automatically updates routing tables of devices running BGP in case of network topology changes. MikroTik RouterOS supports BGP Version 4, as defined in RFC 4271 Standards and Technologies: RFC 4271 Border Gateway Protocol 4 RFC 4456 BGP Route Reflection RFC 5065 Autonomous System Confederations for BGP RFC 1997 BGP Communities Attribute RFC 2385 TCP MD5 Authentication for BGPv4 RFC 5492 Capabilities Advertisement with BGP-4 RFC 2918 Route Refresh Capability RFC 4760 Multiprotocol Extensions for BGP-4 RFC 2545 Use of BGP-4 Multiprotocol Extensions for IPv6 Inter-Domain Routing RFC 4893 BGP Support for Four-octet AS Number Space

Instance
Sub-menu: /routing bgp instance
Property as (integer: 0..4294967295; Default: ) 32-bit BGP autonomous system number Description

client-to-client-reflection (yes in case this instance is a route reflector: whether to redistribute routes learned from one routing | no; Default: yes) reflection client to other clients cluster-id (IP address;) in case this instance is a route reflector: cluster ID of the router reflector cluster this instance belongs to. This attribute helps to recognize routing updates that comes from another route reflector in this cluster and avoid routing information looping. Note that normally there is only one route reflector in a cluster; this case 'cluster-id' does not need to be configured and BGP router ID is used instead in case of BGP confederations: autonomous system number that identifies the [local] confederation as a whole in case of BGP confederations: list of BGP peers internal to the [local] confederation

confederation (integer: 0..4294967295;) confederation-peers (integer: 0..4294967295;)

ignore-as-path-len (yes | no; Default: whether to ignore AS_PATH attribute in BGP route selection algorithm no) name (string;) out-filter (string;) redistribute-connected (yes | no; Default: no) BGP instance name the output routing filter used by all BGP peers belonging to this instance if enabled, this BGP instance will redistribute the information about connected routes, i.e., routes to the networks that can be directly reached

Manual:Routing/BGP

2
if enabled, this BGP instance will redistribute the information about routes learned by OSPF

redistribute-ospf (yes | no; Default: no) redistribute-other-bgp (yes | no; Default: no) redistribute-rip (yes | no; Default: no) redistribute-static (yes | no; Default: no) router-id (IP address; Default: 0.0.0.0) routing-table (string; Default: )

if enabled, this BGP instance will redistribute the information about routes learned by other BGP instances if enabled, this BGP instance will redistribute the information about routes learned by RIP

if enabled, the router will redistribute the information about static routes added to its routing database, i.e., routes that have been created using the '/ip route add' command on the router the BGP Router ID (for this instance). If not specified, BGP will use one of router's IP addresses. Name of routing table this BGP instance operates on. Non-default routing-table and list of VRFs cannot be configured for the same instance at the same time. Available starting from v4.3 List of VRFs used for vpnv4 routes

vrf (string;)

Peer
Sub-menu: /routing bgp peer
Property address-families (ip | ipv6 | l2vpn | l2vpn-cisco | vpnv4; Default: ip) allowas-in (string;) as-override (yes | no;) If set, then all instances of remote peer's AS number in BGP AS PATH attribute are replaced with local AS number before sending route update to that peer. Happens before routing filters and prepending. specifies how to distribute default route Description list of address families about which this peer will exchange routing information. The remote peer must support (they usually do) BGP capabilities optional parameter to negotiate any other families than IP

default-originate (always | if-installed | never;) hold-time (time; Default: )

specifies the BGP Hold Time value to use when negotiating with peers. According to the BGP specification, if router does not receive successive KEEPALIVE and/or UPDATE and/or NOTIFICATION messages within the period specified in the Hold Time field of the OPEN message, then the BGP connection to the peer will be closed. The minimal hold-time value of both peers will be actually used (note that the special value 0 or 'infinity' is lower than any other values) infinity - never expire the connection and never send keepalive messages.

in-filter (string;) instance (string;)

name of the routing filter that is applied to the incoming routing information the instance this peer belongs to

interface (string | unspecified; Default: if specified, then outgoing connection will be made using only this interface; socket is directly bind to unspecified) specified interface. Important if you want to run BGP using IPv6 link-local addresses. Do not specify name of interface that is added as a bridge port here! max-prefix-limit (integer;) maximum number of prefixes to accept from a specific peer. When this limit is exceeded, TCP connection between peers is tear down minimum time interval after which peers can reestablish BGP session. infinity - session is not reestablished until administrator's intervention.

max-prefix-restart-time (time 1 minute .. 10 days | infinity; Default: infinity)

Manual:Routing/BGP

3
specifies whether the remote peer is more than one hop away. This option affects outgoing nexthop selection as described in RFC 4271 (for EBGP only, excluding EBGP peers local to the confederation). It also affects whether to accept connections from peers that are not in the same network (the remote address of the connection is used for this check); whether to accept incoming routes with NEXT_HOP attribute that is not in the same network as the address used to establish the connection; the target-scope of the routes installed from this peer; routes from multi-hop or IBGP peers resolve their nexthops through IGP routes by default.

multihop (yes | no; Default: no)

name (string;) nexthop-choice (default | force-self | propagate; Default: default)

the name of the peer Affects the outgoing NEXT_HOP attribute selection. Note that nexthops set in filters always takes precedence. Also note that nexthop is not changed on route reflection, expect when it's set in filter. default - select the nexthop as described in RFC 4271 force-self - always use a local address of the interface that used to connect to the peer as the nexthop; propagate - try to propagate further the nexthop received; i.e. if the route has BGP NEXT_HOP attribute, then use it as the nexthop, otherwise fall back to the default case

out-filter (string;)

name of the routing filter that is applied to the outgoing routing information, if instance has also configured out-filter, then first will be applied instance filters and only then peer's filters. If set to yes, then connection attempts to remote peer are not made. The remote peer must initialize connection in this case. Available starting from v4.3 address of the remote peer 32-bit AS number of the remote peer Remote peers port to establish tcp session

passive (yes | no;)

remote-address (IP address;) remote-as (integer: 0..4294967295;) remote-port (integer; Default: 179)

remove-private-as (yes | no; Default: If set, then if BGP AS PATH attribute contains only private AS numbers, the attribute is removed ) before sending out route update. The removing happens before routing filters are applied and before local AS number is prepended to the AS path. Available starting from v4.3 route-reflect (yes | no; Default: no) tcp-md5-key (string;) ttl (integer: 1..255 | default; Default: default) specifies whether this peer is route reflection client key used to authenticate the connection with TCP MD5 signature as described in RFC 2385 Time To Leave, the hop limit for TCP connection. For example, if 'ttl=1' then only single hop neighbors will be able to establish the connection. This property only affects EBGP peers. update-source (IP address | interface name;) default - system's default TTL value is used

If address is specified, this address is used as the source address of the outgoing TCP connection. If interface name is specified, an address belonging to the interface is used as described. This property is ignored, if the value specified is not a valid address of the router or name an interface with active addresses. Do not specify name of interface that is added as a bridge port here!

Read only status properties:

Manual:Routing/BGP

Property remote-id (IP address) local-address (IP address) uptime (time) prefix-count (integer) updates-sent (integer) updates-received (integer) withdrawn-sent (integer) withdrawn-received (integer) remote-hold-time (time) used-hold-time (time) used-keepalive-time (time) refresh-capability (yes | no) as4-capability (yes | no) used-keepalive-time (time)

Description BGP router ID of the remote end local address used for TCP connection how long the connection has been in established state number routing prefixes received from this peer currently in routing table total number of reachable routing prefixes advertised total number of reachable routing prefixes received total number of withdrawn routing prefixes advertised total number of withdrawn routing prefixes received hold time value offered by the remote end negotiated hold time value negotiated keepalive message interval (used-hold-time / 3)

set to yes if peer supports 4-byte AS numbers negotiated keepalive message interval (used-hold-time / 3)

state (idle | connect | active | opensent | openconfirm | established) BGP protocol state

Advertisements
Sub-menu: /routing bgp advertisements Read only information about outgoing routing information currently advertised. This information is calculated dynamically after 'print' command is issued. As a result, it may not correspond to the information that at the exact moment has been sent out. Especially if in case of slow connection, routing information prepared for output will spend long time in buffers. 'advertisements print' will show as things should be, not as they are!
Note: At the moment AS-PATH attribute for advertised routes is shown without prepends.

Property prefix (IP prefix) nexthop (IP address) as-path (string)

Description the NLRI prefix sent out the NEXT_HOP attribute value sent out the AS_PATH attribute value sent out

origin (igp | egp | incomplete) the ORIGIN attribute value sent out local-pref (integer) med (integer) the LOCAL_PREF attribute value sent out the MULTI_EXIT_DISC attribute value sent out

atomic-aggregate (yes | no) the ATOMIC_AGGREGATE attribute value sent out aggregator (IP address) the AGGREGATOR attribute value sent out

originator-id (IP address) the ORIGINATOR_ID attribute value sent out

Manual:Routing/BGP

5
cluster-list (string) peer (string) the CLUSTER_LIST attribute value sent out the peer this information is advertised to

Network
Sub-menu: /routing bgp network BGP network configuration. BGP Networks is a list of IP prefixes to be advertised.
Property network (IP prefix;) the aggregate prefix Description

synchronize (yes | no; Default: no) install a route for this network only when there is an active IGP route matching this network

Aggregate
Sub-menu: /routing bgp aggregate BGP allows the aggregation of specific routes into one route with. This menu ('/routing bgp aggregate') allows to specify which routes you want to aggregate, and what attributes to use for the route created by aggregation.
Property advertise-filter (string;) attribute-filter (string;) include-igp (yes | no; Default: ) Description name of the filter chain used to select the routes from which to inherit attributes name of the filter chain used to set the attributes of the aggregate route By default, BGP aggregate takes into account only BGP routes. Use this option to take IGP and connected routes into consideration. whether to inherit BGP attributes from aggregated routes

inherit-attributes (yes | no; Default: yes) instance (string;) prefix (IP prefix;) summary-only (yes | no; Default: yes) suppress-filter (string;)

the instance this network belongs to the aggregate prefix whether to suppress advertisements of all routes that fall within the range of this aggregate name of the filter chain used to select the routes to be suppressed

Read only status property:


routes-used (integer) aggregated route statistics. in console- list of route console IDs used; in winbox- number of routes used.

Terminology
aggregated routes - all routes, that fall within the range of this aggregate; they possibly are suppressed; aggregate route - route created by aggregation.
Note: Each aggregate will only affect routes coming from peers that belong to it's instance. suppress-filter is useful only if summary-only=no; advertise-filter is useful only if inherit-attributes=yes. If result attribute-filter match reject or discard, the aggregate route is not created.

Manual:Routing/BGP

Vpnv4 route
Sub-menu: /routing bgp vpnv4-route Read only information about vpnv4 routing information currently advertised.
Property bgp-as-path (string;) Description the AS_PATH attribute value

bgp-atomic-aggregate (string;) the ATOMIC_AGGREGATE attribute value bgp-communities (;) bgp-ext-communities (string;) bgp-local-pref (string;) bgp-med (string;) bgp-origin (igp|egp|incomplete;) bgp-prepend (string;) bgp-weight (string;) dst-address (string;) gateway (string;) in-label (integer;) interface (string;) out-label (integer;) route-distinguisher (string;) assigned MPLS out label assigned MPLS in label the LOCAL_PREF attribute value the MULTI_EXIT_DISC attribute value the ORIGIN attribute value

[Back to Content]

Article Sources and Contributors

Article Sources and Contributors


Manual:Routing/BGP Source: http://wiki.mikrotik.com/index.php?oldid=19807 Contributors: Janisk, Marisb, Route

Image Sources, Licenses and Contributors


Image:Version.png Source: http://wiki.mikrotik.com/index.php?title=File:Version.png License: unknown Contributors: Normis Image:Icon-note.png Source: http://wiki.mikrotik.com/index.php?title=File:Icon-note.png License: unknown Contributors: Marisb, Route

S-ar putea să vă placă și