Re: 2 IPs on 1 Network Card
On 29 Apr 2003 23:04:41 -0500
Stephen Hargrove <email@example.com> wrote:
> This is a weird one, so hopefully someone out there has tread before me.
> eth0 is defined as 192.168.29.43. On that same NIC, I need to define
> eth0:0 as 216.63.319.43. Here's my /etc/network/interfaces:
> auto eth0:0
> iface eth0:0 inet static
> address 18.104.22.168
> netmask 255.255.255.248
> network 22.214.171.124
> broadcast 126.96.36.199
> gateway 188.8.131.52
> This sets up fine, but I can't communicate out eth0:0. I'm positive
> that it has something to do with the default gateway.
I've only done this once and it was a long time ago, but doesn't the second
interface need to be eth0:1?
As for the gateway, perhaps I need more fingers but it looks like your
gateway isn't on the same subnet as your host. I don't think that works