...
Code Block |
---|
|
/routing table add name=myTable fib
/routing rule add dst-address=8.8.8.8 action=lookup-only-in-table table=myTable
/ip route add dst-address=8.8.8.8 gateway=172.16.1.1@main routing-table=myTable |
Configuration Options
Property | Description |
---|
comment (string) |
|
disabled (yes | no) | ID reference is not used. |
fib() | Flag indicating whether routing table should add routes in the FIB. |
name (string) | Name of the routing table |
Read-only Properties
Property | Description |
---|
dynamic (yes | no) |
|
invalid (yes | no) |
|
used (yes | no) |
|
/routing/rule
Routing rule configuration.
Configuration Options
Property | Description |
---|
action (drop | lookup | lookup-only-in-table | unreachable) | An action to take on the matching packet: - drop - silently drop the packet.
- lookup - perform lookup in routing tables.
- lookup-only-in-table - perform lookup only in specified routing table (see table parameter).
- unreachable - generate ICMP unreachable message and send it back to the source.
|
comment (string) |
|
disabled (yes | no) | Disabled rule is not used. |
dst-address() | Destination address of the packet to match. |
interface (string) | Incoming interface to match. |
min-prefix (integer [0..4294967295]) |
|
routing-mark (string) |
|
src-address (string) | Source address of the packet to match. |
table (name) | Name of the routing table to use for lookup. |
Read Next
Page Tree |
---|
expandCollapseAll | true |
---|
root | Routing |
---|
|