Configuring to use static addressing

You can configure a virtual machine to use static network addressing.

Before you begin

In your DNS server, assign the host name and IP address for the management interface.

About this task

Network settings that you specify are only committed to the Management server when you run the net restart command. If a system restart occurs before you commit your network settings, those network settings are lost.

Procedure

  1. Using the virtual machine console, log in to the virtual machine with the default user name and password.
    • localhost login: admin
    • Password: !n0r1t5@C
      Note: This console uses a US keyboard configuration, in which the @ symbol can be in a different place to other keyboard configurations. If you are not using a US keyboard, please ensure that you have typed the password correctly.
    The following prompt is displayed:
    none/Standalone>
    Note: The keyboard mapping of the vSphere Client terminal uses a US layout. If your workstation keyboard uses another layout, your login attempt might fail.
  2. Set the host name for the management interface:
    none/Standalone> net set hostname static hostname
    After the host machine is restarted at the end of this procedure, the prompt changes to the following setting:
    hostname>
  3. Set the DNS domain name:
    none/Standalone> net set domain static domain-name
  4. Set the DNS name server:
    none/Standalone> net set nameserver static dns-ipaddress
  5. Set the network address for the management interface:
    For a Management server:
    none/Standalone> net set eth<n> address ipaddress mask netmask [bcast broadcast]
    Note: The bcast broadcast parameter is optional.
  6. Set the address of the default gateway for your TCP/IP network:
    For a Management server:
    none/Standalone> net set gateway static ip-address  {eth<n>|none}
  7. Search for hosts by using only the local domain:
    none/Standalone> net set search none
  8. Set the Network timeserver to the appropriate setting for your environment:
    • If you have a timeserver on your network:
      none/Standalone> net set ntp static ntp-address
    • If you do not have a timeserver on your network:
      none/Standalone> net set ntp none
  9. Review the settings:
    none/Standalone> net show memory
  10. Apply the network settings:
    none/Standalone> net restart
  11. Monitor the status of the system, by repetitively issuing the following command:
    none/Standalone> system show status
    As the network settings are applied, the network status progresses through the following states:
    • Up
    • Stopping
    • Starting
    • Up
    Note: As network settings are applied, the run time is unavailable.
  12. Monitor the state of the network:
    hostname> net show status
    When the network settings are applied, the status of the Current activity shows
    Monitoring network
  13. Verify the settings by entering the following command:
    hostname> net show active
  14. Reset any address that is incorrect.
    Run the following command to see a list of addresses:
    net show all
  15. Log out hostname> exit
    The session closes.