Suse Linux Add IP Address Aliases

https://‮w‬ww.lautturi.com
Suse Linux Add IP Address Aliases

To add IP address aliases to a Suse Linux system, follow these steps:

  1. Open a terminal window.

  2. Use the ip command to add the alias. For example:

sudo ip address add 192.168.1.100/24 dev eth0 label eth0:1

This will add the IP address 192.168.1.100 as an alias to the eth0 network interface, with a netmask of /24.

  1. Use the ip command to verify that the alias was added. For example:
ip address show
  1. Edit the /etc/sysconfig/network/ifcfg-eth0 file to make the changes persistent across reboots. Add the following lines to the file:
IPADDR_1=192.168.1.100
NETMASK_1=255.255.255.0
  1. Save the file and reboot your system to apply the changes.

Note: The steps above assume that you have root access to your system and that the network interface is called eth0. You will need to modify the commands and file names accordingly if your system is different.

Created Time:2017-10-30 14:27:21  Author:lautturi