Setting a static IP on an SDE OSD Appliance

You will need the following information in order to complete this configuration:

  • IP Address
  • Gateway Address
  • Broadcast Address
  • Netmask
  • Network Address
  • DNS Server Addresses
  • System Hostname

Ubuntu Settings

In this step you will manually configure your network interface by editing the following files using your preferred text editor(nano, gedit, vi, etc.).

You can edit the appropriate file by entering the following command into the terminal:

 sudo vi /etc/network/interfaces

Enter your sudo password.

Below is an example of how the config file looks if you have DHCP configured:

 auto lo iface lo inet loopback
auto eth0 iface eth0 inet dhcp

If you have more than one network card, please be sure to make changes to the correct network interface.

Statically configured network cards will have a section formatted as follows:

 auto lo iface lo inet loopback
auto eth0 iface eth0 inet static        


Here is a specific example:

auto lo iface lo inet loopback
auto eth0
iface eth0 inet static 

Step 2

In this step you will manually configure your DNS configuration file.

 sudo /etc/resolv.conf

Once your editor opens the file, enter the following information format:

nameserver your dns server ip) 
nameserver your alt dns server ip)

Here is an example:

nameserver nameserver

Step 3

Manually restart your network interface with the new settings:

sudo /etc/init.d/networking restart

This should return a result that looks like the following:

*Reconfiguring network interfaces… [OK]

At this point you can check if the settings are correct by entering:



RHEL/CentOS Settings

On RHEL/CentOS systems, the following three files are used to set up basic networking:

  • /etc/sysconfig/network
  • /etc/sysconfig/network-scripts/ifcfg-eth0
  • /etc/resolv.conf
  1. /etc/sysconfig/network is the file within CentOS/RHEL systems which contains your system's hostname. Here is an example:


    Set the hostname value to the Fully Qualified Domain Name (FQDN) you have chosen to use for your SD Elements Instance.

  2. Edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file.  Open the file in your favorite text editor and add or change the following lines:

    For Example:
  3. Now that you have dealt with the network interface, you need to set up the DNS.  Without DNS you will not be able to go to a website by name, or connect to anything else on the network unless you know the IP address.

    To tell the system what DNS servers to use you need to edit the /etc/resolv.conf file. Open the file in your favorite editor and add or change the following lines: (search line is optional)


Additionally, you may wish to change your /etc/hosts file to remove/comment out the IPv6 localhost entry if you don't make use of IPv6. sde localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Now that you have provided the necessary information, all you need to do is restart the network service:

sudo service network restart
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request