Ebooks
Linux Networking Cookbook : Over 401 Recipes To Help You Set Up and Configure Linux Network
When you configure an IP address on a Linux system, you automatically have a route defined,
which states that in order to access another IP address in the same subnet, you should use
0.0.0.0 as your gateway. This tells the IP stack that the system, if it exists, will be on the same
layer as the two network segments, and that it should use ARP to determine the MAC address
it should communicate with.
If you want to talk to a machine outside of that subnet, the system will need to know how
to communicate with it. This is done by defining a route with a gateway IP address that you
forward the packet to. You then depend on the gateway system to forward the packet to the
correct destination.
Most commonly, you'll deal with a default route, which is the route that the system uses for
any packet that is not deemed to be local. In our configuration, we tell the system that the
default route is 192.168.0.1, which asks us to forward any non-local packets to an IP address
configured on our server 1 box. This means that server 1 will act as our router
Tidak ada salinan data
Tidak tersedia versi lain