![]() ![]() Another for specifying the default gateway for that interface. One for the subnet so that the IP address can find its gateway. This will allow us to use that table name with our further policy routes. To accomplish this, we will need to setup the routing tables on each additional interface excluding the interface managing the default gateway for the system.įirst we will create an entry in the rt_tables file. This will allow the IP address attempting a reply to route the reply through a router that can get the response back to the host initiating the connection. So to counter act this issue, with Linux, you can setup additional routing tables, so when we setup a routing table for each interface we have, we can allow the IP address on that interface to have its own default route. They are also unaware of the router specified for their own subnet. The IP addresses on those interfaces are only aware of their own subnet, and cannot even find the subnet containing the default route out of the system. The reason for this is because those interfaces do not know how to route back to you. However, with the other IP addresses on the host, you will not. As you can see in this diagram, With HOST-A having a default route of 10.200.5.203, you can receive a reply from the IP address within that subnet. Actually, it's not the reaching them part that is the issue it's their response. However, there is the rare occassion that you would need to be able to reach each of the IP addresses in separate subnets on a single host from external subnets. Thereby, not needing to route through the default gateway. The other NICs would be for heartbeat traffic and communicate with other systems within the same subnet. In the second case, you would have a NIC designated for transmission of data that would reach other subnets and, therefore, go through the default gateway. You could even place these common-subnet IP addresses on interface aliases of a single NIC. In the first case, all IP addresses can utilize the default gateway to get out of the system. Most of the time, any additional IP addresses on a system will either reside on the same subnet or you will have some sort of heartbeat network in a cluster. Generally speaking, it's rare that you will need to have multiple network interfaces on a system and need to reach all the IP addresses on the system via external subnets. 3.1 /etc/sysconfig/network-scripts/ifcfg-eth1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |