urgent prob with gateway change on secondary IP address

Oliver Marshall Oliver.Marshall at g2support.com
Fri Aug 27 14:40:52 UTC 2010


We have a ubuntu server with one nic. Assigned to that nic are two IPs. One IP is assigned via DHCP the other is manually configured in /etc/network/interfaces.

We have just replaced the firewall with a new one and so the gateway IP has changed. The gateway assigned via DHCP changed as soon as we restarted the networking service. However the manually assigned in the interfaces file doesn't appear to be being picked up or being used, or something. External requests for pages hosted on the manually assigned address dont get served though pages on the DHCP address show up fine.

Here's the config -> DHCP -> Manually assigned.

Here's the interfaces file;

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

auto eth0:1
iface eth0:1 inet static

If I issue a route command I see that both gateways appear to be showing;

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface       *        U     0      0        0 eth0
default         UG    100    0        0 eth0
default         UG    100    0        0 eth0

However, nothing will get pages from the sites on .244 (thats the manual one) to show up for users on the internet. They work fine internally, and equally the firewall rule works fine if we point it at another internal web server, but that one IP jsut refuses to play ball.

It appears just like a gateway/routing issue but I can't see the problem.

Any advice?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100827/8b62d362/attachment.html>

More information about the ubuntu-users mailing list