Oracle® Switch ES2-72 和 Oracle Switch ES2-64 配置指南

退出打印视图

更新时间: 2015 年 4 月
 
 

通过 CLI 配置主机网络管理

在 SP 上执行网络配置(Configure Network Management on the SP)后,可以通过 ssh 访问 SP。可以通过登录到 SP 的串行控制台或通过 ssh 执行主机配置。

  1. ssh 到 SP 的 IP 地址。
    # ssh root@10.134.178.170
    Password: changeme
    Oracle(R) Integrated Lights Out Manager
    Version 3.2.5.60 r98416
    Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
    Warning: password is set to factory default.
    Warning: HTTPS certificate is set to factory default.
    Hostname: ES2-72-swi-sp
    ->
    
  2. 打开主机电源并连接到主机的串行控制台。
    -> start /SYS
    Are you sure you want to start /SYS (y/n)? y
    Starting /SYS
    -> start /HOST/console
    Are you sure you want to start /HOST/console (y/n)? y
    

    此时将显示交换机主机的 Oracle ILOM 登录提示符。

  3. 登录到主机上的 Oracle ILOM CLI。

    默认用户为 root。默认密码为 changeme

    此时将显示交换机 Oracle ILOM 登录提示符。

    Detecting screen size; please wait...done
    Oracle(R) Integrated Lights Out Manager
    Version xxxxxxx
    Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
    ...
    Hostname: ES2-72-primary
    ES2-> 
    
  4. 搜索主机的网络配置。
    ES2-> cd /SP/network/
    /SP/network
    ES2-> show
     /SP/network
        Targets:
            ipv6
            test
        Properties:
            commitpending = (Cannot show property)
            dhcp_clientid = none
            dhcp_server_ip = 10.134.178.5
            ipaddress = 10.134.178.167
            ipdiscovery = dhcp
            ipgateway = 10.134.178.1
            ipnetmask = 255.255.255.0
            macaddress = 00:19:0F:16:D4:19
            pendingipaddress = 10.134.178.167
            pendingipdiscovery = dhcp
            pendingipgateway = 10.134.178.1
            pendingipnetmask = 255.255.255.0
            state = enabled
            vlan_id = (none)
     
        Commands:
            cd
            set
            show
    
  5. 配置主机的网络配置(可选)。

    因为默认情况下会启用 dhcp,所以,如果网络上有 dhcp 服务器,则主机可以自动获取网络配置。

    以下示例中的名称和地址仅用于演示。


    注 - 如果计划使用串行控制台来访问交换机,则不需要执行管理网络配置。不过,配置网络管理可以允许多个管理员来远程管理交换机。
    ES2-> set pendingipaddress=10.134.178.167
    Set 'pendingipaddress' to '10.134.178.167'
    ES2-> set pendingipnetmask=255.255.255.0
    Set 'pendingipnetmask' to '255.255.255.0'
    ES2-> set pendingipgateway=10.134.178.1
    Set 'pendingipgateway' to '10.134.178.1'
    ES2-> set pendingipdiscovery=static
    Set 'pendingipdiscovery' to 'static'
    ES2-> set commitpending=true
    Set 'commitpending' to 'true'
     
    ES2-> show
    /SP/network
        Targets:
            ipv6
            test
     
        Properties:
            commitpending = (Cannot show property)
            dhcp_clientid = none
            dhcp_server_ip = none
            ipaddress = 10.134.178.170
            ipdiscovery = static
            ipgateway = 10.134.178.1
            ipnetmask = 255.255.255.0
            macaddress = 00:21:28:79:8B:58
            pendingipaddress = 10.134.178.170
            pendingipdiscovery = static
            pendingipgateway = 10.134.178.1
            pendingipnetmask = 255.255.255.0
            pendingvlan_id = (none)
            state = enabled
            vlan_id = (none
    

相关信息