Template:Networking rut manual routes: Difference between revisions

From Teltonika Networks Wiki
No edit summary
No edit summary
Line 17: Line 17:
The figure below is an example of the ARP cache section:
The figure below is an example of the ARP cache section:


[[File:{{{file_arp}}}]]
[[File:Networking_rutxxx_manual_routes_arp_v2.png]]


<table class="nd-mantable">
<table class="nd-mantable">
Line 28: Line 28:
         <td>IP address</td>
         <td>IP address</td>
         <td>ip; Default: <b>none</b></td>
         <td>ip; Default: <b>none</b></td>
         <td>IP address of a local host</td>
         <td>IP address of a local host.</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>MAC address</td>
         <td>MAC address</td>
         <td>mac; Default: <b>none</b></td>
         <td>mac; Default: <b>none</b></td>
         <td>MAC address of a local host</td>
         <td>MAC address of a local host.</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Interface</td>
         <td>Interface</td>
         <td>string; Default: <b>none</b></td>
         <td>string; Default: <b>none</b></td>
         <td>Interface through which the router is associated with the host</td>
         <td>Interface through which the router is associated with the host.</td>
     </tr>
     </tr>
</table>
</table>
Line 59: Line 59:
The figure below is an example of the Active IP routes section:
The figure below is an example of the Active IP routes section:


[[File:{{{file_ipv4_routes}}}]]
[[File:Networking_rutxxx_manual_routes_active_ip_routes_v1.png]]


<table class="nd-mantable">
<table class="nd-mantable">
Line 70: Line 70:
         <td>Network</td>
         <td>Network</td>
         <td>string; Default: <b>none</b></td>
         <td>string; Default: <b>none</b></td>
         <td>Associated network interface name</td>
         <td>Associated network interface name.</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Target</td>
         <td>Target</td>
         <td>ip | ip/netmask; Default: <b>none</b></td>
         <td>ip | ip/netmask; Default: <b>none</b></td>
         <td>Destination network address</td>
         <td>Destination network address.</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>IP gateway</td>
         <td>IP gateway</td>
         <td>ip; Default: <b>none</b></td>
         <td>ip; Default: <b>none</b></td>
         <td>Indicates the IP address of the gateway through which the target network can be reached</td>
         <td>Indicates the IP address of the gateway through which the target network can be reached.</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Metric</td>
         <td>Metric</td>
         <td>integer [0..4,294,967,295]; Default: <b>none</b></td>
         <td>integer [0..4,294,967,295]; Default: <b>none</b></td>
         <td>Metrics help the router choose the best route among multiple feasible routes to a destination. The route will go in the direction of the gateway with the lowest metric value</td>
         <td>Metrics help the router choose the best route among multiple feasible routes to a destination. The route will go in the direction of the gateway with the lowest metric value.</td>
     </tr>
     </tr>
</table>
</table>


You can also view the routing table via shell using the <b>route</b> or <b>ip route</b> commands, depending on which output your prefer:
You can also view the routing table via shell using the <b>route</b> or <b>ip route</b> commands, depending on which output your prefer:
Line 111: Line 112:
The figure below is an example of the Active IPv6 routes section:
The figure below is an example of the Active IPv6 routes section:


[[File:{{{file_ipv6_routes}}}]]
[[File:Networking_rutxxx_manual_routes_active_ipv6_routes_v1.png]]


<table class="nd-mantable">
<table class="nd-mantable">
Line 122: Line 123:
         <td>Network</td>
         <td>Network</td>
         <td>string; Default: <b>none</b></td>
         <td>string; Default: <b>none</b></td>
         <td>Associated network interface name</td>
         <td>Associated network interface name.</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Target</td>
         <td>Target</td>
         <td>ip6 | ip6/netmask; Default: <b>none</b></td>
         <td>ip6 | ip6/netmask; Default: <b>none</b></td>
         <td>Destination network address</td>
         <td>Destination network address.</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>IP gateway</td>
         <td>IP gateway</td>
         <td>ip6; Default: <b>none</b></td>
         <td>ip6; Default: <b>none</b></td>
         <td>Indicates the IPv6 address of the gateway through which the target network can be reached</td>
         <td>Indicates the IPv6 address of the gateway through which the target network can be reached.</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Metric</td>
         <td>Metric</td>
         <td>integer [0..4,294,967,295]; Default: <b>none</b></td>
         <td>integer [0..4,294,967,295]; Default: <b>none</b></td>
         <td>Metrics help the router choose the best route among multiple feasible routes to a destination. The route will go in the direction of the gateway with the lowest metric value</td>
         <td>Metrics help the router choose the best route among multiple feasible routes to a destination. The route will go in the direction of the gateway with the lowest metric value.</td>
     </tr>
     </tr>
