To add IP address aliases to a Suse Linux system, follow these steps:
Open a terminal window.
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
.
ip
command to verify that the alias was added. For example:ip address show
/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
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.