![MikroTik RouterOS v2.9 Скачать руководство пользователя страница 146](http://html1.mh-extra.com/html/mikrotik/routeros-v2-9/routeros-v2-9_reference-manual_1794644146.webp)
atomic-aggregate ( yes | no ) - BGP attribute. An indication to receiver that it cannot "deaggregate"
the prefix
check-gateway ( arp | ping ; default: ping ) - which protocol to use for gateway reachability
distance ( integer : 0 ..255 ) - administrative distance of the route. When forwarding a packet, the
router will use the route with the lowest administrative distance and reachable gateway
dst-address ( IP address | netmask ; default: 0.0.0.0/0 ) - destination address and network mask,
where netmask is number of bits which indicate network number. Used in static routing to specify
the destination which can be reached, using a gateway
• 0.0.0.0/0 - any network
gateway ( IP address ) - gateway host, that can be reached directly through some of the interfaces.
You can specify multiple gateways separated by a comma "," for ECMP routes
local-pref ( integer ) - local preference value for a route
med ( integer ) - a BGP attribute, which provides a mechanism for BGP speakers to convey to an
adjacent AS the optimal entry point into the local AS
origin ( incomplete | igp | egp ) - the origin of the route prefix
prefsrc ( IP address ) - source IP address of packets, leaving router via this route
• 0.0.0.0 - prefsrc is determined automatically
prepend ( integer : 0 ..16 ) - number which indicates how many times to prepend AS_NAME to
AS_PATH
routing-mark ( name ) - a mark for packets, defined under /ip firewall mangle. Only those packets
which have the according routing-mark, will be routed, using this gateway. With this parameter we
provide policy based routing
scope ( integer : 0 ..255 ) - a value which is used to recursively lookup the nexthop addresses.
Nexthop is looked up only through routes that have scope <= target-scope of the nexthop
target-scope ( integer : 0 ..255 ) - a value which is used to recursively lookup the next-hop
addresses. Each nexthop address selects smallest value of target-scope from all routes that use this
nexthop address. Nexthop is looked up only through routes that have scope <= target-scope of the
nexthop
Notes
You can specify more than one or two gateways in the route. Moreover, you can repeat some routes
in the list several times to do a kind of cost setting for gateways.
Example
To add two static routes to networks 10.1.12.0/24 and 0.0.0.0/0 (the default destination address) on
a router with two interfaces and two IP addresses:
[admin@MikroTik] ip route> add dst-address=10.1.12.0/24 gateway=192.168.0.253
[admin@MikroTik] ip route> add gateway=10.5.8.1
[admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
#
DST-ADDRESS
G GATEWAY
DISTANCE INTERFACE
0 A S 10.1.12.0/24
r 192.168.0.253
Local
1 ADC 10.5.8.0/24
Public
2 ADC 192.168.0.0/24
Local
Page 132 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
Содержание RouterOS v2.9
Страница 1: ...MikroTik RouterOS v2 9 Reference Manual ...