FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 07-23-2008, 08:48 AM
Armin Häberling
Default Multiple static ips and dhcp mixed

Hi all,

I'm currently setting up a development machine of ours. For testing our
application it need two static ips. it does not need to be accessible
under these ips from outside.
Another interface should be configured via dhcp. I would use a static
ip, but it's a laptop that may be used in a lots of different networks.

My /etc/network/interfaces looks like this

auto lo
iface lo inet loopback

auto eth1
iface eth1 inet dhcp

auto eth1:0
iface eth1:0 inet static

auto eth1:1
iface eth1:1 inet static

I set up the static ips in a private subnet.

The problems with this solution is that eth1:0 and eth1:0 are not set up
at boot time. They are only set up if I do a /etc/init.d/networking
restart. The second is that if I unplug the network eth1:0 and eth1:1
also go down. I would really like them to be up all the time (remeber
that I don't care if they are not accessible from another machine).

There must be a better solution for this.

Thanks in advance for your help


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

Thread Tools

All times are GMT. The time now is 05:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org