Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Ubuntu 10.04

I'm using Clonezilla to create and install a customized image. I'd like to be able to set up multiple static IP addresses. For example, I'd like the first interface to have the IP and the second interface to have the IP

I have tried setting up two connections using NetworkManager, but can't associate a specific MAC address with them as these will be different for all target machines. Because of this, NetworkManager sets both adapters to the same IP address (

I clear the udev network rules before imaging, so all machines are guaranteed to have an eth0 interface. However some targets are going to use a USB NIC adapter for the second interface, so they are not guaranteed to have an eth1. That is, it's possible that different USB NIC adapters will be used, and Linux will assign each a new interface name.

Is there any way to assign the two IP addresses to the different adapters without the second having a fixed name using NetworkManager or /etc/network/interfaces?

share|improve this question
I think the easiest place is in the Udev configuration: define an alias for your Ethernet devices that doesn't depend on the hardware type. See changing the names of network interfaces, debian wheezy for inspiration. – Gilles Mar 19 '12 at 19:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.