Template:Networking rut manual routes: Difference between revisions

From Teltonika Networks Wiki
(Created page with "==Summary== The <b>Routes</b> 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. ==A...")
 
No edit summary
Line 7: Line 7:
The <b>Address Resolution Protocol</b> (<b>ARP</b>) 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 <b>Address Resolution Protocol</b> (<b>ARP</b>) 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 <b>ARP cache</b> (also known as ARP table) data. The ARP cache is used to maintain a correlation between each MAC address and its corresponding IP address. ARP provides the protocol rules for making this correlation and providing address conversion in both directions.
The ARP section displays the router's <b>ARP cache</b> (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.


When an incoming packet destined for a host machine on a particular local area network arrives at a gateway, the gateway asks the ARP program to find a physical host or MAC address that matches the IP address. The ARP program looks in the ARP cache and, if it finds the address, provides it so that the packet can be converted to the right packet length and format and sent to the machine. If no entry is found for the IP address, ARP broadcasts a request packet in a special format to all the machines on the LAN to see if one machine knows that it has that IP address associated with it. A machine that recognizes the IP address as its own returns a reply so indicating. ARP updates the ARP cache for future reference and then sends the packet to the MAC address that replied.
The figure below is an example of the ARP cache section:


[[File:{{{file_arp}}}]]
[[File:{{{file_arp}}}]]


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


  root@Teltonika-{{{name}}}:~# <b>arp</b>
  root@Teltonika-{{{name}}}:~# <b>arp</b>

Revision as of 13:43, 8 March 2019

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:

[[File:{{{file_arp}}}]]

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

[[File:{{{file_ipv4_routes}}}]]

Active IPv6 routes

[[File:{{{file_ipv6_routes}}}]]

[[Category:{{{name}}} WebUI]]