Results 1 to 6 of 6

Thread: suse-linux-12-configuring-ip-alias

  1. #1

    suse-linux-12-configuring-ip-alias

    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.
    Last edited by pradeepbr; 13-Mar-2014 at 23:41. Reason: minor correction

  2. Re: suse-linux-12-configuring-ip-alias

    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!


  3. #3

    Re: suse-linux-12-configuring-ip-alias

    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"

  4. Re: suse-linux-12-configuring-ip-alias

    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!


  5. #5

    Re: suse-linux-12-configuring-ip-alias

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

  6. Re: suse-linux-12-configuring-ip-alias

    Quote Originally Posted by pradeepbr View Post
    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?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •