Take Linux Routing to the Next Level with iproute2 - Page 2
Display ARP Table
$ ip neigh show
192.168.1.1 dev eth0 lladdr 00:60:97:99:3f:21 nud reachable
192.168.1.10 dev eth0 lladdr 00:0a:e4:40:8b:fd nud stale
"nud" means "Neighbour Unreachability Detection." The first line of output tells you the IP, interface, and hardware (MAC) address, and that the host is up and reachable. On the second line "nud stale" means the host has not been contacted recently and the entry is ready to time out. Typically an entry in the cache has a lifetime of about 15 minutes. To refresh the ARP table entry simply ping the host.
To do actual routing requires that certain features are enabled in the kernel. All you need for basic routing is
This sample from /boot/config-2.6.8 file shows a complete routing feature set enabled. This shows every routing-related option available:
# Networking options
# CONFIG_IP_PNP is not set
# CONFIG_ARPD is not set
IP_PNP is for diskless terminals, and ARPD is obsolete and should not be used.
See how easy iproute2 is? You don't need to spend gobs of money on some expensive commercial thingy. Come back next week to learn how to build both static and dynamic routes.
- the Linux Advanced Routing & Traffic
- See man (8) ip for complete ip command options and definitions of terms shown in
the command outputs
- RFC 1123 - Requirements for Internet Hosts
- RFC 1812 - Requirements for IP Version 4 Routers
Spoonful Of CIDR Helps the Routing Tables Go Down
- IPCalc, for calculating IP