Jump to content

RUT850 Routing: Difference between revisions

4,213 bytes removed ,  17 December 2018
No edit summary
Line 11: Line 11:
[[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>