Jump to content

RUT900 WAN: Difference between revisions

18,557 bytes removed ,  19 July 2021
no edit summary
No edit summary
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Summary==
{{Template: Networking_rutos_manual_wan
 
<!------------------------DEVICE----------------------->
A wide area network (WAN) is a telecommunications network or computer network that extends over a large geographical distance. For example, the Internet is a wide are network. This chapter is an overview of RUTxxx routers' WAN section.
| name     = RUT900
 
| series    = RUT9
==Operation Modes==
<!----------------------SEPARATORS--------------------->
 
| mobile    = 1  <!-- 1 - has mobile WAN; 0 - doesn't have mobile WAN -->
The Operation Modes window lets you determine how the router will be connecting to the internet. You can chose between three types of WAN – Mobile, Wired and Wi-Fi. You can also setup backup WAN options in case your main connection goes down.
| dualsim  = 1  <!-- 1 - has dual SIM; 0 - doesn't have dual SIM -->
 
| dualmodem = 0  <!-- 1 - has dual modem; 0 - doesn't have dual modem -->
[[File:Network wan operation v2.png]]
| wired    = 1  <!-- 1 - has wired WAN; 0 - doesn't have wired WAN -->
 
}}
You can choose one main WAN and one or two (or none) backup WAN options. To choose your main WAN just check the desired option (wired, mobile or Wi-Fi) in the '''Main WAN''' column (first from the left), to choose a backup WAN(s), check the desired option(s) in the Backup WAN column (second from the left). Above is an example of a configuration that uses wired as Main WAN and mobile as Backup WAN.
The Operation Modes tab also displays each interfaces name, WAN IP address and Protocol in use. To configure a WAN interface more in depth, click the '''Edit''' button located to the right of the desired interface. Each interface configures separately, to avoid redundancy this chapter will only overview the configuration of the wired WAN interface, since mobile contains less information and Wi-Fi is basically the same.
 
==Common Configuration==
 
The Common Configuration section is used to configure different protocols for WAN interfaces.
 
===Static===
----
The Static protocol is used when the source of your internet doesn’t have a DHCP server enabled. Therefore, in order to connect to the internet, you have to make configurations in accordance to that source.
 
====General====
----
[[Image:Network wan static general.PNG]]
 
<table class="nd-mantable">
    <tr>
        <th>field name</th>
      <th>value</th>
      <th>description</th>
    </tr>
    <tr>
      <td>Protocol</td>
      <td>Static {{!}} DHCP {{!}} PPPoE; Default: '''DHCP'''</td>
      <td>The protocol used by the WAN interface</td>
    </tr>
    <tr>
      <td>IPv4 address</td>
      <td>ip; Default: " "</td>
      <td>Your router’s address on the WAN network</td>
    </tr>
    <tr>
    <td>IPv4 netmask</td>
        <td>ip; Default: '''255.255.255.0'''</td>
        <td>Netmask defines how "large" a network is</td>
    </tr>
    <tr>
    <td>IPv4 gateway</td>
        <td>ip; Default: " "</td>
        <td>The address where the router will send all the outgoing traffic</td>
    </tr>
    <tr>
    <td>IPv4 broadcast</td>
        <td>ip; Default: " "</td>
        <td>IP broadcasts are used by BOOTP and DHCP clients to find and send requests to their respective servers</td>
    </tr>
    <tr>
    <td>Use custom DNS servers</td>
        <td>ip; Default: " "</td>
        <td>When the router needs to resolve a hostname (“www.google.com”, “www.cnn.com”, etc.) to an IP address, it will forward all the DNS requests to the gateway. By entering custom DNS servers the router will take care of the host name resolution. You can enter multiple DNS servers to provide redundancy in case one of the servers fails</td>
    </tr>
</table>
 
====Advanced====
----
The Advanced Settings tab will change in accordance to which network protocol is selected. For the Static protocol you can turn NAT on or off, override the router’s MAC address, MTU and define the gateway's metric.
 
[[Image:Network wan static advanced.PNG]]
 
