Follow

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        
address xxx.xxx.xxx.xxx         
netmask xxx.xxx.xxx.xxx         
gateway xxx.xxx.xxx.xxx

 

Here is a specific example:

auto lo iface lo inet loopback
auto eth0
iface eth0 inet static 
       address 192.168.1.101
       netmask 255.255.255.0 
       gateway 192.168.1.1

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 xxx.xxx.xxx.xxx(enter your dns server ip) 
nameserver xxx.xxx.xxx.xxx(enter your alt dns server ip)

Here is an example:

nameserver 213.60.205.175 nameserver 213.60.205.173

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:

ifconfig 

 

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:

    NETWORKING=yes
    HOSTNAME=server.domain.com

    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:
    DEVICE=eth0
    BOOTPROTO=static
    ONBOOT=yes
    IPADDR=192.168.1.10
    NETMASK=255.255.255.0
    NETWORK=192.168.1.0
    GATEWAY=192.168.1.1
    BROADCAST=192.168.1.255
  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)
search domain.com
nameserver 192.168.1.2
nameserver 192.168.1.3

 

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.

127.0.0.1 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

Comments