# suse-linux-12-configuring-ip-alias

**URL:** <https://forums.suse.com/t/suse-linux-12-configuring-ip-alias/25262>\
**Category:** SLED Networking\
**Created:** [March 14, 2014, 12:40am UTC](https://forums.suse.com/t/suse-linux-12-configuring-ip-alias/25262 "2014-03-14T00:40:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeepbr](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pradeepbr](https://forums.suse.com/u/pradeepbr)\
**Post date:** [March 14, 2014, 12:40am UTC](https://forums.suse.com/t/suse-linux-12-configuring-ip-alias/25262/1 "2014-03-14T00:40:08Z")

</div>

I want to setup an IP address alias on a network card. I created a file /etc/sysconfig/network/ifcfg-ens160 and its contents are:

BOOTPROTO=‘static’  
STARTMODE=‘onboot’  
IPADDR=‘192.168.0.113’  
NETMASK=‘255.255.255.0’  
BROADCAST=’’  
ETHTOOL\_OPTIONS=’’  
MTU=’’  
NAME=’’  
NETWORK=’’  
REMOTE\_IPADDR=’’  
IPADDR\_0=‘192.168.0.194’  
NETMASK\_0=‘255.255.255.0’  
LABEL\_0=‘0’

Restarted network using systemctl restart network.service. Still when I do ifconfig -a I do not get IP address from alias (IPADDR\_0) only it shows IP address mentioned in IPADDR.

When I do individual interface restart:

ifdown ens160:0  
ifdown: no matching interfaces

ifup ens160:0  
wicked: No valid configuration files found at /etc/wicked/ifconfig  
ifup: no matching interfaces

I have also configured the ip alias setting via Yast, it gives me identical config file but the results in ifconfig -a does not show the ip alias

I suspect that I have to create a config file in /etc/wicked/ifconfig to make this work. But don’t know how to do it.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [March 14, 2014, 1:52am UTC](https://forums.suse.com/t/suse-linux-12-configuring-ip-alias/25262/2 "2014-03-14T01:52:44Z")

</div>

> [@](#):
>
> On Thu 13 Mar 2014 10:44:01 PM CDT, pradeepbr wrote:
> 
> I want to setup an IP address alias on a network card. I created a file  
> /etc/sysconfig/network/ifcfg-ens160 and its contents are:
> 
> BOOTPROTO=‘static’  
> STARTMODE=‘onboot’  
> IPADDR=‘192.168.0.113’  
> NETMASK=‘255.255.255.0’  
> BROADCAST=‘’  
> ETHTOOL\_OPTIONS=‘’  
> MTU=‘’  
> NAME=‘’  
> NETWORK=‘’  
> REMOTE\_IPADDR=‘’  
> IPADDR\_0=‘192.168.0.194’  
> NETMASK\_0=‘255.255.255.0’  
> LABEL\_0=‘0’
> 
> Restarted network using systemctl restart network.service. Still when I  
> do ifconfig -a I do not get IP address from alias (IPADDR\_0) only it  
> shows IP address mentioned in IPADDR.
> 
> When I do individual interface restart:
> 
> ifdown ens160:0  
> ifdown: no matching interfaces
> 
> ifup ens160:0  
> wicked: No valid configuration files found at /etc/wicked/ifconfig  
> ifup: no matching interfaces
> 
> I have also configured the ip alias setting via Yast, it gives me  
> identical config file but the results in ifconfig -a does not show the  
> ip alias
> 
> I suspect that I have to create a config file in /etc/wicked/ifconfig to  
> make this work. But don’t know how to do it.

Hi  
There is no suse-linux-12?

Can you post the output from;

```auto
cat /etc/SuSE-release
```

Just to confirm the operating system, as the current releases of SLE  
don’t use the new interface names or wickd.

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![pradeepbr](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pradeepbr](https://forums.suse.com/u/pradeepbr)\
**Post date:** [March 14, 2014, 2:36am UTC](https://forums.suse.com/t/suse-linux-12-configuring-ip-alias/25262/3 "2014-03-14T02:36:11Z")

</div>

I am using SLES 12 Beta

Below is the output from cat /etc/SuSE-release  
VERSION = 12  
PATCHLEVEL = 0

# This file is deprecated and will be removed in a future service pack or release

# Please check /etc/os-release for details about this release

Below is output of /etc/os-release  
NAME=“SLES”  
VERSION=“12”  
VERSION\_ID=“12”  
PRETTY\_NAME=“SUSE Linux Enterprise Server 12”  
ID=“sles”  
ANSI\_COLOR=“0;32”  
CPE\_NAME=“cpe:/o:suse:sles:12”

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [March 14, 2014, 3:29am UTC](https://forums.suse.com/t/suse-linux-12-configuring-ip-alias/25262/4 "2014-03-14T03:29:34Z")

</div>

> [@](#):
>
> On Fri 14 Mar 2014 12:44:02 AM CDT, pradeepbr wrote:
> 
> I am using SLES 12 Beta
> 
> Below is the output from cat /etc/SuSE-release  
> VERSION = 12  
> PATCHLEVEL = 0
> 
> # This file is deprecated and will be removed in a future service pack
> 
> or release
> 
> # Please check /etc/os-release for details about this release
> 
> Below is output of /etc/os-release  
> NAME=“SLES”  
> VERSION=“12”  
> VERSION\_ID=“12”  
> PRETTY\_NAME=“SUSE Linux Enterprise Server 12”  
> ID=“sles”  
> ANSI\_COLOR=“0;32”  
> CPE\_NAME=“cpe:/o:suse:sles:12”

Hi  
You will need to ask your questions in the Beta Mailing List.

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![pradeepbr](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@pradeepbr](https://forums.suse.com/u/pradeepbr)\
**Post date:** [March 14, 2014, 5:24am UTC](https://forums.suse.com/t/suse-linux-12-configuring-ip-alias/25262/5 "2014-03-14T05:24:32Z")

</div>

Hi Malcolm,  
Can you please point me to Beta Mailing list.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [March 14, 2014, 5:51am UTC](https://forums.suse.com/t/suse-linux-12-configuring-ip-alias/25262/6 "2014-03-14T05:51:37Z")

</div>

[QUOTE=pradeepbr;19903]Hi Malcolm,  
Can you please point me to Beta Mailing list.[/QUOTE]  
Hi  
Since it’s a closed beta, you should have received an email with the relevant information?