<table class="nd-mantable">
    <tr>
        <th>field name</th>
      <th>value</th>
      <th>description</th>
    </tr>
    <tr>
      <td>Disable NAT</td>
      <td>yes {{!}} no; Default: '''no'''</td>
      <td>Toggles Network Address Translation (NAT) on or off for the selected network interface</td>
    </tr>
    <tr>
      <td>Override MAC address</td>
      <td>mac; Default: '''router's mac'''</td>
      <td>Override MAC address of the WAN interface. For example, your ISP (Internet Service Provider) gives you a static IP address and it might also bind it to your computers MAC address (i.e., that IP will only work with your computer but not with your router). In this field you can enter your computer’s MAC address and fool the gateway in to thinking that it is communicating with your computer</td>
    </tr>
    <tr>
    <td>Override MTU</td>
        <td>integer [0..1500]; Default: '''1500'''</td>
        <td>Maximum Transmission Unit (MTU) – specifies the largest possible size of a data packet</td>
    </tr>
    <tr>
    <td>Use gateway metric</td>
        <td>integer; Default: '''0'''</td>
        <td>The WAN configuration by default generates a routing table entry. In this field you can alter the metric of that entry. Higher metric means higher priority</td>
    </tr>
</table>
 
===DHCP===
----
The DHCP protocol should be used when the source of your internet has a DHCP server enabled. If that is the case, when you select the DHCP protocol you can use it as is, because most networks will not require any additional advanced configuration.
 
====General====
----
[[Image:Network wan dhcp general.PNG]]
 
<table class="nd-mantable">
    <tr>
        <th>field name</th>
      <th>value</th>
      <th>description</th>
    </tr>
    <tr>
      <td>Protocol</td>
      <td>Static {{!}} DHCP {{!}} PPPoE; Default: '''DHCP'''</td>
      <td>The protocol used by the WAN interface</td>
    </tr>
    <tr>
      <td>Hostname to send when requesting DHCP</td>
      <td>ip {{!}} hostname; Default: '''router's hostname'''</td>
      <td>Host name to which the DHCP request will be sent to</td>
    </tr>
</table>
 
====Advanced====
----
For the DHCP protocol you can turn NAT on or off, specify custom DNS servers, define the gateway metric, override the router’s MAC address, set MTU and more.
 
[[Image:Network wan dhcp advanced.PNG]]
 
<table class="nd-mantable">
    <tr>
        <th>field name</th>
      <th>value</th>
      <th>description</th>
    </tr>
    <tr>
      <td>Disable NAT</td>
      <td>yes {{!}} no; Default: '''no'''</td>
      <td>Toggles Network Address Translation (NAT) on or off for the selected network interface</td>
    </tr>
    <tr>
      <td>Use broadcast flag</td>
      <td>yes {{!}} no; Default: '''no''' </td>
      <td>Required for certain ISPs (Internet Service Providers), e.g. Charter with DOCSIS 3</td>
    </tr>
    <tr>
      <td>Use default gateway</td>
      <td>yes {{!}} no; Default: '''yes'''</td>
      <td>Uses the default gateway obtained through DHCP. If left unchecked, no default route is configured</td>
    </tr>
    <tr>
    <td>Use DNS servers advertised by peer</td>
        <td>yes {{!}} no; Default: '''no'''</td>
        <td>Uses DNS servers obtained from DHCP. If left unchecked, the advertised DNS server addresses are ignored</td>
    </tr>
    <tr>
    <td>Use custom DNS servers</td>
        <td>ip; Default: " "</td>
        <td>Lets you chose your own preferred DNS servers. This field only becomes visible if '''Use DNS servers advertised by peer''' field is unchecked</td>
    </tr>
    <tr>
    <td>Use gateway metric</td>
        <td>ip; Default: " "</td>
        <td>The WAN configuration by default generates a routing table entry. In this field you can alter the metric of that entry. Higher metric means higher priority </td>
    </tr>
    <tr>
      <td>Client ID to send when requesting DHCP</td>
      <td>string; Default: " "</td>
      <td>Client ID which will be sent when requesting a DHCP lease</td>
    </tr>
    <tr>
      <td>Vendor class to send when requesting DHCP</td>
      <td>string; Default: " "</td>
      <td>Vendor class which will be sent when requesting a DHCP lease</td>
    </tr>
    <tr>
    <td>Override MAC address</td>
        <td>mac; Default: '''router's mac'''</td>
        <td>Override MAC address of the WAN interface. For example, your ISP (Internet Service Provider) gives you a static IP address and it might also bind it to your computers MAC address (i.e., that IP will only work with your computer but not with your router). In this field you can enter your computer’s MAC address and fool the gateway in to thinking that it is communicating with your computer</td>
    </tr>
    <tr>
    <td>Override MTU</td>
        <td>nteger [0..1500]; Default: '''1500'''</td>
        <td>Maximum Transmission Unit (MTU) – specifies the largest possible size of a data packet</td>
    </tr>
