Results 1 to 6 of 6

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

Threaded View

  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

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
  •