Routing: Difference between revisions

From Teltonika Networks Wiki
 
(18 intermediate revisions by the same user not shown)
Line 10: Line 10:
[[Image:Network routing static routes.PNG]]
[[Image:Network routing static routes.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | FIELD NAME
        <th>field name</th>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | VALUE
      <th>value</th>
! style="width: 579px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
      <th>description</th>
|-
    </tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Routing table
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Main {{!}} WAN {{!}} WAN2 {{!}} WAN3; Default: '''WAN'''
      <td>Routing table</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Defines which table will be used for the route in question
      <td>Main {{!}} WAN {{!}} WAN2 {{!}} WAN3; Default: '''WAN'''</td>
|-
      <td>Defines which table will be used for the route in question</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Interface
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | LAN {{!}} WAN(wired) {{!}} WAN2(Mobile) {{!}} WAN3(WiFi) {{!}} VPN instances; Default: '''WAN(wired)'''
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The zone where the target network resides
      <td>Interface</td>
|-
      <td>LAN {{!}} WAN(wired) {{!}} WAN2(Mobile) {{!}} WAN3(WiFi) {{!}} VPN instances; Default: '''WAN(wired)'''</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Destination address'''*'''
      <td>The zone where the target network resides</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | ip; Default: '''0.0.0.0'''
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The address of the destination network
    <tr>
|-
    <td>Destination address'''*'''</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Netmask'''*'''
        <td>ip; Default: '''0.0.0.0'''</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | ip; Default: '''0.0.0.0'''
        <td>The address of the destination network</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | A Mask that is applied to the Target to determine to what actual IP addresses the routing rule applies
    </tr>
|-
    <tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Gateway
    <td>Netmask'''*'''</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | ip; Default: " "
        <td>ip; Default: '''0.0.0.0'''</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Defines where the router should send all the traffic that applies to the rule
        <td>A Mask that is applied to the Target to determine to what actual IP addresses the routing rule applies</td>
|-
    </tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Metric
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | integer; Default: '''0'''
    <td>Gateway</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The '''Metric''' value is used as a sorting measure. If a packet about to be routed fits two rules, the one with the higher metric is applied
        <td>ip; Default: " "</td>
|-
        <td>Defines where the router should send all the traffic that applies to the rule</td>
|}
    </tr>
    <tr>
    <td>Metric</td>
        <td>integer; Default: '''0'''</td>
        <td>The '''Metric''' value is used as a sorting measure. If a packet about to be routed fits two rules, the one with the higher metric is applied</td>
    </tr>
</table>


'''*Additional notes on Destination & Netmask:'''
'''*Additional notes on Destination & Netmask:'''


You can define a rule that applies to a single IP like this: Destination - some IP; Netmask - 255.255.255.255. Furthermore, you can define a rule that applies to a segment of IPs like this: Destination – some IP that STARTS some segment; Netmask – Netmask that defines how large the segment is. e.g.:
You can define a rule that applies to a single IP like this: Destination - some IP; Netmask - 255.255.255.255. Furthermore, you can define a rule that applies to a segment of IPs like this: Destination – some IP that STARTS some segment; Netmask – Netmask that defines how large the segment is. e.g.:
{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 200px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | IP
        <th>field name</th>
! style="width: 200px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | NETMASK
      <th>value</th>
! style="width: 350px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
      <th>description</th>
|-
    </tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 192.168.55.161
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 255.255.255.255
      <td>192.168.55.161</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Only applies to 192.168.55.161'''
      <td>255.255.255.255</td>
|-
      <td>Only applies to 192.168.55.161'''</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 192.168.55.0
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 255.255.255.240
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Applies to IPs in the 192.168.55.0 - 192.168.55.255
      <td>192.168.55.0</td>
|-
      <td>255.255.255.240</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 192.168.55.240
      <td>Applies to IPs in the 192.168.55.0 - 192.168.55.255</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 255.255.255.240
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 192.168.55.240 - 192.168.55.255
    <tr>
|-
    <td>192.168.55.240</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 192.168.55.161
        <td>255.255.255.240</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 255.255.255.0
        <td>192.168.55.240 - 192.168.55.255</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 192.168.55.0 - 192.168.55.255
    </tr>
|-
    <tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 192.168.0.0
    <td>192.168.55.161</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 255.255.0.0
        <td>255.255.255.0</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 192.168.0.0 - 192.168.255.255
        <td>192.168.55.0 - 192.168.55.255</td>
|-
    </tr>
|}
    <tr>
    <td>192.168.0.0</td>
        <td>255.255.0.0</td>
        <td>192.168.0.0 - 192.168.255.255</td>
    </tr>
</table>


===Static ARP entries===
===Static ARP entries===
Line 91: Line 102:
[[Image:Network routing dynamic routes bgp general.PNG]]
[[Image:Network routing dynamic routes bgp general.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | FIELD NAME
        <th>field name</th>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | VALUE
      <th>value</th>
! style="width: 579px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
      <th>description</th>
|-
    </tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Enable
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Toggles the BGP protocol ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles the BGP protocol ON or OFF</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Enable vty
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | yes {{!}} no; Default: '''no'''
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Toggles vty access from LAN ON or OFF
      <td>Enable vty</td>
|-
      <td>yes {{!}} no; Default: '''no'''</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Import config
      <td>Toggles vty access from LAN ON or OFF</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | -
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Uploads an external BGP configuration
    <tr>
|-
    <td>Import config</td>
|}
        <td>-</td>
        <td>Uploads an external BGP configuration</td>
    </tr>
</table>


====BGP Instance====
====BGP Instance====
Line 116: Line 130:
[[Image:Network routing dynamic routes bgp instance.PNG]]
[[Image:Network routing dynamic routes bgp instance.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | FIELD NAME
        <th>field name</th>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | VALUE
      <th>value</th>
! style="width: 579px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
      <th>description</th>
|-
    </tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Enable
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Toggles the BGP instance ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles the BGP instance ON or OFF</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | AS
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | integer: " "
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | AS number is an identification of an autonomous system. BGP protocol uses the AS number for detecting whether the BGP connection is an internal one or external one. '''[Required]'''
      <td>AS</td>
|-
      <td>integer: " "</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | BGP router ID
      <td>AS number is an identification of an autonomous system. BGP protocol uses the AS number for detecting whether the BGP connection is an internal one or external one. '''[Required]'''</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | string; Default: " "
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The router id is used by BGP to identify the routing device from which a packet originated. Default router ID value is selected as the largest IP Address of the interface.
    <tr>
|-
    <td>BGP router ID</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Network
        <td>string; Default: " "</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | string; Default: " "
        <td>The router id is used by BGP to identify the routing device from which a packet originated. Default router ID value is selected as the largest IP Address of the interface.</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Add an announcement network(s)
    </tr>
|-
    <tr>
|}
    <td>Network</td>
        <td>string; Default: " "</td>
        <td>Add an announcement network(s)</td>
    </tr>
</table>


====BGP Peers====
====BGP Peers====
Line 145: Line 163:
[[Image:Network routing dynamic routes bgp peers.PNG]]
[[Image:Network routing dynamic routes bgp peers.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | FIELD NAME
        <th>field name</th>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | VALUE
      <th>value</th>
! style="width: 579px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
      <th>description</th>
|-
    </tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Enable
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Toggles the BGP peer ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles the BGP peer ON or OFF</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Remote AS
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | integer: " "
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Neighbour's remote AS
      <td>Remote AS</td>
|-
      <td>integer: " "</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Remote address
      <td>Neighbour's remote AS</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | ip; Default: " "
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Neighbour's remote IPv4 address
    <tr>
|-
    <td>Remote address</td>
|}
        <td>ip; Default: " "</td>
        <td>Neighbour's remote IPv4 address</td>
    </tr>
</table>


====Access List Filters====
====Access List Filters====
Line 170: Line 191:
[[Image:Network routing dynamic routes bgp access list filters.PNG]]
[[Image:Network routing dynamic routes bgp access list filters.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | FIELD NAME
        <th>field name</th>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | VALUE
      <th>value</th>
! style="width: 579px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
      <th>description</th>
|-
    </tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Enable
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Toggles the Access filter ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles the Access filter ON or OFF</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Peer
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | bgp peer; Default: '''first peer on list'''
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Applies the rule for the specified peer
      <td>Peer</td>
|-
      <td>bgp peer; Default: '''first peer on list'''</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Action
      <td>Applies the rule for the specified peer</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Permit {{!}} Deny; Default: '''Permit'''
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Denies or permits matched entry
    <tr>
|-
    <td>Action</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Network
        <td>Permit {{!}} Deny; Default: '''Permit'''</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Any {{!}} ip; Default: '''Any'''
        <td>Denies or permits matched entry</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Applies filter rule for this source network
    </tr>
|-
    <tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Direction
    <td>Network</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Inbound {{!}} Outbound; Default: '''Inbound'''
        <td>Any {{!}} ip; Default: '''Any'''</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | If direction is '''Inbound''', the access list is applied to input routes. If direction is '''Outbound''' the access list is applied to advertised routes
        <td>Applies filter rule for this source network</td>
|-
    </tr>
|}
    <tr>
    <td>Direction</td>
        <td>Inbound {{!}} Outbound; Default: '''Inbound'''</td>
        <td>If direction is '''Inbound''', the access list is applied to input routes. If direction is '''Outbound''' the access list is applied to advertised routes</td>
    </tr>
</table>


===RIP Protocol===
===RIP Protocol===
Line 207: Line 233:
[[Image:Network routing dynamic routes rip general.PNG]]
[[Image:Network routing dynamic routes rip general.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | FIELD NAME
        <th>field name</th>
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | VALUE
      <th>value</th>
! style="width: 579px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
      <th>description</th>
|-
    </tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Enable
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Toggles RIP Protocol ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles RIP Protocol ON or OFF</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Enable vty
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | yes {{!}} no; Default: '''no'''
    <tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Toggles vty access from LAN ON or OFF
      <td>Enable vty</td>
|-
      <td>yes {{!}} no; Default: '''no'''</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Import config
      <td>Toggles vty access from LAN ON or OFF</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | -
    </tr>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Uses imported RIP configurations
    <tr>
|-
    <td>Import config</td>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Version
        <td>-</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 2 {{!}} 1; Default: '''2'''
        <td>Uses imported RIP configurations</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Specifies the version of RIP
    </tr>
|-
    <tr>
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Neighbor
    <td>Version</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | ip; Default: " "
        <td>2 {{!}} 1; Default: '''2'''</td>
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Neighbour IP address
        <td>Specifies the version of RIP</td>
|-
    </tr>
|}
    <tr>
    <td>Neighbor</td>
        <td>ip; Default: " "</td>
        <td>Neighbour IP addres</td>
    </tr>
</table>


====RIP Interfaces====
====RIP Interfaces====
Line 240: Line 271:
[[Image:Network routing dynamic routes rip rip interfaces.PNG]]
[[Image:Network routing dynamic routes rip rip interfaces.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; background: black; color: white;"  | Field name
        <th>field name</th>
! style="width: 250px; background: black; color: white;"  | Value
      <th>value</th>
! style="width: 1200px; background: black; color: white;" | Description
      <th>description</th>
|-
    </tr>
! style="text-align: left; vertical-align: top;" | Enable
    <tr>
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="text-align: left; vertical-align: top;" | Toggles RIP Interface ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles RIP Interface ON or OFF</td>
! style="text-align: left; vertical-align: top;" | Interface
    </tr>
| style="text-align: left; vertical-align: top;" | network interface; Default: '''lo'''
    <tr>
| style="text-align: left; vertical-align: top;" | Network interface to be used with the RIP interface
      <td>Interface</td>
|-
      <td>network interface; Default: '''no'''</td>
! style="text-align: left; vertical-align: top;" | Passive interface
      <td>Network interface to be used with the RIP interface</td>
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
    </tr>
| style="text-align: left; vertical-align: top;" | Sets the specified interface to passive mode. On passive mode interface, all receiving packets are processed as normal and ripd does not send either multicast or unicast RIP packets
    <tr>
|-
    <td>Passive interface</td>
|}
        <td>yes {{!}} no; Default: '''no'''</td>
        <td>Sets the specified interface to passive mode. On passive mode interface, all receiving packets are processed as normal and ripd does not send either multicast or unicast RIP packets</td>
    </tr>
</table>


====Access list filters====
====Access list filters====
Line 265: Line 299:
[[Image:Network routing dynamic routes rip access list filters.PNG]]
[[Image:Network routing dynamic routes rip access list filters.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; background: black; color: white;"  | Field name
        <th>field name</th>
! style="width: 250px; background: black; color: white;"  | Value
      <th>value</th>
! style="width: 1200px; background: black; color: white;" | Description
      <th>description</th>
|-
    </tr>
! style="text-align: left; vertical-align: top;" | Enable
    <tr>
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="text-align: left; vertical-align: top;" | Toggles the Access filter ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles the Access filter ON or OFF</td>
! style="text-align: left; vertical-align: top;" | Peer
    </tr>
| style="text-align: left; vertical-align: top;" | bgp peer; Default: '''first peer on list'''
    <tr>
| style="text-align: left; vertical-align: top;" | Applies the rule for the specified peer
      <td>Peer</td>
|-
      <td>bgp peer; Default: '''first peer on list'''</td>
! style="text-align: left; vertical-align: top;" | Action
      <td>Applies the rule for the specified peer</td>
| style="text-align: left; vertical-align: top;" | Permit {{!}} Deny; Default: '''Permit'''
    </tr>
| style="text-align: left; vertical-align: top;" | Denies or permits matched entry
    <tr>
|-
    <td>Action</td>
! style="text-align: left; vertical-align: top;" | Network
        <td>Permit {{!}} Deny; Default: '''Permit'''</td>
| style="text-align: left; vertical-align: top;" | Any {{!}} ip; Default: '''Any'''
        <td>Denies or permits matched entry</td>
| style="text-align: left; vertical-align: top;" | Applies filter rule for this source network
    </tr>
|-
    <tr>
! style="text-align: left; vertical-align: top;" | Direction
    <td>Network</td>
| style="text-align: left; vertical-align: top;" | Inbound {{!}} Outbound; Default: '''Inbound'''
        <td>Any {{!}} ip; Default: '''Any'''</td>
| style="text-align: left; vertical-align: top;" | If direction is '''Inbound''', the access list is applied to input routes. If direction is '''Outbound''' the access list is applied to advertised routes
        <td>Applies filter rule for this source network</td>
|-
    </tr>
|}
    <tr>
    <td>Direction</td>
        <td>Inbound {{!}} Outbound; Default: '''Inbound'''</td>
        <td>If direction is '''Inbound''', the access list is applied to input routes. If direction is '''Outbound''' the access list is applied to advertised routes</td>
    </tr>
</table>


===OSPF Protocol===
===OSPF Protocol===
Line 301: Line 340:
[[Image:Network routing dynamic routes ospf general.PNG]]
[[Image:Network routing dynamic routes ospf general.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; background: black; color: white;"  | Field name
        <th>field name</th>
! style="width: 250px; background: black; color: white;"  | Value
      <th>value</th>
! style="width: 1200px; background: black; color: white;" | Description
      <th>description</th>
|-
    </tr>
! style="text-align: left; vertical-align: top;" | Enable
    <tr>
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="text-align: left; vertical-align: top;" | Toggles OSPF Protocol ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles OSPF Protocol ON or OFF</td>
! style="text-align: left; vertical-align: top;" | Enable vty
    </tr>
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
    <tr>
| style="text-align: left; vertical-align: top;" | Toggles vty access from LAN ON or OFF
      <td>Enable vty</td>
|-
      <td>yes {{!}} no; Default: '''no'''</td>
! style="text-align: left; vertical-align: top;" | Import config
      <td>Toggles vty access from LAN ON or OFF</td>
| style="text-align: left; vertical-align: top;" | -
    </tr>
| style="text-align: left; vertical-align: top;" | Uses imported OSPF configurations
    <tr>
|-
    <td>Import</td>
! style="text-align: left; vertical-align: top;" | Router ID
        <td>-</td>
| style="text-align: left; vertical-align: top;" | ip; Default: " "
        <td>Uses imported OSPF configurations</td>
| style="text-align: left; vertical-align: top;" | Sets the router-ID of the OSPF process. The router-ID may be an IP address of the router, but need not be - it can be any arbitrary 32bit number
    </tr>
|-
    <tr>
|}
    <td>Router ID</td>
        <td>ip; Default: " "</td>
        <td>Sets the router-ID of the OSPF process. The router-ID may be an IP address of the router, but need not be - it can be any arbitrary 32bit number</td>
    </tr>
</table>


====OSPF Interface====
====OSPF Interface====
Line 329: Line 372:
[[Image:Network routing dynamic routes ospf ospf interface.PNG]]
[[Image:Network routing dynamic routes ospf ospf interface.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; background: black; color: white;"  | Field name
        <th>field name</th>
! style="width: 250px; background: black; color: white;"  | Value
      <th>value</th>
! style="width: 1200px; background: black; color: white;" | Description
      <th>description</th>
|-
    </tr>
! style="text-align: left; vertical-align: top;" | Enable
    <tr>
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="text-align: left; vertical-align: top;" | Toggles OSPF interface ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles OSPF interface ON or OFF</td>
! style="text-align: left; vertical-align: top;" | Cost
    </tr>
| style="text-align: left; vertical-align: top;" | integer [1..65535]; Default: '''10'''
    <tr>
| style="text-align: left; vertical-align: top;" | The cost value is set to router-LSA’s metric field and used for SPF calculation
      <td>Cost</td>
|-
      <td>integer [1..65535]; Default: '''10'''</td>
! style="text-align: left; vertical-align: top;" | Hello interval
      <td>The cost value is set to router-LSA’s metric field and used for SPF calculation</td>
| style="text-align: left; vertical-align: top;" | integer [1..65535]; Default: '''10'''
    </tr>
| style="text-align: left; vertical-align: top;" | Hello packets will be sent at the frequency specified in this field (in seconds)
    <tr>
|-
    <td>Hello interval</td>
! style="text-align: left; vertical-align: top;" | Router dead interval
        <td>integer [1..65535]; Default: '''10'''</td>
| style="text-align: left; vertical-align: top;" | integer [1..65535]; Default: '''40'''
        <td>Hello packets will be sent at the frequency specified in this field (in seconds)</td>
| style="text-align: left; vertical-align: top;" | This value must be the same for all routers attached to a common network
    </tr>
|-
    <tr>
! style="text-align: left; vertical-align: top;" | Retransmit
    <td>Router dead interval</td>
| style="text-align: left; vertical-align: top;" | integer [1..65535]; Default: '''5'''
        <td>integer [1..65535]; Default: '''40'''</td>
| style="text-align: left; vertical-align: top;" | This value is used when re-transmitting Database Description and Link State Request packets
        <td>This value must be the same for all routers attached to a common network</td>
|-
    </tr>
! style="text-align: left; vertical-align: top;" | Priority
    <tr>
| style="text-align: left; vertical-align: top;" | integer [0..255]; Default: '''1'''
      <td>Retransmit</td>
| style="text-align: left; vertical-align: top;" | The router with the highest priority will be more eligible to become the Designated Router. Setting the value to 0, makes the router ineligible to become the Designated Router
      <td>integer [1..65535]; Default: '''5'''</td>
|-
      <td>This value is used when re-transmitting Database Description and Link State Request packets</td>
! style="text-align: left; vertical-align: top;" | Type
    </tr>
| style="text-align: left; vertical-align: top;" | Broadcast {{!}} Nonbroadcast {{!}} Point-to-point {{!}} Point-to-multipoint; Default: " "
    <tr>
| style="text-align: left; vertical-align: top;" | Set explicit network type for the specified interface
      <td>Priority</td>
|-
      <td>integer [0..255]; Default: '''1'''</td>
! style="text-align: left; vertical-align: top;" | Authentication
      <td>The router with the highest priority will be more eligible to become the Designated Router. Setting the value to 0, makes the router ineligible to become the Designated Router</td>
| style="text-align: left; vertical-align: top;" | None {{!}} Password {{!}} MD5 HMAC; Default: " "
    </tr>
| style="text-align: left; vertical-align: top;" | Specifies the authentication mode that should be used for the interface
    <tr>
|-
    <td>Type</td>
|}
        <td>Broadcast {{!}} Nonbroadcast {{!}} Point-to-point {{!}} Point-to-multipoint; Default: " "</td>
        <td>Set explicit network type for the specified interface</td>
    </tr>
    <tr>
    <td>Authentication</td>
        <td>None {{!}} Password {{!}} MD5 HMAC; Default: " "</td>
        <td>Specifies the authentication mode that should be used for the interface</td>
    </tr>
</table>


====OSPF Area====
====OSPF Area====
Line 374: Line 425:
[[Image:Network routing dynamic routes ospf area.PNG]]
[[Image:Network routing dynamic routes ospf area.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; background: black; color: white;"  | Field name
        <th>field name</th>
! style="width: 250px; background: black; color: white;"  | Value
      <th>value</th>
! style="width: 1200px; background: black; color: white;" | Description
      <th>description</th>
|-
    </tr>
! style="text-align: left; vertical-align: top;" | Enable
    <tr>
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="text-align: left; vertical-align: top;" | Toggles OSPF area ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles OSPF area ON or OFF</td>
! style="text-align: left; vertical-align: top;" | Cost
    </tr>
| style="text-align: left; vertical-align: top;" | [a.b.c.d]; Default: " "
    <tr>
| style="text-align: left; vertical-align: top;" | Specifies OSPF area
      <td>Cost</td>
|-
      <td>[a.b.c.d]; Default: " "</td>
|}
      <td>Specifies OSPF area</td>
    </tr>
</table>


====OSPF Networks====
====OSPF Networks====
Line 395: Line 448:
[[Image:Network routing dynamic routes ospf networks.PNG]]
[[Image:Network routing dynamic routes ospf networks.PNG]]


{| class="wikitable"
<table class="nd-mantable">
|+
    <tr>
! style="width: 250px; background: black; color: white;"  | Field name
        <th>field name</th>
! style="width: 250px; background: black; color: white;"  | Value
      <th>value</th>
! style="width: 1200px; background: black; color: white;" | Description
      <th>description</th>
|-
    </tr>
! style="text-align: left; vertical-align: top;" | Enable
    <tr>
| style="text-align: left; vertical-align: top;" | yes {{!}} no; Default: '''no'''
      <td>Enable</td>
| style="text-align: left; vertical-align: top;" | Toggles OSPF network ON or OFF
      <td>yes {{!}} no; Default: '''no'''</td>
|-
      <td>Toggles OSPF network ON or OFF</td>
! style="text-align: left; vertical-align: top;" | Network
    </tr>
| style="text-align: left; vertical-align: top;" | [a.b.c.d/m]; Default: " "
    <tr>
| style="text-align: left; vertical-align: top;" | This command specifies the OSPF enabled interface. If the interface has an address from the range '''a.b.c.d/m''' then enables OSPF on this interface so the router can provide network information to the other OSPF routers via this interface
      <td>Network</td>
|-
      <td>[a.b.c.d/m]; Default: " "</td>
! style="text-align: left; vertical-align: top;" | Area
      <td>This command specifies the OSPF enabled interface. If the interface has an address from the range '''a.b.c.d/m''' then enables OSPF on this interface so the router can provide network information to the other OSPF routers via this interface</td>
| style="text-align: left; vertical-align: top;" | ospf area; Default: " "
    </tr>
| style="text-align: left; vertical-align: top;" | Specifies OSPF area
    <tr>
|-
    <td>Area</td>
|}
        <td>ospf area; Default: " "</td>
        <td>Specifies OSPF area</td>
    </tr>
</table>

Latest revision as of 09:02, 20 December 2018

Summary

This chapter is an overview of the Routing section in RUT devices.

Static Routes

Static routes specify over which interface and gateway a certain host or network can be reached. In this page you can configure your own custom routes.


field name value description
Routing table Main | WAN | WAN2 | WAN3; Default: WAN Defines which table will be used for the route in question
Interface LAN | WAN(wired) | WAN2(Mobile) | WAN3(WiFi) | VPN instances; Default: WAN(wired) The zone where the target network resides
Destination address* ip; Default: 0.0.0.0 The address of the destination network
Netmask* ip; Default: 0.0.0.0 A Mask that is applied to the Target to determine to what actual IP addresses the routing rule applies
Gateway ip; Default: " " Defines where the router should send all the traffic that applies to the rule
Metric integer; Default: 0 The Metric value is used as a sorting measure. If a packet about to be routed fits two rules, the one with the higher metric is applied

*Additional notes on Destination & Netmask:

You can define a rule that applies to a single IP like this: Destination - some IP; Netmask - 255.255.255.255. Furthermore, you can define a rule that applies to a segment of IPs like this: Destination – some IP that STARTS some segment; Netmask – Netmask that defines how large the segment is. e.g.:

field name value description
192.168.55.161 255.255.255.255 Only applies to 192.168.55.161
192.168.55.0 255.255.255.240 Applies to IPs in the 192.168.55.0 - 192.168.55.255
192.168.55.240 255.255.255.240 192.168.55.240 - 192.168.55.255
192.168.55.161 255.255.255.0 192.168.55.0 - 192.168.55.255
192.168.0.0 255.255.0.0 192.168.0.0 - 192.168.255.255

Static ARP entries


Static ARP entries are used to bind a MAC address to a specific IP address. For example, if you want a device to get the same IP every time it connects to the router, you can create a Static ARP entry by binding that device’s MAC address to the desired IP address. The router will then create an entry in the ARP table, which in turn will make sure that that device will get the specified IP address every time.

Dynamic Routes

BGP Protocol


Border Gateway Protocol (BGP) is a standardized exterior gateway protocol designed to exchange routing and reachability information among autonomous systems (AS) on the Internet. The protocol is often classified as a path vector protocol but is sometimes also classed as a distance-vector routing protocol. The Border Gateway Protocol makes routing decisions based on paths, network policies, or rule-sets configured by a network administrator and is involved in making core routing decisions.

General Settings


field name value description
Enable yes | no; Default: no Toggles the BGP protocol ON or OFF
Enable vty yes | no; Default: no Toggles vty access from LAN ON or OFF
Import config - Uploads an external BGP configuration

BGP Instance


field name value description
Enable yes | no; Default: no Toggles the BGP instance ON or OFF
AS integer: " " AS number is an identification of an autonomous system. BGP protocol uses the AS number for detecting whether the BGP connection is an internal one or external one. [Required]
BGP router ID string; Default: " " The router id is used by BGP to identify the routing device from which a packet originated. Default router ID value is selected as the largest IP Address of the interface.
Network string; Default: " " Add an announcement network(s)

BGP Peers


field name value description
Enable yes | no; Default: no Toggles the BGP peer ON or OFF
Remote AS integer: " " Neighbour's remote AS
Remote address ip; Default: " " Neighbour's remote IPv4 address

Access List Filters


field name value description
Enable yes | no; Default: no Toggles the Access filter ON or OFF
Peer bgp peer; Default: first peer on list Applies the rule for the specified peer
Action Permit | Deny; Default: Permit Denies or permits matched entry
Network Any | ip; Default: Any Applies filter rule for this source network
Direction Inbound | Outbound; Default: Inbound If direction is Inbound, the access list is applied to input routes. If direction is Outbound the access list is applied to advertised routes

RIP Protocol


The Routing Information Protocol (RIP) is one of the oldest distance-vector routing protocols which employ the hop count as a routing metric. RIP prevents routing loops by implementing a limit on the number of hops allowed in a path from source to destination. The maximum number of hops allowed for RIP is 15, which limits the size of networks that RIP can support. A hop count of 16 is considered an infinite distance and the route is considered unreachable. RIP implements the split horizon, route poisoning and holddown mechanisms to prevent incorrect routing information from being propagated.

General


field name value description
Enable yes | no; Default: no Toggles RIP Protocol ON or OFF
Enable vty yes | no; Default: no Toggles vty access from LAN ON or OFF
Import config - Uses imported RIP configurations
Version 2 | 1; Default: 2 Specifies the version of RIP
Neighbor ip; Default: " " Neighbour IP addres

RIP Interfaces


field name value description
Enable yes | no; Default: no Toggles RIP Interface ON or OFF
Interface network interface; Default: no Network interface to be used with the RIP interface
Passive interface yes | no; Default: no Sets the specified interface to passive mode. On passive mode interface, all receiving packets are processed as normal and ripd does not send either multicast or unicast RIP packets

Access list filters


field name value description
Enable yes | no; Default: no Toggles the Access filter ON or OFF
Peer bgp peer; Default: first peer on list Applies the rule for the specified peer
Action Permit | Deny; Default: Permit Denies or permits matched entry
Network Any | ip; Default: Any Applies filter rule for this source network
Direction Inbound | Outbound; Default: Inbound If direction is Inbound, the access list is applied to input routes. If direction is Outbound the access list is applied to advertised routes

OSPF Protocol


Open Shortest Path First (OSPF) is a routing protocol for Internet Protocol (IP) networks. It uses a link state routing (LSR) algorithm and falls into the group of interior gateway protocols (IGPs), operating within a single autonomous system (AS). It is defined as OSPF Version 2 in RFC 2328 for IPv4.

General Settings


field name value description
Enable yes | no; Default: no Toggles OSPF Protocol ON or OFF
Enable vty yes | no; Default: no Toggles vty access from LAN ON or OFF
Import - Uses imported OSPF configurations
Router ID ip; Default: " " Sets the router-ID of the OSPF process. The router-ID may be an IP address of the router, but need not be - it can be any arbitrary 32bit number

OSPF Interface


field name value description
Enable yes | no; Default: no Toggles OSPF interface ON or OFF
Cost integer [1..65535]; Default: 10 The cost value is set to router-LSA’s metric field and used for SPF calculation
Hello interval integer [1..65535]; Default: 10 Hello packets will be sent at the frequency specified in this field (in seconds)
Router dead interval integer [1..65535]; Default: 40 This value must be the same for all routers attached to a common network
Retransmit integer [1..65535]; Default: 5 This value is used when re-transmitting Database Description and Link State Request packets
Priority integer [0..255]; Default: 1 The router with the highest priority will be more eligible to become the Designated Router. Setting the value to 0, makes the router ineligible to become the Designated Router
Type Broadcast | Nonbroadcast | Point-to-point | Point-to-multipoint; Default: " " Set explicit network type for the specified interface
Authentication None | Password | MD5 HMAC; Default: " " Specifies the authentication mode that should be used for the interface

OSPF Area


field name value description
Enable yes | no; Default: no Toggles OSPF area ON or OFF
Cost [a.b.c.d]; Default: " " Specifies OSPF area

OSPF Networks


field name value description
Enable yes | no; Default: no Toggles OSPF network ON or OFF
Network [a.b.c.d/m]; Default: " " This command specifies the OSPF enabled interface. If the interface has an address from the range a.b.c.d/m then enables OSPF on this interface so the router can provide network information to the other OSPF routers via this interface
Area ospf area; Default: " " Specifies OSPF area