112
AT-WR4500 Series - IEEE 802.11abgh Outdoor Wireless Routers
RouterOS v3 Configuration and User Guide
bgp-origin
(incomplete | igp | egp) - the origin of the route prefix
bgp-prepend
(
integer
: 0..16) - number which indicates how many times to prepend AS_NAME to
AS_PATH
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
pref-src
(
IP address
) - source IP address of packets, leaving router via this route
0.0.0.0
- pref-src is determined automatically
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
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
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@AT-WR4562] ip route> add dst-address=10.1.12.0/24 gateway=192.168.0.253
[admin@AT-WR4562] ip route> add gateway=10.5.8.1
[admin@AT-WR4562] 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
3 A S 0.0.0.0/0 r 10.5.8.1 Public
[admin@AT-WR4562] ip route>
5.4.3
Policy Rules
Submenu level:
/ip route rule
Property Description
action
(drop | unreachable | lookup; default:
unreachable
) - action to be processed on packets matched
by this rule:
drop
- silently drop packet
unreachable
- reply that destination host is unreachable
lookup
- lookup route in given routing table
dst-address
(
IP address mask
) - destination IP address/mask
interface
(
name
; default:
""
) - interface through which the gateway can be reached
routing-mark
(
name
; default:
""
) - mark of the packet to be mached by this rule. To add a routing mark,
use '/ip firewall mangle' commands
src-address
(
IP address mask
) - source IP address/mask
table
(
name
; default:
""
) - routing table, created by user