Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-07-2009, 05:14 AM   #1
Registered: Dec 2004
Location: Sweden
Distribution: Debian 5
Posts: 31

Rep: Reputation: 15
Problem with the second network card

Hi all!

I have a problem with my server. I have installed my Debian 5 machine with kernel version 2.6.26-2-amd64.

I want to configure Debian machine to act like router/firewall.
I have 2 network cards inside and I want to configure in the next way but I can't bring up the second network interface.

ISP modem ----> first NIC (eth0) -----> second NIC (eth1) ---->local network(switch)

I have the follow configuration in /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface (extern)
auto eth0
iface eth0 inet static


#The secondary network interface (intern)
auto eth1
iface eth1 inet static

My configuration in /etc/hosts is:
Quote: localhost.localdomain localhost server1
And now the problem which come when I run "/etc/init.d/networking restart " is:

server1:/home/texvol# /etc/init.d/networking restart
Reconfiguring network interfaces...if-up.d/mountnfs[eth0]: waiting for interface eth1 before doing NFS mounts (warning).
Don't seem to be have all the variables for eth1/inet.
Failed to bring up eth1.
Every help is welcome, please tell me what I did wrong and what I need to configure more to bring the second card alive.

I am new to Linux server world and any comment please write it as you write it to a beginner.


Last edited by CompiMan; 05-07-2009 at 06:54 AM.
Old 05-07-2009, 06:56 AM   #2
Registered: Aug 2008
Location: Denmark
Distribution: Fedora, Ubuntu, Solaris
Posts: 35

Rep: Reputation: 19

You have a small typing error in the settings for eth1, your missing a "d"


Old 05-11-2009, 02:59 AM   #3
Registered: Dec 2004
Location: Sweden
Distribution: Debian 5
Posts: 31

Original Poster
Rep: Reputation: 15
Problem solved

YES it was that error who took me 2 days to find it.

Thanks for your good observing eyes.

My second network card just came to life when I corected that little, little error who took me as I said 2 days to solve it.
Old 05-11-2009, 07:03 AM   #4
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
sometimes a second set of eyes on a problem is very useful. I know I've stared at configs before going "I don't see antything wrong" someone else looks and finds an issue similar to the one above.. So you're not alone
Old 05-11-2009, 05:17 PM   #5
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
That's why I like config-testing utilities, like the "testparm" tool you get with Samba. God only knows how many times I've made errors in Samba configs and found out about them that way.


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
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
linux shuts down built in network card then windows tells me network card is unplugge lesmoxhaybaker SUSE / openSUSE 8 08-29-2006 05:10 PM
network card issue (the card itself no network problem) Youri Linux - Hardware 2 01-23-2006 08:58 AM
Problem with setting up network card / network ssmeets Linux - Hardware 3 11-03-2005 03:46 PM
Problem with Network Card sync Linux - Networking 5 06-24-2003 03:08 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:41 AM.

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