To Gain Knowledge and to become a one, who all wants to become

Dreams are not those which are seen during sleep ,but Dreams are those which do not let you sleep,so see the dreams
and work hard to make them true.

Monday, April 11, 2016

Configuring IP Alias on existing network card on OpenSuse

The Suse configuration is bit different than other Linux flavours . Instead of creating additional interface configuration files for alias IP’s like the ifcfg-ethX:X type files, you simply append new entry with the new IP address.  Here is what  ifcfg-eth1 looks like on this system with the existing NIC and IP.

1. Be root user to perform this activity .
2. Change your current directory to the /etc/sysconfig/network directory with the command:
cd /etc/sysconfig/network
 3. Check for existing network adapters with the command :
ls ifcfg-eth*
and look for a file named similar to ifcfg-eth-id-00:50:56:b8:7d:64 The colon-delimited letters & digits at the end are  MAC address of network adapter.

4. To create the new interface, you will edit ifcfg-eth-id-00:50:56:b8:7d:64. The file should contain lines similar to:


5. To add additional IP address on this machine ,you need to append a new configuration block using the same label. Add a new block and name it BB and same way you can create multiple blogs for adding multiple IP addresses ............


6. After adding new address, save the file and restart network services to activate the new IP address.
/etc/init.d/network restart