Suse Linux Add IP Address Aliases

Posted on in Categories , , , last updated March 18, 2009

How do I add more than two IP address under Suse Linux Enterprise Server (SLES 10) or OpenSuse Linux?

Under Suse / OpenSuse Linux you need to use a tool called YaST to add multiple ip address to ethernet interface.

Open terminal (if it is a remote box, use ssh).

Login as root.

Type the following command to configure LAN interface using YaST:
# yast2 lan
Press Alt+N to goto the Next page:

Suse Linux yast2: Adding Secondary IP Aliase
Suse Linux yast2: Adding Secondary IP Aliase

Now use [Tab] key to select interface such as eth0 or eth1.

Press [ALT+I] to edit interface such as eth1.

Press [Alt+V] to select Advanced option.

Select Additional Addresses.

Press [Alt+D] to Add additional address.

Now input the IP Address in the following box. Input the Netmask in the last box.

Press [Alt+O] to continue through OK box.

Press [Alt+N] for the Next screen session.

Finally, review the new configuration and press [Alt+F] to Finish the configuration. YaST will go through and update your configuration files and bring up your network interfaces.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment