Re: 2 Network Cards
On Fri, 1 Feb 2008 20:44:11 -0500
"Douglas A. Tutty" <dtutty@porchlight.ca> wrote:
> On Fri, Feb 01, 2008 at 04:37:03PM -0800, Raquel wrote:
> > On Fri, 1 Feb 2008 16:09:00 -0800
> > Raquel <raquel@thericehouse.net> wrote:
> >
> > > I have 2 network cards in this machine. Currently only one of
> > > those cards is setup but now I have need to setup another. The
> > > current /etc/network/interfaces looks like:
> > > # The primary network interface
> > > allow-hotplug eth0
> > > iface eth0 inet static
> > > address 99.999.999.137
> > > netmask 255.255.255.248
> > > network 99.999.999.136
> > > broadcast 99.999.999.999
> > > gateway 99.999.999.999
> > > dns-nameservers 99.999.999.999 99.999.999.999
> > > dns-search domain.com
> > >
> >
> > Let me make a few changes. In order to get eth1 to also work,
> > can I add to /etc/network/interfaces:
> >
> > # The secondary network interface
> > allow-hotplug eth1
> > iface eth1 inet static
> > address 99.999.999.138
> > netmask 255.255.255.248
> > network 99.999.999.136
> > broadcast 99.999.999.999
> > gateway 99.999.999.999
> > dns-nameservers 99.999.999.999 99.999.999.999
> > dns-search domain.com
> >
> > Is there anything else I need to watch out for? I know that the
> > firewall needs to be changed.
> >
>
> Looks fine to me, as long as all the "9"s are place-holders for real
> numbers. It doesn't make sense to have two NICs in one box on the
> same network.
>
> Doug.
>
Thanks, Doug. Yes. The "9"s are place-holders. I've not been using
the second nic because it wasn't needed. However, now I want to host
2 different SSL hosts using named virtual hosts. So, I need a second
IP and I'm dipping into my range of IP numbers.
--
Raquel
============================================================
The arc of the moral universe is long, but it bends towards justice.
--Martin Luther King, Jr.
Reply to: