LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-02-2009, 12:42 PM   #1
carew86
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
problem with interfaces on debian


I recently reinstalled an older (celeron 633MHz) computer with debian. This pc is just for testing purpose. The computer has 2 network cards and is connected to 2 networks. Both cards have been configured with a static addresses. My interfaces file looks now like this:

auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.114
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1

auto eth0

iface eth1 inet static
address 192.168.2.114
netmask 255.255.255.0
network 192.168.2.0

Restarting the network with /etc/init.d/networking restart works fine but eth1 didn't come up. So I figured I need to add 'auto eth1' to the end of the the file. When doing that and restarting the network I get some weird warning message:

Reconfiguring network interfaces...if-up.d/mountnfs[eth0]: waiting for interface eth1 before doing NFS mounts (warning).
done.

I've never seen something like this before (I did have some other setups with 2 nic's). But i guess there are a lot of stuff I've never seen. This setup works just fine but the warning is quite annoying. Any ideas of how I do get rid of it (an elegant solution? no commenting in the script; or maybe even a reason why this happens)? btw: i don't have any nfs mounts on my system (nor in fstab or in my network i think).

Thanks in advance,

Carew
 
Old 09-03-2009, 10:59 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
It happens because the mountnfs is being run by the ifup script when eth0 is brought up. In turn, the mountnfs script checks through all the auto interfaces, and is informing you that it won't attempt to mount any nfs systems yet, because eth1 is not up (see /etc/network/if-up.d/mountnfs). This check happens as each interface is brought up. It doesn't matter if you have no nfs shares, because it does the check before even attempting to start the shares.
 
Old 09-03-2009, 05:59 PM   #3
carew86
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
and can I solve the warning?

Grtz
 
Old 09-03-2009, 10:31 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ignore it?
 
Old 09-04-2009, 01:14 AM   #5
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
If you aren't planning to automount any NFS shares, then add the following line to /etc/default/rcS:

Code:
ASYNCMOUNTNFS=no
 
Old 09-09-2009, 01:37 PM   #6
carew86
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I'll just ignore it. Because I'd like to install some nfs-shares. I just don't know yet where or how. I gotta think about that first.

But I can confirm (but not proof anymore) that I had a computer with the same setup a few years ago (different mb and processor) and I didn't get the warning.


Thanks for the help anyways.

Grtzz,

Carew
 
  


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
Removing virtual interfaces (Debian) coolster Linux - Networking 2 05-22-2009 02:57 AM
Two interfaces routing problem, Debian, kernel 2.4 clintp Linux - Networking 4 10-31-2008 01:24 AM
Debian, dhcp, and 2+ network interfaces chrisrees Linux - Newbie 3 02-15-2008 04:39 AM
[SOLVED] Debian multiple Loopback interfaces ? ionreflex Linux - Networking 1 10-02-2005 11:48 AM
Debian interfaces Fernandoch Linux - Networking 1 08-05-2005 10:20 AM

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

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