[CentOS] binding additional IP addresses to centos6 on one interface

Mon Nov 14 00:44:29 UTC 2011
Ljubomir Ljubojevic <office at plnet.rs>

Vreme: 11/14/2011 01:28 AM, John R Pierce piše:
> On 11/13/11 4:15 PM, Ljubomir Ljubojevic wrote:
>> 255.255.255.248 gives you 6 (six), not 10 IP's.
>
> and one of those 6 is typically reserved for the gateway IP, leaving 5
> usable hosts.
>
Does not have to be. System they are on can be designated gateway.

- Router A = ISP's router and default gateway to system B.
- System B (our server) has /30 subnet used to link router A (one IP) 
and system B (other IP = xxx).
- On Router A route/direct /29 subnet (our 6 IP's) to point to System 
B's main IP (other IP = xxx).
- Place all 6 IP's from subnet /29 as aliases to system B and DNAT/SNAT 
internal IP's to them.

All router A will now is that traffic is coming from that /29 subnet 
(those 6 IP's), and it will not care how they reached them. The response 
traffic will be directed/routed via System B's main IP and system B will 
accept them as it's own IP's and do what ever it is supposed to do.

-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant