I'd got the same question and the most elegant way that I've found is to
start it in another script, not in "networking", for example
/etc/init.d/eth1
#!/bin/bash
case "$1" in
start)
/sbin/ifconfig eth1 up
;;
stop)
/sbin/ifconfig eth1 down
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop}"
exit 1
;;
esac
and make an update-rc.d eth1 defaults 10.
I don't know if this way is the debian way but sure it's a linux way ;-)
From: Kostas Magkos <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED], debian-user@lists.debian.org
To: debian-user@lists.debian.org
Subject: starting eth without IP address
Date: Thu, 20 Oct 2005 11:00:56 +0300
Hi list,
I have a sarge system with two NICs. I want to start eth1 without an IP
address and with no ARP running, so as to use it just for sniffing. I can't
figure out how do that.
Nothing I tried putting in /etc/network/interfaces works. The net startup
script always complains about missing configuration and of course eth1
isn't started. As a temporary solution I added a 'ifconfig eth1 up' line in
/etc/init.d/networking but I really don't like this approach. I don't think
that it's even the right thing to do cause of upgrade issues.
Is there a more elegant solution? What is the debian way?
Any help much appreciated,
thanx in advance!
~
kmag
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a
subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]