Mon 16 Oct 2006
the Ethernet broadcast address. Sometimes, an optional mask value is used to publish a single Ethernet address for an entire subnet. In that case, the mask required for the specific subnet is used. However, this is not recommended. Subnets should be connected through routing, not through proxy ARP. Proxy ARP ARP requests are sent via Ethernet broadcasts. It is possible for a host to connect to an Ethernet through another network technology that cannot respond to an ARP request. To address this problem, you can use proxy ARP. Assume that two systems connect to subnet 172.16.55.0 through bluejay using some hardware that does not respond to ARP requests. Both killdeer (172.16.55.8) and meadowlark (172.16.55.23) systems have been assigned addresses on subnet 172.16.55.0. bluejay is configured to provide proxy ARP for both systems with the following commands: # arp -s killdeer 00:00:C0:4F:3E:DD pub # arp -s meadowlark 00:00:C0:4F:3E:DD pub # arp killdeer Address HWtype HWaddress Flags Mask Iface killdeer ether 00:00:C0:4F:3E:DD CMP eth0 # arp meadowlark Address HWtype HWaddress Flags Mask Iface meadowlark ether 00:00:C0:4F:3E:DD CMP eth0 The s command-line argument tells arp that this is a static entry, and the pub argument says that this entry will be published. Notice that the same Ethernet address is used for both killdeer and meadowlark, and that the address is the Ethernet address of bluejay. bluejay responds to ARP requests with its own Ethernet address so that it receives packets bound for killdeer and meadowlark. Because bluejay is configured to forward packets, when it receives packets for these systems, it sends those packets to the correct host through the non-Ethernet hardware those systems use. The IP address must be converted to a Physical layer address for all types of external data delivery, whether the system is making a direct delivery or forwarding a packet for further processing. A traditional host only accepts packets from the network that are addressed to the host. It does not accept packets addressed to other hosts or forward those packets on. Routers, on the other hand, do exactly that. To get this behavior, you must enable forwarding on a router. Enabling IP Packet Forwarding When a computer forwards a packet that it has received from the network on to a remote system, it is called IP forwarding. All Linux systems can be configured to forward IP packets. In general, hosts do not forward datagrams, but routers must. 196
Hint: This post is supported by Gama besplatan domen provider