[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: configure interface no ip-address

I am not sure if this is the correct way to do things here but this is what i did. I created a script in /etc/init.d called 'eth0up' as follows and then use 'update-rc.d eth0up defaults' to create the start up links to the script

#! /bin/sh
set -e

# /etc/init.d/eth0up: Get up eth0

export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"

case "$1" in
       echo -n "Getting up eth0..."
       ifconfig eth0 up
       echo "ok"
       echo -n "Setting down eth0..."
       ifconfig eth0 down
       echo "ok"
       echo "Usage: /etc/init.d/eth0up {start|stop}"
       exit 1

exit 0

I hope this will help all of those with the same questions

From: "Darin Marais" <darin_marais@hotmail.com>
To: debian-user@lists.debian.org
Subject: configure interface no ip-address
Date: Mon, 01 Aug 2005 15:16:46 +0200

I am trying to automatically bring up an interface on debian 2.6 ?sable installation?. The interface is to be used as the sniffing interface on a snort installation and therefore I would like to configure an interface with ?no ip-address? to be up after boot up.

The interface is configured as manual in the /etc/network/interfaces

# The primary network interface
auto eth0
iface eth0 inet manual

If the debian server reboots, the interface is not automatically enabled and requires the command ifconfig eth0 up in order to bring up the interface.

My question is:
How do you safely tell the system to bring up the interface automatically?
Are there some pre written scripts to do this and if so could you make these available? Where should the scripts be put within the default system directory structure?

thanks in advance

Get a massive 2 GB e-mail inbox - upgrade to Hotmail Plus today! http://join.msn.com/?pgmarket=en-xe&DI=1054&XAPID=1816

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Send LARGE file attachments, up to 20 MB - upgrade to MSN Hotmail Plus! http://join.msn.com/?pgmarket=en-xe&DI=1054&XAPID=1816

Reply to: