Getting Started Guide for Cisco UCS E-Series Servers, Release 1.0
Configuring CIMC Access
Downloads: This chapterpdf (PDF - 874.0KB) The complete bookPDF (PDF - 3.66MB) | Feedback

Configuring CIMC Access

Configuring CIMC Access

This chapter includes the following sections:

E-Series Server Interfaces Overview

The following figure shows the interfaces in a double-wide E-Series Server.

Figure 1. Interfaces in a Double-Wide E-Series Server

 

Interface

Interface Location

Description

1

Router’s PCIe slot/0 Interface

Internal Interface

Also called Console interface. This interface connects the router’s PCIe interface to the E-Series Server. The PCIe interface provides an internal Layer 3 GE link between the router and the E-Series Server. It can be used both for CIMC configuration or for host operating system configuration.

2

Router’s MGF slot/1 VLAN Interface

Internal Interface

Used to access CIMC over a high-speed backplane switch. The MGF VLAN interface provides an internal Layer 2 GE link between the router and the E-Series Server. This interface can be used both for CIMC configuration or for host operating system configuration.

3

Management (Dedicated) Interface

External Interface

Used for CIMC configuration and management.

4

GE3 Interface

External Interface

Used as a primary interface or as a backup interface. This interface can be used both for CIMC configuration or for host operating system configuration.

Note   

The single-wide E-Series Server has one external interface, which is GE2.

5

GE2 Interface

External Interface

Used as a primary interface or as a backup interface. This interface can be used both for CIMC configuration or for host operating system configuration.

Note   

The single-wide E-Series Server has one external interface, which is GE2.

CIMC Access Configuration Options

Depending on whether you are a remote user or a local user, do one of the following to configure CIMC access.

  • If you are a remote user, use either the external Management (dedicated) interface or one of the following shared LOM interfaces to configure CIMC access:
    • Router's internal MGF slot/1 VLAN interface
    • E-Series Server’s external GE2 or GE3 interface
    • Router’s internal PCIe slot/0 Console interface
  • If you are a local user, use the Cisco IOS CLI or the CIMC Configuration Utility to configure CIMC access.

Configuring CIMC Access Using the E-Series Server's External Management (Dedicated) Interface

See the following figure and the procedure that follows to configure CIMC access using the E-Series Server's external Management (dedicated) interface.

Figure 2. Configuring CIMC Access Using the E-Series Server's External Management (Dedicated) Interface



Before You Begin

Make sure that you have the following information:

  • IP address of CIMC.
  • Username and password for logging into the router.
  • Slot and port number of the E-Series Server.
