Skip to main content
Converged Systems Advisor

Set a static IP address on the agent

Contributors netapp-bcammett netapp-rlithman netapp-aherbin RyanOntap

If your environment does not have a DHCP server, you can set a static IP address on the Converged Systems Advisor agent.

Steps
  1. Log in to the agent's virtual machine console using the VMware vSphere client.

    The default user name is csa and the default password is netapp. Change the password, if prompted.

  2. Enter sudo su – at the csa prompt to become root.

  3. Enter # systemctl stop csa.service to stop the CSA service.

  4. Enter the following to determine your correct interface file name.

    In this example, the interface file name is eth0.

    # ls /etc/network/interfaces.d/

  5. Enter # /sbin/ifdown eth0 to stop the active interface.

  6. Edit the /etc/network/interfaces.d/eth0 file with the editor of your choice.

    # nano /etc/network/interfaces.d/eth0
    or
    # vi /etc/network/interfaces.d/eth0

    The file contains the following:

    allow-hotplug eth0
    iface eth0 inet dhcp

  7. Remove iface eth0 inet dhcp and add the following.
    NOTE: You must substitute the correct values for all the entries that follow the field names in the example below. For instance, 192.168.11.1 is the value for the gateway in the example. However, instead of 192.168.11.1, you should enter the correct address for your gateway.

    iface eth0 inet static
    address 192.168.11.100
    netmask 255.255.255.0
    gateway 192.168.11.1
    dns-domain example.com
    dns-nameservers 192.168.11.1

  8. Save the file.

    In nano, you enter ctrl + o followed by ctrl + x to save.

  9. Enter vi/etc/resolv.conf to open the configuration file.

  10. Add nameserver <ip_address> to the top of the file.

  11. Enter # ifup eth0 to start the network interface.

  12. Enter systemctl start csa.service to restart Converged Systems Advisor.