PDA

View Full Version : suse-linux-12-configuring-ip-alias



pradeepbr
13-Mar-2014, 23:40
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.

malcolmlewis
14-Mar-2014, 00:52
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;


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!

pradeepbr
14-Mar-2014, 01:36
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"

malcolmlewis
14-Mar-2014, 02:29
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!

pradeepbr
14-Mar-2014, 04:24
Hi Malcolm,
Can you please point me to Beta Mailing list.

malcolmlewis
14-Mar-2014, 04:51
Hi Malcolm,
Can you please point me to Beta Mailing list.
Hi
Since it's a closed beta, you should have received an email with the relevant information?