</table>
 
===PPPoE===
----
The PPPoE protocol is mainly used if you have a DSL internet provider.
 
====General====
----
The General configuration tab for the PPPoE protocol is mainly used to specify your PAP/CHAP login information, but you can also configure some additional, more specific settings.
 
[[Image:Network wan pppoe general2.PNG]]
 
<table class="nd-mantable">
    <tr>
        <th>field name</th>
      <th>value</th>
      <th>description</th>
    </tr>
    <tr>
      <td>Protocol</td>
      <td>Static {{!}} DHCP {{!}} PPPoE; Default: '''DHCP'''</td>
      <td>The protocol used by the WAN interface</td>
    </tr>
    <tr>
      <td>PAP/CHAP username</td>
      <td>string; Default: " "</td>
      <td>The username that you use to connect to your carrier’s network </td>
    </tr>
    <tr>
    <td>PAP/CHAP password</td>
        <td>string; Default: " "</td>
        <td>The password that you use to connect to your carrier’s network </td>
    </tr>
    <tr>
    <td>Access concentrator</td>
        <td>string; Default: " "</td>
        <td>The name of the access concentrator. Leave empty to auto detect</td>
    </tr>
    <tr>
    <td>Service name</td>
        <td>string; Default: " "</td>
        <td>The name of the service. Leave empty to auto detect</td>
    </tr>
</table>
 
====Advanced====
----
For the PPPoE protocol you can turn NAT on or off, specify custom DNS servers, define the gateway metric, configure LCP echo settings and more.
 
[[Image:Network wan pppoe advanced.PNG]]
 
<table class="nd-mantable">
    <tr>
        <th>field name</th>
      <th>value</th>
      <th>description</th>
    </tr>
    <tr>
      <td>Disable NAT</td>
      <td>yes {{!}} no; Default: '''no'''</td>
      <td>Toggles Network Address Translation (NAT) on or off for the selected network interface</td>
    </tr>
    <tr>
      <td>Use default gateway</td>
      <td>yes {{!}} no; Default: '''yes'''</td>
      <td>Uses the default gateway obtained through DHCP. If left unchecked, no default route is configured</td>
    </tr>
    <tr>
    <td>Use gateway metric</td>
        <td>integer; Default: '''0'''</td>
        <td>The WAN configuration by default generates a routing table entry. In this field you can alter the metric of that entry. Higher metric means higher priority</td>
    </tr>
    <tr>
    <td>Use DNS servers advertised by peer</td>
        <td>yes {{!}} no; Default: '''yes'''</td>
        <td>Uses DNS servers obtained from DHCP. If left unchecked, the advertised DNS server addresses are ignored</td>
    </tr>
    <tr>
      <td>Use custom DNS servers</td>
      <td>ip; Default: " "</td>
      <td>Lets you chose your own preferred DNS servers. This field only becomes visible if '''Use DNS servers advertised by peer''' field is unchecked</td>
    </tr>
    <tr>
      <td>LCP echo failure threshold</td>
      <td>integer; Default: '''0'''</td>
      <td>Presumes peer to be dead after given amount of LCP echo failures. Leave it at 0 to ignore failures</td>
    </tr>
    <tr>
    <td>LCP echo interval</td>
        <td>integer; Default: '''5'''</td>
        <td>Sends LCP echo requests at the given interval in seconds. This function is only effective in conjunction with failure threshold</td>
    </tr>
    <tr>
    <td>Inactivity timeout</td>
        <td>integer; Default: '''0'''</td>
        <td>Close inactive connection after the given amount of seconds. Leave it at 0 to persist connection</td>
    </tr>
</table>
 
==IP Aliases==
 
IP Aliases are a way of defining or reaching a subnet that works in the same space as the regular network. This is useful if you need to reach the router that is located in the same network but in a different subnet. If you have a static IP configuration on your computer and don’t want to change it every time you need to reach a router in a different subnet, you can configure an IP alias in order to do so.
 
===General setup===
----
[[Image:Network lan ipaliases.PNG]]
 
