I'm not much of a TCP/IP person so please forgive me if this is a simple answer, but I think I've tried everything I can think of. Here's the problem. I run a small co-located server that I currently host my friends on, as well as a few clients. I do IP based hosting, and have just run out of my initial allotment of IPs from my ISP.
The two blocks of IP's are on different subnets, and I'm having a tough time getting it configured. Here's an example of my IP blocks. (IP Addys withheld to protect the guilty!)
I have included a lot of detail so that someone smarter than me can double check my math!
range: xxx.xxx.177.66 thru 78
range: xxx.xxx.144.50 thru 61
The server's primary IP address is xxx.xxx.177.66, and default gateway is xxx.xxx.177.65. All aliased IP addresses work on the first block, no problem. I attempted to add an IP alias on the second block by first using 'ifconfig' like so:
ifconfig eth0:1 netmask 255.255.255.240 broadcast xxx.xxx.144.62 xxx.xxx.144.51
then I attempted to add another default gateway, using:
route add default gw xxx.xxx.144.49 dev eth0:1
I can ping myself with no problem when logged into the box via SSH, but from remote, I get the dreaded 'Destination Unreachable' errors. I know I'm not doing this right, can someone please tell me what I'm not doing, or doing wrong, or at least which bridge to jump off of?