Go to main content
SPARC S7-2L 服务器安装指南

退出打印视图

更新时间: 2016 年 6 月
 
 

为 NET MGT 端口分配静态 IP 地址

如果打算通过 SP 的 NET MGT 端口连接到 SP,SP 必须具有有效的 IP 地址。

默认情况下,服务器配置为通过网络中的 DHCP 服务获取 IP 地址。如果服务器所连接的网络不支持使用 DHCP 进行 IP 寻址,请执行此过程。


注 - 要配置服务器以支持 DHCP,请参阅 Oracle ILOM 文档。

此过程设置静态 ipv4 地址。如果您使用 ipv6 地址或双协议栈(IPv4 和 IPv6)网络配置,请参阅《Oracle ILOM 配置和维护管理员指南》中的“修改默认连接配置”。

  1. 使用 SER MGT 端口连接到 SP 上的 Oracle ILOM。

    如果尚未通过 SER MGT 端口连接,请根据需要执行将终端或仿真器连接到 SER MGT 端口中的步骤。

  2. 设置 SP 以接受静态 IP 地址。
    ->set /SP/network pendingipdiscovery=static 
    Set 'pendingipdiscovery' to 'static' 
    
  3. 设置 SP 的 IP 地址。
    ->set /SP/network pendingipaddress=service-processor-IPaddr
    Set 'pendingipaddress' to 'service-processor-IPaddr' 
    
  4. 设置 SP 网关的 IP 地址。
    -> set /SP/network pendingipgateway=gateway-IPaddr
    Set 'pendingipgateway' to 'gateway-IPaddr' 
    
  5. 设置 SP 的网络掩码。
    -> set /SP/network pendingipnetmask=255.255.255.0 
    Set 'pendingipnetmask' to '255.255.255.0' 
    

    本示例中设置的网络掩码是 255.255.255.0。在您的网络环境中,子网可能需要一个不同的网络掩码。请使用最适合您的环境的网络掩码。

  6. 检验是否正确设置了参数。

    此示例显示了已设置为用于将 SP 从 DHCP 配置转换为静态配置的参数。

    -> show /SP/network -display properties
      /SP/network 
         Targets: 
         Properties: 
            commitpending = (Cannot show property)
            dhcp_clientid = xxx.xxx.xxx.xxx
            dhcp_server_ip = xxx.xxx.xxx.xxx
           ipaddress = xxx.xxx.xxx.xxx
           ipdiscovery = dhcp
           ipgateway = xxx.xxx.xxx.xxx 
           ipnetmask = 255.255.255.0
           macaddress = xx:xx:xx:xx:xx:xx
           managementport = MGMT
           outofbandmacaddress = xx:xx:xx:xx:xx:xx
            pendingipaddress = service-processor-IPaddr
           pendingipdiscovery = static
            pendingipgateway = gateway-IPaddr
           pendingipnetmask = 255.255.255.0
           pendingmanagementport = MGMT
           sidebandmacaddress = xx:xx:xx:xx:xx:xx
           state = enabled
    ->
    
  7. 设置对 SP 网络参数所做的更改。
    -> set /SP/network commitpending=true 
    Set 'commitpending' to 'true' 
    

    注 - 可以再次键入 show /SP/network 命令,以检验是否已更新了参数。
  8. 当配置 Oracle Solaris OS 时,设置静态 IP 地址。

    请参见配置预先安装的 OS

相关信息