</table>
</table>

Revision as of 12:48, 22 October 2020

The information in this page is updated in accordance with the [[Media:_WEBUI.bin|]] firmware version.

Summary

The Routes page displays the router's ARP table and active IPv4 and IPv6 routes. This chapter is an overview of the Routes page of {{{name}}} routers.

ARP

The Address Resolution Protocol (ARP) is a communication protocol used for mapping an Internet Protocol address (IP address) to a physical machine's link layer address (MAC address) belonging to the local network.

The ARP section displays the router's ARP cache (also known as ARP table) data. The ARP cache contains information on each known MAC address and its corresponding IP address. When the router receives a packet destined for a local host, the ARP program attempts to find a physical host or MAC address in the ARP cache that matches the IP address. If the ARP cache doesn't contain the needed IP address, ARP broadcasts a request packet to all LAN machines in order to find the device with the IP address in question.

The figure below is an example of the ARP cache section:

Field name Value Description
IP address ip; Default: none IP address of a local host.
MAC address mac; Default: none MAC address of a local host.
Interface string; Default: none Interface through which the router is associated with the host.

You can also view the ARP cache via shell using the arp or ip neigh commands, depending on which output your prefer:

root@Teltonika-{{{name}}}:~# arp
IP address       HW type     Flags       HW address            Mask     Device
192.168.1.103    0x1         0x2         ac:e2:d3:00:00:00     *        br-lan
192.168.1.151    0x1         0x2         18:d6:c7:00:00:00     *        br-lan
root@Teltonika-{{{name}}}:~# ip neigh
192.168.1.103 dev br-lan lladdr ac:e2:d3:00:00:00 REACHABLE
192.168.1.151 dev br-lan lladdr 18:d6:c7:00:00:00 REACHABLE

Active IP routes

The Active IP routes section displays the router's routing table. A routing table contains a list of routes to network destinations associated with and known by the router.

The figure below is an example of the Active IP routes section:

Field name Value Description
Network string; Default: none Associated network interface name.
Target ip | ip/netmask; Default: none Destination network address.
IP gateway ip; Default: none Indicates the IP address of the gateway through which the target network can be reached.
Metric integer [0..4,294,967,295]; Default: none Metrics help the router choose the best route among multiple feasible routes to a destination. The route will go in the direction of the gateway with the lowest metric value.


You can also view the routing table via shell using the route or ip route commands, depending on which output your prefer:

root@Teltonika-{{{name}}}:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.1.179.213    0.0.0.0         UG    0      0        0 wwan0
10.1.179.208    *               255.255.255.248 U     10     0        0 wwan0
10.1.179.213    *               255.255.255.255 UH    10     0        0 wwan0
192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan
root@Teltonika-{{{name}}}:~# ip route
default via 10.1.179.213 dev wwan0
10.1.179.208/29 dev wwan0  proto static  scope link  metric 10
10.1.179.213 dev wwan0  proto static  scope link  src 10.1.179.212  metric 10
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.1

Active IPv6 routes

The Active IPv6 routes section displays the router's IPv6 routing table.

The figure below is an example of the Active IPv6 routes section:

Field name Value Description
Network string; Default: none Associated network interface name.
Target ip6 | ip6/netmask; Default: none Destination network address.
IP gateway ip6; Default: none Indicates the IPv6 address of the gateway through which the target network can be reached.
Metric integer [0..4,294,967,295]; Default: none Metrics help the router choose the best route among multiple feasible routes to a destination. The route will go in the direction of the gateway with the lowest metric value.

You can also view the routing table via shell using the route -A inet6 or ip -6 route show commands, depending on which output your prefer:

root@Teltonika-{{{name}}}:~# ip -6 route
fe80::/64 dev wwan0  proto kernel  metric 256

[[Category:{{{name}}} Status section]]