arptables_jf” or Section 3.2.2, “Direct Routing and iptables” for more information.
arptables_jfarptables_jf, each real server must have their virtual IP address configured, so they can directly route packets. ARP requests for the VIP are ignored entirely by the real servers, and any ARP packets that might otherwise be sent containing the VIPs are mangled to contain the real server's IP instead of the VIPs.
arptables_jf method, applications may bind to each individual VIP or port that the real server is servicing. For example, the arptables_jf method allows multiple instances of Apache HTTP Server to be running bound explicitly to different VIPs on the system. There are also significant performance advantages to using arptables_jf over the iptables option.
arptables_jf method, VIPs can not be configured to start on boot using standard Red Hat Enterprise Linux system configuration tools.
eth0):
arptables -A IN -d <virtual_ip> -j DROP arptables -A OUT -s <virtual_ip> -j mangle --mangle-ip-s <real_ip>
service arptables_jf save
chkconfig --level 2345 arptables_jf on
chkconfig command will cause the system to reload the arptables configuration on bootup — before the network is started.
ifconfig to create an IP alias. For example:
# ifconfig eth0:1 192.168.76.24 netmask 255.255.252.0 broadcast 192.168.79.255 upiproute2 utility ip, for example:
# ip addr add 192.168.76.24 dev eth0/etc/rc.d/rc.local.