| « shopamex and Duracell DPP-600HD | DVD: Transporter 3 » |
While at work this morning, I tried to ssh into 'box'....mainly to make it see the changed ssh host keys. But, turned out it was a test to see that it was working correctly.
I couldn't get to the second ip on 'box'. All my linux servers have 2 IPs, so from the outside they can be hit by either gateway. Using ip route/ip rule, it makes the packets go back out to the correct default gateway for the IP.
Well, turns out the second IP doesn't show up after a boot. If I do '/etc/init.d/networking restart', it appears. But, reboot...and its gone.
After much fiddling, searching, trial and error....I eventually stumbled on it.
The configs were basically the same as my ubuntu 8.04LTS server. Three 'auto' lines for each of the 'iface's. I had tried combining the eth0 entries to 'auto eth0 eth0:0', but that didn't work.
On a whim, I finally tried having only a single 'auto' line -- 'auto lo eth0 eth0:0' in /etc/network/interfaces. That finally made it have both eth0 and eht0:0 after a reboot. ![]()
Now I can ssh into 'box' via either of my gateways. 
Trackback URL (right click and copy shortcut/link location)