LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-27-2008, 06:22 PM   #1
that Linux guy
LQ Newbie
 
Registered: Jan 2008
Location: Waterford, Mi
Distribution: Debian/Ubuntu and Solaris 10
Posts: 15

Rep: Reputation: 0
Trouble configuring 2 network cards.in Debian Etch


Hey all. I'm trying to set up a machine to act as a firewall/DHCP server and am having trouble getting the system to use both cards. I'm running a base install of Debian Etch by the way.

Using ifconfig, I can only see Eth0 and Lo, but if I say ifconfig Eth1, I'll get info on it. I did hand modify my /etc/network/interfaces file to use both Eth0 and Eth1. My interfaces file looks like this (without commented lines)

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

(What I added myself)

allow-hotplug eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.1.255

Any ideas what's going on here? Thanks for any help/insight in advance.
 
Old 05-27-2008, 07:40 PM   #2
Takla
Member
 
Registered: Aug 2006
Distribution: Debian
Posts: 188

Rep: Reputation: 33
For my LAN facing wired static interface (eth0) I don't use allow-hotplug, I use auto eth0 so that it is up when I boot (is not waiting for a hotplug event) and also don't specify the broadcast address. My interfaces file looks like this and works fine:

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0

allow-hotplug wlan0
iface wlan0 inet dhcp

allow-hotplug eth1
iface eth1 inet dhcp
(I have 2 wireless interfaces, one wlan0 built into laptop and another USB interface eth1 which is better with weak signals and not always connected). This config allows eth0 to always be up awaiting connections from LAN and I use Wicd to manage the internet facing wireless interfaces (so it ignores the config for wlan0 and eth1 anyway).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Exim routing Debian Etch wonderd Linux - Server 3 06-18-2007 07:42 PM
Configuring 2 Network Cards tubatodd Slackware 6 11-23-2006 04:07 PM
Supported wlan cards in Debian Etch Double J Debian 1 04-12-2006 05:53 AM
configuring my network cards zerog Linux - Networking 2 12-31-2005 06:51 AM
configuring 2 network cards? julc Slackware 1 01-11-2005 08:44 AM


All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration