Was this page helpful?

Network Configuration

    Network Configuration

    When deploying MindTouch you need to ensure that you have a static IP assigned to your MindTouch install.  This will guarantee that the IP that MindTouch is using isn't reset if the Server is restarted.  Please follow the instructions below for assigning a static IP

    Note About Adapter Selection

    In the following examples, we reference the ethernet adapter as eth0. Generally, this will be the adapter your ethernet connection goes out of. However, on some servers there is more than one ethernet adapter. Additional ethernet adapters are labeled as eth1, eth2, eth3 etc. It is important to make sure you select the correct adapter when assigning the static IP.

    Debian and Ubuntu

    Assigning a Static IP

    Login to your MindTouch server via SSH and type out the following command:

    nano /etc/network/interfaces

    After you type in the above command hit Enter and you will be presented with the following screen:

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    allow-hotplug eth0
    iface eth0 inet dhcp

    Type out your network settings so that it matches the following format (Note: your network settings will vary then the example):

    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 192.168.1.90
    gateway 192.168.1.1
    netmask 255.255.255.0

     *Note: address is the Static IP address that you want to assign the MindTouch

    Tips:

    • Make sure you ping the static IP before you assign it to MindTouch to ensure that it isn't being used by another device
    • On XP the way to find out your network settings is go to Start->Run->type cmd and hit enter ->type ipconfig /all

    Once you have verified that your settings are accurate then exit out of the editor by hitting CTRL X on your keyboard

    You will be prompted to save the file to do so type Y

    Hit Enter at the screen below and your changes will be applied to the file

    After you have saved restart your networking by typing the following
     

    /etc/init.d/networking restart

    Once you have restarted networking type ifconfig and verify that your static IP has been assigned to one of the network connections

    CentOS, Red Hat, and Fedora

    Assigning a Static IP

    Login to your MindTouch server via SSH and run the following command:

    nano /etc/sysconfig/network-scripts/ifcfg-eth0

     This will load the file that contains the configuration options for eth0. You will see something similar to this:

    DEVICE=eth0
    BOOTPROTO=dhcp
    ONBOOT=yes
    TYPE=Ethernet

    In order to switch from DHCP to a static IP address, we need to change a few of these values. In the following example, you will need to change the values so they match your network:

    DEVICE=eth0
    BOOTPROTO=static
    IPADDR=192.168.168.222
    BROADCAST=192.168.168.255
    NETWORK=192.168.168.0
    NETMASK=255.255.255.0
    ONBOOT=yes
    TYPE=Ethernet

    In this file, we changed the BOOTPROTO configuration option and we added the IPADDR, BROADCAST, NETWORK, and NETMASK options. Leave everything else as is. Once you have updated this file to reflect your network settings, save the file by hitting Ctrl-O and then exit nano by hitting Ctrl-X. Now we need to restart the network service by running the following command:

    service network restart

    Once the service has been restarted run ifconfig and make sure the IP address has been assigned to the adapter.

    SUSE and OpenSUSE

    Assigning a Static IP

    Login to your MindTouch server via SSH and run the following command:

    nano /etc/sysconfig/network/ifcfg-eth0

    This will load the file that contains the configuration options for eth0. You will see something similar to this:

    BOOTPROTO='dhcp'
    BROADCAST=''
    ETHTOOL_OPTIONS=''
    IPADDR=''
    MTU=''
    NAME='AMD PCnet - Fast 79C971'
    NETMASK='255.255.255.0'
    NETWORK=''
    REMOTE_IPADDR=''
    STARTMODE='auto'
    UNIQUE='rBUF.weGuQ9ywYPF'
    USERCONTROL='no'
    _nm_name='bus-pci-0000:02:00.0'

    In order to switch from DHCP to a static IP address, we need to change a few of these values. In the following example, you will need to change the values so they match your network:

    BOOTPROTO='static'
    BROADCAST='192.168.168.255'
    ETHTOOL_OPTIONS=''
    IPADDR='192.168.168.221'
    MTU=''
    NAME='AMD PCnet - Fast 79C971'
    NETMASK='255.255.255.0'
    NETWORK='192.168.168.0'
    REMOTE_IPADDR=''
    STARTMODE='auto'
    UNIQUE='rBUF.weGuQ9ywYPF'
    USERCONTROL='no'
    _nm_name='bus-pci-0000:02:00.0'

    In this file, we changed the following configuration options: BOOTPROTO, BROADCAST, IPADDR, NETMASK (if applicable), NETWORK (if applicable). Leave everything else as is. Once you have updated this file to reflect your network settings, save the file by hitting Ctrl-O and then exit nano by hitting Ctrl-X. Now we need to restart the network service by running the following command:

    service network restart

    Once the service has been restarted run ifconfig and make sure the IP address has been assigned to the adapter.

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by