Procedure
      Command or Action Purpose
    Step 1 Router> enable  

    Enters privileged EXEC mode on the host router. Enter your password if prompted.

     
    Step 2 Router# configure terminal  

    Enters global configuration mode on the host router.

     
    Step 3 Router (config)# interface ucse slot/port  

    Enters interface configuration mode for the slot and port where the E-Series Server is installed.

     
    Step 4 Router (config-if)# imc ip address cimc-ip-address subnet mask default-gateway cimc-gateway-ip-address 

    Specifies the IP address of CIMC and the IP address of the default gateway that CIMC must use.

    • cimc-ip-address—IP address of CIMC.
    • subnet-mask—Subnet mask used to append to the IP address; must be in the same subnet as the host router.
    • cimc-gateway-ip-address— IP address for the default gateway.
     
    Step 5 Router (config-if)# imc access-port dedicated  

    Configures CIMC access through the server’s external Management (dedicated) interface. See # 3 in E-Series Server Interfaces.

     
    Step 6 Router (config-if)# no shut  

    Causes the interface to be administratively up.

     
    Step 7 Router (config-if)# end  

    Returns to global configuration mode on the host router.

     
    Step 8 Router# copy running-config startup-config  

    Saves the new running configuration of the router as the startup configuration.

     
    Step 9 Router# show running-config  

    Displays the running configuration of the router so that you can verify the address configurations.

     

    This example shows how to configure CIMC access using the server’s external IMC dedicated interface:

    Router> enable
    Router> password
    Router# configure terminal
    
    Router(config)# interface ucse 2/0
    Router(config-if)# imc ip address 10.0.0.1 255.0.0.0 default-gateway 10.0.0.2 
    Router(config-if)# imc access-port dedicated 
    Router(config-if)# no shut
    Router(config-if)# end
    
    Router# copy running-config startup-config
    Router# show running-config
    

    Configuring CIMC Access Using Shared LOM

    Use one of the following shared LOM interfaces to configure CIMC access: router's internal MGF slot/1 VLAN interface, E-Series Server’s external GE2 or GE3 interface, or the router’s internal PCIe slot/0 Console interface.

    Configuring CIMC Access Using the Router's Internal MGF Slot/1 VLAN Interface

    See the following figure and the procedure that follows to configure CIMC access using the router's internal MGF slot/1 VLAN interface.

    Figure 3. Configuring CIMC Access Using the Router's Internal MGF Slot/1 VLAN Interface




    Note


    * For a list of supported Cisco EtherSwitch EHWICs, see Supported Cisco EtherSwitch EHWIC and Cisco EtherSwitch Service Modules.


    Before You Begin

    Make sure that you have the following information:

    • IP address of CIMC.
    • Username and password for logging into the router.
    • Slot and port number of the E-Series Server.
    Procedure
        Command or Action Purpose
      Step 1 Router> enable  

      Enters privileged EXEC mode on the host router. Enter your password if prompted.

       
      Step 2 Router# show vlan-switch  

      Displays VLANs.

       
      Step 3 Router# configure terminal  

      Enters global configuration mode on the host router.

       
      Step 4 Router (config)# interface vlan vlan-number 

      Enters VLAN configuration mode for the specified VLAN number.

       
      Step 5 Router (config-if)# ip address vlan-ip-address subnet mask 

      Specifies the IP address for the VLAN.

      • vlan-ip-address—IP address of the VLAN.
      • subnet-mask—Subnet mask to append to the IP address.
       
      Step 6 Router (config-if)# end  

      Returns to global configuration mode on the host router.

       
      Step 7 Router# configure terminal  

      Enters global configuration mode on the host router.

       
      Step 8 Router (config)# interface ucse slot/port  

      Enters interface configuration mode for the slot and port where the E-Series Server is installed.

       
      Step 9 Router (config-if)# imc ip address cimc-ip-address subnet mask default-gateway cimc-gateway-ip-address 

      Specifies the IP address of CIMC and the IP address of the default gateway that CIMC must use.

      • cimc-ip-address—IP address of CIMC.
      • subnet-mask—Subnet mask used to append to the IP address; must be in the same subnet as the host router.
      • cimc-gateway-ip-address— IP address for the default gateway.
       
      Step 10 Router (config-if)# imc access-port shared-lom GE1 

      Configures CIMC access using the router’s internal slot/1 MGF VLAN interface. See # 2 in E-Series Server Interfaces.

       
      Step 11 Router (config-if)# no shut  

      Causes the interface to be administratively up.

       
      Step 12 Router (config-if)# end  

      Returns to global configuration mode on the host router.

       
      Step 13 Router# copy running-config startup-config  

      Saves the new running configuration of the router as the startup configuration.

       
      Step 14 Router# ping cimc-ip-address  

      Verifies connection from the router to BMC through the router's shared LOM MGF slot/1 VLAN interface.

       
      Step 15 Router# show running-config  

      Displays the running configuration of the router so that you can verify the address configurations.

       

      This example shows how to configure CIMC access using the router's internal MGF slot/1 VLAN interface:

      Router> enable
      Router> password
      Router> show vlan-switch
      VLAN Name                             Status    Ports
      ---- -------------------------------- --------- -------------------------------
      1    default                          active    Gi0/0/0, Gi0/0/1, Gi0/0/2
                                                                  Gi0/0/3, uc2/1
      Router# configure terminal
      Router(config)# interface vlan 1 
      Router(config-if)# ip address 10.0.0.1 255.0.0.0
      Router(config-if)# end
      
      Router# configure terminal
      Router(config)# interface ucse 2/0
      Router(config-if)# imc ip address 10.0.0.2 255.0.0.0 default-gateway 10.0.0.1 
      Router(config-if)# imc access-port shared-lom GE1 
      Router(config-if)# no shut
      Router(config-if)# end
      
      Router# ping 10.0.0.2
      Type escape sequence to abort.
      Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
      !!!!!
      Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
      
      Router# copy running-config startup-config
      Router# show running-config
      

      Configuring CIMC Access Using the E-Series Server's External GE2 or GE3 Interface

      See the following figure and the procedure that follows to configure CIMC access using the E-Series Server's external GE2 or GE3 interface.


      Note


      This figure shows how to configure CIMC access using the E-Series Server's external GE2 interface.


      Figure 4. Configuring CIMC Access Using the E-Series Server's External GE2 Interface



      Before You Begin

      Make sure that you have the following information:

      • IP address of CIMC.
      • Username and password for logging into the router.
      • Slot and port number of the E-Series Server.
      Procedure
          Command or Action Purpose
        Step 1 Router> enable  

        Enters privileged EXEC mode on the host router. Enter your password if prompted.

         
        Step 2 Router# configure terminal  

        Enters global configuration mode on the host router.

         
        Step 3 Router (config)# interface ucse slot/port  

        Enters interface configuration mode for the slot and port where the E-Series Server is installed.

         
        Step 4 Router (config-if)# imc ip address cimc-ip-address subnet mask default-gateway cimc-gateway-ip-address 

        Specifies the IP address of CIMC and the IP address of the default gateway router that CIMC must use.

        • cimc-ip-address—IP address of CIMC.
        • subnet-mask—Subnet mask used to append to the IP address; must be in the same subnet as the host router.
        • cimc-gateway-ip-address— IP address for the default gateway.
         
        Step 5 Router (config-if)# imc access-port shared-lom {GE2 | GE3} 

        Configures CIMC access through E-Series Server's external GE2 or GE3 interface. See # 4 and 5 in E-Series Server Interfaces.

         
        Step 6 Router (config-if)# no shut  

        Causes the interface to be administratively up.

         
        Step 7 Router (config-if)# end  

        Returns to global configuration mode on the host router.

         
        Step 8 Router# copy running-config startup-config  

        Saves the new running configuration of the router as the startup configuration.

         
        Step 9 Router# show running-config  

        Displays the running configuration of the router so that you can verify the address configurations.

         

        This example shows how to configure CIMC access using the server's external GE2 interface:

        Router> enable
        Router> password
        Router# configure terminal
        
        Router(config)# interface ucse 2/0
        Router(config-if)# imc ip address 10.0.0.1 255.0.0.0 default-gateway 10.0.0.2 
        Router(config-if)# imc access-port shared-lom GE2 
        Router(config-if)# no shut
        Router(config-if)# end
        
        Router# copy running-config startup-config
        Router# show running-config
        

        Configuring CIMC Access Using the Router's Internal PCIe Slot/0 Console Interface

        See the following figure and the procedure that follows to configure CIMC access using the router's internal PCIe slot/0 Console interface.

        Figure 5. Configuring CIMC Access Using the Router's Internal PCIe Slot/0 Console Interface



        Before You Begin

        Make sure that you have the following information:

        • IP address of CIMC.
        • Username and password for logging into the router.
        • Slot and port number of the E-Series Server.
        Procedure
            Command or Action Purpose
          Step 1 Router> enable  

          Enters privileged EXEC mode on the host router. Enter your password if prompted.

           
          Step 2 Router# configure terminal  

          Enters global configuration mode on the host router.

           
          Step 3 Router (config)# interface GigabitEthernet0/0  

          Enters interface configuration mode for Gigabit Ethernet 0/0.

           
          Step 4 Router (config-if)# ip address ip-address subnet mask 

          Specifies the IP address and subnet mask of the interface.

          • ip-address—IP address of the interface.
          • subnet-mask—Subnet mask used to append to the IP address.
           
          Step 5 Router (config-if)# no shut  

          Causes the interface to be administratively up.

           
          Step 6 Router (config-if)# end  

          Exits configuration mode.

           
          Step 7 Router# configure terminal  

          Enters global configuration mode on the host router.

           
          Step 8 Router (config)# interface ucse slot/port  

          Enters interface configuration mode for the slot and port where the E-Series Server is installed.

           
          Step 9 Router (config-if)# ip unnumbered type number  

          The ip unnumbered command enables IP processing on an interface without assigning an explicit IP address to that interface.

          • type—Type of interface on which the router has an assigned IP address.
          • number—Number of the interface on which the router has an assigned IP address.
          Note   

          The unnumbered interface must be unique. It cannot be another unnumbered interface.

          When you use the ip unnumbered command, you must use the ip route command to create a static route.

          Caution   

          The ip unnumbered and ipv6 unnumbered commands creates a point-to-point interface between devices. Broadcasting is not supported.

           
          Step 10 Router (config-if)# imc ip address cimc-ip-address subnet mask default-gateway cimc-gateway-ip-address 

          Specifies the IP address of CIMC and the IP address of the default gateway that CIMC must use.

          • cimc-ip-address—IP address of CIMC.
          • subnet-mask—Subnet mask used to append to the IP address; must be in the same subnet as the host router.
          • cimc-gateway-ip-address—IP address for the default gateway.
           
          Step 11 Router (config-if)# imc access-port shared-lom console  

          Configures CIMC access using the router's PCIe slot/0 (console) interface. See # 1 in E-Series Server Interfaces.

           
          Step 12 Router (config-if)# no shut  

          Causes the interface to be administratively up.

           
          Step 13 Router (config-if)# end  

          Exits configuration mode.

           
          Step 14 Router# configure terminal  

          Enters global configuration mode on the host router.

           
          Step 15 Router (config)# ip route cimc-ip-address subnet mask ucse slot/port  

          Creates a static route.

          • cimc-ip-address—IP address of CIMC.
          • slot/port—Slot and port where the E-Series Server is installed.
           
          Step 16 Router (config-if)# end  

          Exits configuration mode.

           
          Step 17 Router# ping cimc-ip-address  

          Verifies connection from the router to BMC through the router's shared LOM PCIe slot/0 Console interface.

           
          Step 18 Router# copy running-config startup-config  

          Saves the new running configuration of the router as the startup configuration.

           
          Step 19 Router# show running-config  

          Displays the running configuration of the router so that you can verify the address configurations.

           

          This example shows how to configure CIMC access using the server’s internal PCIe console interface:

          Router> enable
          Router> password
          Router# configure terminal
          
          Router(config)# interface GigabitEthernet0/0
          Router(config-if)# ip address 10.0.0.1 255.0.0.0
          Router(config-if)# no shut
          Router(config-if)# end
          
          Router# configure terminal
          Router(config)# interface ucse 2/0
          Router(config)# ip unnumbered GigabitEthernet0/0
          Router(config-if)# imc ip address 10.0.0.2 255.0.0.0 default-gateway 10.0.0.1
          Router(config-if)# imc access-port shared-lom console 
          Router(config-if)# no shut
          Router(config)# end
          
          Router# configure terminal
          Router(config)# ip route 10.0.0.2 255.255.255.255 ucse 2/0
          Router(config)# end
          
          Router# ping 10.0.0.2
          Type escape sequence to abort.
          Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
          !!!!!
          Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
          
          
          Router# copy running-config startup-config
          Router# show running-config
          

          Configuring CIMC Access Using the CIMC Configuration Utility

          If you are a local user, you can either use the Cisco IOS CLI or the CIMC Configuration Utility to configure CIMC access. To configure CIMC access using the Cisco IOS CLI, see Configuring CIMC Access Using the Cisco IOS CLI.


          Note


          When you use the CIMC Configuration Utility to configure CIMC access, the configuration is not reflected as Cisco IOS configuration. In other words, if you execute the show run command from Cisco IOS, the changes that you made using the CIMC Configuration Utility are not reflected.


          Procedure
            Step 1   Power on the router.
            Step 2   Connect a keyboard and monitor to the front panel for the E-Series Server.
            Step 3   Press the Power button to boot the E-Series Server. During bootup, watch for the prompt to press F8.
            Step 4   When you see the prompt, press F8.

            The CIMC Configuration Utility appears.

            Figure 6. CIMC Configuration Utility



            Step 5   Use the CIMC configuration Utility to set the NIC mode and NIC redundancy, and to choose whether to enable DHCP or set static network settings.
            1. From the NIC mode area, choose a port to access CIMC. Options are:
              • Dedicated—The 10/100 IMC port is used to access CIMC.
              • Shared LOM (default)—The four 1Gb Ethernet ports are used to access the CIMC. This is the factory default setting.
            2. From the NIC redundancy area, choose the NIC redundancy. Options are:
              • None—The Ethernet ports operate independently and do not fail over if there is a problem.
              • Active-standby—If an active Ethernet port fails, the traffic falls over to a standby port. This is the factory default setting.
            3. From the IPV4 (Basic) area, do one of the following:
              • DHCP Enabled—Select this option to enable DHCP for dynamic network settings. Before you enable DHCP, your DHCP server must be preconfigured with the range of MAC addresses for this server. The MAC address is printed on a label on the rear of the server. This server has a range of six MAC addresses assigned to CIMC. The MAC address printed on the label is the beginning of the range of six contiguous MAC addresses.
              • CIMC IP—IP address of CIMC. Subnet Mask—Enter the subnet mask to append to the CIMC IP address; must be in the same subnet as the host router. Gateway—IP address of the default gateway router.
            4. (Optional) From the VLAN (Advanced) area, configure VLAN settings.
            5. Press F5 to refresh the page and have the new settings appear.

              The page refresh takes approximately 45 seconds.

            6. Press F10 to save your settings and reboot the server.

              If you chose to enable DHCP, the dynamically assigned IP and MAC addresses are displayed on the console screen during bootup.

            Step 6   Using the ports that you selected for the NIC Mode settings in Step 5, substep a, connect Ethernet cables from your LAN to the E-Series Server.
            Step 7   In your web browser, enter the IP address that you configured to access CIMC. The CIMC IP address is based upon the settings that you configured in Step 5, substep c (either a static IP address or the IP address assigned by your DHCP server).

            The default user name to log into CIMC is admin and the default password is password.

            Step 8   Use the CIMC GUI or CIMC CLI to manage and monitor the server.

            See the GUI Configuration Guide for Cisco UCS E-Series Servers or the CLI Configuration Guide for Cisco UCS E-Series Servers.


            Defining Network Static Settings Using a Script File

            Use this procedure to define static network settings for multiple servers by automating the configuration process with a script file.
            Procedure
              Step 1   Use a text editor to create a file named network.cfg.
              Step 2   Create the contents of network.cfg in the following format by using only the tags that you want to set:
              dhcp-enabled:
              v4-addr:
              v4-netmask:
              v4-gateway:
              vlan-enabled:
              vlan-id:
              vlan-priority:
              password: 
              mode:
              redundancy:
              
              
              For example, to disable DHCP, set the IP address, subnet mask, gateway, and user password, use the following sample values:
              dhcp-enabled: 0
              v4-addr: 10.193.70.102
              v4-netmask: 255.255.255.0
              v4-gateway: 10.193.70.1
              password: nonpasswd
              mode:
              redundancy:
              
              
              Step 3   Use a text editor to create a file named startup.nsh with the following contents:
              fs0:
              cimcconfig
              
              
              Step 4   Copy your network.cfg file and your startup.nsh file to a USB thumb drive.
              Step 5   Insert the USB thumb drive into a USB port on the server.
              Step 6   Press and release the Power button to boot the server.
              Step 7   Observe the booting process and press F6 when prompted to enter the BIOS Boot Manager.
              Step 8   Select EFI as the boot device and then press Enter.

              The server power cycles and launches the configuration utility, which runs the startup.nsh file. Any errors are displayed on the screen and on an errors.txt file.

              Step 9   Remove the USB thumb drive, alter the network.cfg file with your next IP address, and then insert the USB thumb drive into the next server that you want to configure.
              Step 10   After the server has been assigned an IP address, you can use that address to access the service processor's GUI or CLI management system.