<table class="nd-mantable">
    <tr>
        <th>field name</th>
      <th>value</th>
      <th>description</th>
    </tr>
    <tr>
      <td>IP address</td>
      <td>ip; Default: " "</td>
      <td>An alternate IP address used to reach the router by a device(s) that resides in the router's LAN but has a different subnet</td>
    </tr>
    <tr>
      <td>Netmask</td>
      <td>ip; Default: '''255.255.255.0'''</td>
      <td>Netmask defines how "large" a network is</td>
    </tr>
    <tr>
    <td>Gateway</td>
        <td>ip; Default: " "</td>
        <td>A gateway is a network node that connects two networks using different protocols together</td>
    </tr>
</table>
 
As you can see, the configuration is very similar to the static protocol; in the example above an IP address with a 99th subnet is defined. In this case, if some device has an IP in the 99th subnet (e.g., 192.168.99.xxx) and the subnet’s gateway metric is “higher” and the device is trying to reach the internet it will reroute it’s traffic not to the gateway that is defined in common configurations but through the one that is specified in IP aliases.
 
===Advanced Settings===
----
You may also define a broadcast address and a custom DNS server for your IP Aliases in the Advanced Settings tab.
 
[[Image:Network lan ipaliases advanced.PNG]]
 
<table class="nd-mantable">
    <tr>
        <th>field name</th>
      <th>value</th>
      <th>description</th>
    </tr>
    <tr>
      <td>IP Broadcast</td>
      <td>ip; Default: " "</td>
      <td>IP broadcasts are used by BOOTP and DHCP clients to find and send requests to their respective servers</td>
    </tr>
    <tr>
      <td>DNS</td>
      <td>ip; Default: " "</td>
      <td>A separate DNS server to be used by the IP Alias address</td>
    </tr>
</table>
 
==Backup Configuration==
 
Backup WAN is a function that allows you to back up your primary connection in case it goes down. There can be up to two backup connections selected at one time. In that case, when the primary connection fails, the router tries to use the backup with the higher priority and if this one is unavailable or fails too, then the router tries the backup with the lower priority.
 
[[Image:Network wan backup configuration.PNG]]
 
{| class="wikitable"
|+
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | FIELD NAME
! style="width: 250px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | VALUE
! style="width: 579px; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: left;" | DESCRIPTION
|-
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Health monitor interval
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Disable {{!}} 5 sec. {{!}} 10 sec. {{!}} 20 sec. {{!}} 30 sec. {{!}} 60 sec. {{!}} 120 sec.; Default: '''10 sec.'''
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The interval at which health checks are performed
|-
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Health monitor ICMP host(s)
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | ip {{!}} hostname {{!}} 8.8.4.4 {{!}} Disable {{!}} DNS server(s) {{!}} WAN gateway {{!}} --custom--; Default: '''8.8.4.4'''
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Indicate where to send ping requests for a health check. As there is no definitive way to determine when the connection to internet is down for good, it is best to define a host whose availability is that of the internet as a whole (e.g., 8.8.8.8, 8.8.4.4)
|-
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Health monitor ICMP timeout
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 1 sec. {{!}} 2 sec. {{!}} 3 sec. {{!}} 4 sec. {{!}} 5 sec. {{!}} 10 sec.; Default: '''3 sec.'''
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The frequency at which ICMP requests are to be sent. It is advised to set a higher value if your connection has high latency or high jitter (latency spikes)
|-
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Attempts before failover
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 1 {{!}} 3 {{!}} 5 {{!}} 1 {{!}} 15 {{!}} 20; Default: '''3'''
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The number of failed ping attempts after which the connection is to be declared as “'''down'''”
|-
! style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | Attempts before recovery
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | 1 {{!}} 3 {{!}} 5 {{!}} 1 {{!}} 15 {{!}} 20; Default: '''3'''
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; text-align: left; vertical-align: top; background: white;" | The number of successful ping attempts after which the connection is to be declared as “'''up'''”
|-
|}
 
The majority of the options consist of timing and other important parameters that help determine the health of your primary connection. Regular health checks are constantly performed in the form of ICMP packets (Pings) on your primary connection. When the connections state starts to change (READY->NOT READY and vice versa) a necessary amount of failed or passed health checks has to be reached before the state changes completely. This delay is instituted so as to mitigate “spikes” in connection availability, but it also extends the time before the backup link can be brought up or down.