Modify Network Settings From the Oracle ILOM CLI
If you want to modify the network settings currently configured for the server from the Oracle
ILOM CLI, use the following procedure.
-
Log in to the Oracle ILOM CLI using the relevant method in Log In to Oracle ILOM Using a Local Serial Connection or Log In to Oracle ILOM Using a Remote Ethernet
Connection.
-
Perform the network configuration instructions that apply to your network environment, then
test the network settings:
-
To view or configure IPv4 network settings, perform Step 3 and Step 4.
-
To view or configure IPv6 network settings, perform Steps 5 through 8.
-
For IPv4 network configurations, use the cd command to navigate to the
/SP/network directory:
-> cd /SP/network
-
Do one of the following:
-
If you have a DHCP server on the network, type the following command to view the settings
assigned to the server by the DHCP server:
-> show
-
If there is no DHCP server, or if you want to assign settings, use the set
command to assign values for the properties listed in the following table. For example:
-> set pendingipdiscovery=static
-> set pendingipaddress=10.8.183.106
-> set pendingipnetmask=255.255.255.0
-> set pendingipgateway=10.8.183.254
-> set commitpending=true
|
|
|
state
|
enabled or disabled
|
The network state is enabled by default. Disabling the network connection to the SP will mean
that you can only access Oracle ILOM using the serial management port.
|
pendingipdiscovery
|
static or dhcp
|
Network discovery options include static for a static IP address or
dhcp for an IP address assigned by a DHCP server (default).
|
pendingipaddress
pendingipnetmask
pendingipgateway
|
<ip_address>
<netmask>
<gateway>
|
To assign multiple static network settings type the set command for each
property (IP address, netmask, and gateway) along with the static value that you want to
assign.
|
commitpending
|
true
|
Type set commitpending=true to commit changes.
|
|
Note -
If you are logged in to Oracle ILOM using an Ethernet connection, when you set
commitpending to true to commit the changes to the network
settings, your Oracle ILOM connection will be terminated and you will have to log back in using the
new settings.
To test the IPv4 or IPv6 network settings, see Step 9.
-
For IPv6 network configurations, use the cd command to navigate to the
SP/network/ipv6 directory:
-> cd SP/network/ipv6
-
Type the show command to view the IPv6 network settings configured on the
device.
For example, see the following sample output values for the IPv6 properties on a server SP
device.
-> show
/SP/network/ipv6
Targets:
Properties:
state = enabled
autoconfig = stateless
dhcpv6_server_duid = (none)
link_local_ipaddress = fe80::214:4fff:feca:5f7e/64
static_ipaddress = ::/128
ipgateway = fe80::211:5dff:febe:5000/128
pending_static_ipaddress = ::/128
dynamic_ipaddress_1 fec0:a:8:b7:214:4fff:feca:5f7e/64
Commands:
cd
show
-
To configure an IPv6 auto-configuration option, use the set command to
specify the following auto-configuration property values. For example:
-> set state=enabled
-> set autoconfig=dhcpv6_stateless
|
|
|
state
|
enabled or disabled
|
The IPv6 network state is enabled by default. To enable an IPv6 auto-configuration option,
this state must be set to enabled.
|
autoconfig
|
Values include:
stateless
dhcpv6_stateless
dhcpv6_stateful
disable
|
Specify this command, followed by the autoconfig value you want to
set.
-
stateless (default setting)
Automatically assigns IP address learned from IPv6 network router.
-
dhcpv6_stateless
Automatically assigns DNS information learned from the DHCPv6 server. The
dhcpv6_stateless property value is available in Oracle ILOM as of 3.0.14.
-
dhcpv6_stateful
Automatically assigns the IPv6 address learned from the DHCPv6 server. The
dhcpv6_stateful property value is available in Oracle ILOM as of 3.0.14.
-
disable
Disables all auto-configuration property values and sets the read-only property value for link
local address.
|
|
Note -
The IPv6 configuration options take effect after they are set. You do not need to commit these
changes under the /network target.
Note -
You can enable the stateless auto-configuration option to run at the same
time as when the option for dhcpv6_stateless is enabled or as when the option for
dhcpv6_stateful is enabled. However, the auto-configuration options for
dhcpv6_stateless and dhcpv6_stateful should not be enabled to
run at the same time.
-
To set a static IPv6 address, complete these steps:
-
Specify the property types. For example:
-> set state=enabled
-> set
pending_static_ipaddress=fec0:a:8:b7:214:4fff:feca:5f7e/64
|
|
|
state
|
enabled or disabled
|
The IPv6 network state is enabled by default. To enable a static IP address this state must be
set to enabled.
|
pending_static_ipaddress
|
<ipv6_address>/ <subnet_mask_length_in_bits>
|
Type this command followed by the property value for the static IPv6 address and netmask that
you want to assign to the device. IPv6 address
example:fec0:a:8:b7:214:4fff:feca:5f7e/64
|
|
-
Commit the pending IPv6 static network parameters by typing the following command:
-> set /SP/network commitpending=true
Note -
Network settings are considered pending until you commit them. Assigning a new static IP
address to the server will end all active Oracle ILOM sessions to the server. To log back in to
Oracle ILOM, you will need to create a new session using the newly assigned IP address.
-
Test the IPv4 or IPv6 network configuration from Oracle ILOM using the Network Test Tools
(Ping and Ping6).
For details, see Test IPv4 or IPv6
Network Configuration From the Oracle ILOM CLI.