Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

I'm struggling to setup virtual eth interface on Suse 12

When I run:

ipconfig eth0:1 netmask

Output from ifconfig is as expected:

eth0      Link encap:Ethernet  HWaddr 00:01:02:03:04:05
          inet addr:  Bcast:  Mask:

eth0:1    Link encap:Ethernet  HWaddr 00:01:02:03:04:05
          inet addr:  Bcast:  Mask:

lo        Link encap:Local Loopback
          inet addr:  Mask:

However this setup is not persistent. When the system is restarted I can no longer see eth0:1

I tried adding the IPADDR1='' to the /etc/sysconfig/network/if-eth0 config file and that seems to be working fine BUT I cannot see eth0:1 in the ifconfig output ?

am I missing something?

share|improve this question

migrated from serverfault.com Apr 10 '15 at 21:46

This question came from our site for system and network administrators.

up vote 0 down vote accepted

After long search I have found the answer: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/Documentation/networking/alias.txt

Looks like virtual/alias interfaces are deprecated and should be avoided and one should rather add multiple IP addresses directly to eth0

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.