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;
Code:
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!