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 126.96.36.199
> netmask 255.255.255.248
> network 188.8.131.52
> broadcast 184.108.40.206
> gateway 220.127.116.11
> 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