FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-01-2008, 11:37 PM
Raquel
 
Default 2 Network Cards

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.

--
Raquel
================================================== ==========
The arc of the moral universe is long, but it bends towards justice.

--Martin Luther King, Jr.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-02-2008, 12:35 AM
Ken Irving
 
Default 2 Network Cards

On Fri, Feb 01, 2008 at 04:37:03PM -0800, Raquel wrote:
> On Fri, 1 Feb 2008 16:09:00 -0800 Raquel 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.

I don't think it's quite as simple as providing two separate IPs on a
single subnet, but what are you trying to do? All you say is that you
need to "setup" the second card, but why? I have plenty of systems
with 2 cards, but I've only done it to host a local net on one card,
with an upstream net connection on the other. While you haven't said
much about the "firewall", I'd suggest looking at shorewall and its docs,
only because that's where I've read about doing this sort of thing.

Ken

--
Ken Irving, fnkci+debianuser@uaf.edu


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-02-2008, 12:44 AM
"Douglas A. Tutty"
 
Default 2 Network Cards

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.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 06:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org