LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-07-2009, 05:14 AM   #1
CompiMan
Member
 
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
Quote:
# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

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

address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

#The secondary network interface (intern)
auto eth1
iface eth1 inet static
adress 172.16.10.1
netmask 255.255.255.0
network 172.16.0.0
broadcast 172.16.255.255

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

Quote:
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.
done.
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.

Thanks,
compiman

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

Rep: Reputation: 19
Hi,

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

"adress 172.16.10.1"

Ian
 
Old 05-11-2009, 02:59 AM   #3
CompiMan
Member
 
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
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:05 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
Open Source Consulting | Domain Registration