Template:Networking rutos manual failover: Difference between revisions
Appearance
Gytispieze (talk | contribs) No edit summary |
No edit summary |
||
| (34 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{Template: | {{Template: Networking_device_manual_fw_disclosure | ||
| | | series = {{{series}}} | ||
| series | | name = {{{name}}} | ||
| fw_version ={{Template: Networking_device_manual_latest_fw | |||
| series = {{{series}}} | |||
| name = {{{name}}} | |||
}} | |||
}} | }} | ||
{{#ifeq: {{{legacy}}} | | {{#ifeq: {{{series}}} | RUT9 |<br><i><b>Note</b>: <b>[[{{{name}}} WAN (legacy WebUI)|click here]]</b> for the old style WebUI (FW version {{Template: Networking_device_manual_latest_fw | series = RUT9XX}} and earlier) user manual page.</i>|}} | ||
{{#ifeq: {{{series}}} | RUT2 |<br><i><b>Note</b>: <b>[[{{{name}}} WAN (legacy WebUI)|click here]]</b> for the old style WebUI (FW version {{Template: Networking_device_manual_latest_fw | series = RUT2XX}} and earlier) user manual page.</i>|}} | |||
__TOC__ | __TOC__ | ||
==Summary== | ==Summary== | ||
This chapter is an overview of the Failover | This chapter is an overview of the Failover, VRRP functions in {{{name}}} device. | ||
<u><b>Note:</b> Failover is additional software on some devices that can be installed from the <b>System → [[{{{name}}} Package Manager|Package Manager]]</b> page.</u> | |||
==Failover== | ===Failover=== | ||
---- | |||
---- | |||
The <b>Failover</b> function allows you to backup your primary WAN connection in case it goes down. | The <b>Failover</b> function allows you to backup your primary WAN connection in case it goes down. | ||
In order to set priorities, | In order to set priorities, just change the interface metrics in the `Interfaces` section and then press Save & Apply.{{#ifeq:{{{mobile}}}|0|<br><br><b>Note:</b> You will not see any extra interfaces unless you have LAN ports configured as WAN.|}} | ||
[[File:Networking_rutos_manual_failover_failover_interfaces_mobile_{{{mobile}}} | [[File:Networking_rutos_manual_failover_failover_interfaces_mobile_{{{mobile}}}_{{{dualsim}}}_{{{dualmodem}}}_v1.png|border|class=tlt-border]] | ||
Interfaces with higher metrics on the list have a higher priority than the ones that are with lower metrics, i.e., the device will always use the WAN interface with the highest metric as long as it is available. If it goes down, the device will start using the interface with the second highest metric and so on. | |||
Take note that changing an interface's | Take note that changing an interface's metrics in the list here also changes its position in the following pages: | ||
<ul> | <ul> | ||
<li><i>Network → [[{{{name}}} WAN|WAN]]</i></li> | <li><i>Network → [[{{{name}}} WAN|WAN]]</i></li> | ||
</ul> | </ul> | ||
=== | ===Load Balancing=== | ||
---- | ---- | ||
<b>Load Balancing</b> is a method of dividing traffic between multiple WAN interfaces. Load Balancing can be used to share the data load between different interfaces and increase the overall Internet speed for multiple users and connections. It is important to note that <u>Load Balancing does not increase speed for any single connection</u>. For example, if you're downloading a large file, using Load Balancing will not increase the speed of that download. | |||
However, Load Balancing can be used to increase the speed of multiple connections. For example, when used in a WiFi network, Load Balancing would utilize the resources of multiple WAN interfaces to handle the many various requests of different clients. | |||
Both Load Balancing and Failover cannot be used at the same time. If you wish to select Load Balancing, you can do that in the dropdown located under 'Settings' section: | |||
[[File:Networking_rutos_manual_failover_load_balancing_select_v2.png|border|class=tlt-border]] | |||
[[File: | When Load Balancing is selected, you can <b>assign Weight values</b> to WAN interfaces. The value represents a percentage of traffic load that will go through an interface. For example, if you set it up like this: | ||
<table> | |||
<tr> | |||
<td style="text-align: left; width: 150px;"><ul><li><i>Wired WAN Weight:</i></li></ul></td> | |||
<td style="text-align: right; width: 30px;"><b>3</b></td> | |||
</tr> | |||
</table> | |||
<table> | |||
<tr> | |||
<td style="text-align: left; width: 150px;"><ul><li><i>{{{wan2}}} Weight:</i></li></ul></td> | |||
<td style="text-align: right; width: 30px;"><b>2</b></td> | |||
</tr> | |||
</table> | |||
then about 60 % (3/5) of traffic would go through the Wired WAN interface and about 40 % (2/5) would go through {{{wan2}}}. In this case if you played 100 different videos on the Internet, about 60 would be downloaded through Wired WAN and the other 40 would be downloaded via {{{wan2}}}. | |||
===Interface=== | |||
---- | |||
A <b>Interface</b> page is used to configure how the device will determine whether an interface is online or offline. To enter an interface configuration page, click the 'Edit' button next to an interface. | |||
[[File:Networking_rutos_manual_failover_interface_configuration_edit_button_v3.png|border|class=tlt-border]] | |||
After this you should be redirected to the configuration page of that interface. | After this you should be redirected to the configuration page of that interface. | ||
[[File: | [[File:Networking_rutos_manual_failover_interface_configuration_v1.png|border|class=tlt-border]] | ||
<table class="nd-mantable"> | <table class="nd-mantable"> | ||
| Line 54: | Line 82: | ||
<tr> | <tr> | ||
<td>Interval</td> | <td>Interval</td> | ||
<td>integer; default: <b>3</b></td> | <td>integer [1..65000]; default: <b>3</b></td> | ||
<td>Number of seconds between each test</td> | <td>Number of seconds between each test</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Flush connections on</td> | <td>Flush connections on</td> | ||
<td>Connected | <td>Connected {{!}} Disconnected {{!}} Interface up {{!}} Interface down: <b>none</b></td> | ||
<td>Flushes established connections after the selected scenario occurs to renew the priorities of configured interfaces.</td> | <td>Flushes established connections after the selected scenario occurs to renew the priorities of configured interfaces.<ul> | ||
<li><b>Conected/Disconected</b> - used when internet connection appears/disappears</li> | |||
<li><b>Interface up/Interface down</b> - used when internet cable is plugged/unplugged</li></ul></td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Method</td> | <td>Method</td> | ||
<td>Ping; default: <b>Ping</b></td> | <td>Ping | Wget; default: <b>Ping</b></td> | ||
<td>Defines how health check will be performed on this interface when determining its state.</td> | <td>Defines how health check will be performed on this interface when determining its state.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Track IP</td> | <td>Track IP</td> | ||
<td>ip | hostname; default: <b> | <td>ip | hostname; default: <b>1.1.1.1,8.8.8.8</b></td> | ||
<td>IP address(es) or hostname(s) that will be used to determine an interface's state. If the device receives no response from any of the specified hosts, the interface will be considered as 'Offline'. If this value is missing the interface is always considered up.</td> | <td>IP address(es) or hostname(s) that will be used to determine an interface's state. If the device receives no response from any of the specified hosts, the interface will be considered as 'Offline'. If this value is missing the interface is always considered up.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Reliability</td> | <td>Reliability</td> | ||
<td>integer; default: <b>1</b></td> | <td>integer [1..65000]; default: <b>1</b></td> | ||
<td>Number of hosts that must reply for the test to be considered successful. Make sure there are at least this many hosts defined in the 'Track IP' field, otherwise the interface will always be considered as 'Offline'.</td> | <td>Number of hosts that must reply for the test to be considered successful. Make sure there are at least this many hosts defined in the 'Track IP' field, otherwise the interface will always be considered as 'Offline'.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Count</td> | <td>Count</td> | ||
<td>integer; default: <b>1</b></td> | <td>integer [1..65000]; default: <b>1</b></td> | ||
<td>Number of pings to send to each host with each test.</td> | <td>Number of pings to send to each host with each test.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Up</td> | <td>Up</td> | ||
<td>integer; default: <b>3</b></td> | <td>integer [1..65000]; default: <b>3</b></td> | ||
<td>Number of successful tests required to considered an interface as 'Online'.</td> | <td>Number of successful tests required to considered an interface as 'Online'.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Down</td> | <td>Down</td> | ||
<td>integer; default: <b>3</b></td> | <td>integer [1..65000]; default: <b>3</b></td> | ||
<td>Number of failed tests required to considered an interface as 'Offline'.</td> | <td>Number of failed tests required to considered an interface as 'Offline'.</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
===Load | ===Member=== | ||
---- | |||
The <b>Member</b> page is for editing/creating a list of members and assigning interfaces to them. You can also set metrics for each user (this will be used for Failover) or weights for each member (this will be used for Load balancing). | |||
[[File:Networking_rutos_manual_failover_load_balancing_rules_member.png|border|class=tlt-border]] | |||
<table class="nd-mantable"> | |||
<tr> | |||
<th>Field</th> | |||
<th>Value</th> | |||
<th>Description</th> | |||
</tr> | |||
<tr> | |||
<td>Name</td> | |||
<td>string; default: <b></b></td> | |||
<td>Name of the member.</td> | |||
</tr> | |||
<tr> | |||
<td>Interface</td> | |||
<td>Name of the interface; default: <b></b></td> | |||
<td>List of available interfaces (depends on the device)</td> | |||
</tr> | |||
<tr> | |||
<td>Metric</td> | |||
<td>integer; default: <b>1</b></td> | |||
<td>Members within one policy with a lower metric have precedence over higher metric members. Members with the same metric within a policy will perform load balancing.</td> | |||
</tr> | |||
<tr> | |||
<td>Weight</td> | |||
<td>integer; default: <b>1</b></td> | |||
<td>The weight values represent a percentage of load that will go through an interface. The default value is 1, if unspecified.</td> | |||
</tr> | |||
<tr> | |||
<td>Actions</td> | |||
<td>-(interactive button); default: <b>Delete</b></td> | |||
<td>Removes a member.</td> | |||
</tr> | |||
</table> | |||
===Policy=== | |||
---- | ---- | ||
<b> | A <b>Policy</b> dictates what the the device should do when some network traffic matches the condition defined in a Failover/Load Balancing rule. There are two policies by default, one for Load Balancing (balance), the other for Failover (mwan). You may create custom policies that use different interfaces for Failover/Load Balancing scenarios. | ||
[[File:Networking_rutos_manual_failover_load_balancing_rules_policies_v3.png|border|class=tlt-border]] | |||
<table class="nd-mantable"> | |||
<tr> | |||
<th>Field</th> | |||
<th>Value</th> | |||
<th>Description</th> | |||
</tr> | |||
<tr> | |||
<td>Member used</td> | |||
<td>list from members page; default: <b>none</b></td> | |||
<td>Members assigned to the policy.</td> | |||
</tr> | |||
<tr> | |||
<td>Last Resort</td> | |||
<td>Unreachable {{!}} Blackhole {{!}} Default; default: <b>Unreachable</b></td> | |||
<td>Determine the fallback routing behaviour if all WAN members in the policy are down. | |||
<ul>Possible variants: | |||
<li><b>Unreachable:</b> Rejects all traffic.</li> | |||
<li><b>Blackhole:</b> Drops all traffic.</li> | |||
<li><b>Default:</b> Uses main routing table.</li></ul> | |||
</td> | |||
</tr> | |||
</table> | |||
===Rule=== | |||
---- | |||
A Load Balancing/Failover <b>Rule</b> is a set of conditions that define some type of network traffic. The traffic that matches the conditions set in the rule is handled in accordance to the specified <b>Policy</b>. | |||
There is one default rule present on the device. You can add more rules with the 'Add' button or you can customize the existing rule by clicking the 'Edit' button next to it: | |||
[[File: | [[File:Networking_rutos_manual_failover_load_balancing_rules_v2.png|border|class=tlt-border]] | ||
[[File:Networking_rutos_manual_failover_load_balancing_rule_configuration_v2.png|border|class=tlt-border]] | |||
<table> | <table class="nd-mantable"> | ||
<tr> | |||
<th>Field</th> | |||
<th>Value</th> | |||
<th>Description</th> | |||
</tr> | |||
<tr> | |||
<td>Name</td> | |||
<td>string; default: <b>default</b></td> | |||
<td>Name of the rule.</td> | |||
</tr> | |||
<tr> | |||
<td>Protocol</td> | |||
<td>all {{!}} tcp {{!}} udp {{!}} icmp {{!}} esp; default: <b>all</b></td> | |||
<td>Protocol to match this rule.</td> | |||
</tr> | |||
<tr> | |||
<td>Source address</td> | |||
<td>ip/netmask; default: <b>none</b></td> | |||
<td>Source IP addresses to match this rule.</td> | |||
</tr> | |||
<tr> | |||
<td>Destination address</td> | |||
<td>ip/netmask; default: <b>0.0.0.0/0</b></td> | |||
<td>Destination IP addresses to match this rule.</td> | |||
</tr> | |||
<tr> | |||
<td>Sticky</td> | |||
<td>off {{!}} <span style="color: #20C0D7;"><b>on</b></span>; default: <b>off</b></td> | |||
<td>If turned on, traffic from the same source IP address that previously matched this rule within the sticky timeout period will use the same WAN interface.</td> | |||
</tr> | |||
<tr> | <tr> | ||
<td style=" | <td><span style="color: #20C0D7;">Sticky timeout</span></td> | ||
<td | <td>integer [1..1000000]; default: <b>none</b></td> | ||
<td>Timeout in seconds.</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td | <td>Policy assigned</td> | ||
<td | <td>default (Load Balancing) {{!}} default (Failover) {{!}} Unreachable (Reject) {{!}} Blackhole (Drop) {{!}} Default (Use main routing table) {{!}} custom; default: <b>default (Failover)</b></td> | ||
<td>Specifies the policy applied to matching traffic.</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
{{Template:Networking_rutos_manual_vrrp | |||
| series = {{{series}}} | |||
| name = {{{name}}} | |||
}} | |||
[[Category:{{{name}}} Network section]] | [[Category:{{{name}}} Network section]] | ||