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
- 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.
- 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>
- Set the DNS domain name:
none/Standalone> net set domain static domain-name
- Set the DNS name server:
none/Standalone> net set nameserver static dns-ipaddress
- 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.
- 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}
- Search for hosts by using only the local domain:
none/Standalone> net set search none
- Set the Network timeserver to the appropriate setting for
your environment:
- Review the settings:
none/Standalone> net show memory
- Apply the network settings:
none/Standalone> net restart
- 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:
Note: As network settings are applied, the run time is unavailable.
- 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
- Verify the settings by entering the following command:
hostname> net show active
- Reset any address that is incorrect.
Run the
following command to see a list of addresses:
net show all
- Log out hostname> exit
The session closes.