Professional Documents
Culture Documents
Contents
Introduction .................................................................................................................................................................................................................................................................................... 2
Environment 1: With HPE IMC....................................................................................................................................................................................................................................... 2
Requirements ......................................................................................................................................................................................................................................................................... 2
Network topology............................................................................................................................................................................................................................................................... 2
Step 1.1: HPE IMC configuration ............................................................................................................................................................................................................................ 3
Step 1.2: Windows 2012R2 DHCP server configuration .................................................................................................................................................................... 6
Step 1.3: HPE IMC configuration............................................................................................................................................................................................................................ 6
Step 1.4: Power up and connect new switches into the OOB network..............................................................................................................................11
Environment 2: without HPE IMC ............................................................................................................................................................................................................................ 13
Requirements .......................................................................................................................................................................................................................................................................13
Network topology.............................................................................................................................................................................................................................................................13
Step 2.1: TFTP server configuration.................................................................................................................................................................................................................14
Step 2.2: DHCP server configuration............................................................................................................................................................................................................... 15
Step 2.3: Connect and power up new switches into the OOB network ............................................................................................................................ 15
For devices without L2 network connectivity to the DHCP server ........................................................................................................................................... 17
Network topology.............................................................................................................................................................................................................................................................17
Additional step: DHCP relay on default gateway configuration ............................................................................................................................................ 17
Additional links ..........................................................................................................................................................................................................................................................................19
Configuration guide
Configuration guide Page 2
Introduction
This configuration guide provides advice on provisioning new HPE Comware switches in your network automatically, fresh out of the box,
without setting up console access into the switch or typing commands manually to configure credentials and enable remote network
management access.
Note:
HPE FlexFabric 5900 and 5930M switches worked as expected using the steps described in this guide. Other HPE Comware switches should also
function in the same manner.
Requirements
The following are required:
Network topology
The topology as shown in figure 1 will be used to describe environment 1:
The new HPE Comware v7 Switches will connect into the existing Out-of-Band (OOB) management network using their management
Ethernet port
L2 network connectivity exists between the new switches and DHCP server/HPE IMC
HPE IMC and DHCP server exist on the same subnet
Create the new Initial Configuration file using the following parameters and click OK to add as shown in figure 4.
File Content:
sysname ADP_Initial_Config
#
interface M-GigabitEthernet0/0/0
ip address dhcp-alloc
#
telnet server enable
#
stp global enable
#
snmp-agent
snmp-agent community read iMCV5read
snmp-agent community write iMCV5write
snmp-agent sys-info version all
#
line aux 0
user-role network-admin
screen-length 69
Configuration guide Page 4
#
line vty 0 63
authentication-mode scheme
user-role network-admin
user-role network-operator
screen-length 0
#
local-user iMCV5admin class manage
password simple iMCV5admin
service-type telnet
authorization-attribute user-role level-15
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
return
Note:
The snmpv1 read and write community strings, as well as the telnet username and password must match exactly what is shown in the access
parameters in figure 4.
For e.g. if IMC shows iMCV5read, iMCV5read has to be used. If IMC shows iMCread, iMCread has to be used.
These parameters will be used only for the initial discovery and will be overwritten during the deployment of the devices desired configuration.
Configuration guide Page 5
Verify that the new initial configuration file oobm.cfg was successfully created as shown in figure 5.
Create the desired configuration file for the final deployment by using Service > Configuration Templates > Add > Manual Add as shown in figure
9. This configuration file may include normal configuration template variables as typically defined in an HPE IMC configuration template (please
see IMC administrators guide for more information).
The following sample configuration template is used (modify as required for your own environment). In this example, we are defining fixed values
for static route/telnet/snmp, but sysname and OOBM IP address can be changed for each individual device.
user-interface vty 0 15
authentication-mode scheme
interface M-GigabitEthernet0/0/0
ip address ${MGMT-IP-ADDR} 255.255.255.0
From the OOBM deployment plan, select the Add Auto Deployment Device icon
Ensure that the Back Up Configuration File option is set to No as shown in figure 11.
Note:
Also ensure device IP specified is not already managed by IMC for any other device.
As shown in figure 12, input the Match Criteria: MAC Address field with the MAC address of the target device. This is the MAC address stated on
the sticker pasted on the device.
Input the Target IP address of the device. This is the final IP address that you wish to use for managing the device.
Configuration guide Page 10
As shown in figure 13, specify the access parameters here to match those of the final state of the device (e.g. SNMP and telnet settings below
have to match 5930.cfg selected above). These settings will be used by HPE IMC to contact and discover the device during the final stages of the
auto-deployment. If these settings do not match, the auto-deployment task will fail.
Step 1.4: Power up and connect new switches into the OOB network
With the previous steps done, connect (only the management Ethernet port) and power up the new switches into the OOB network. The
following console output as shown should be seen with initial zero touch provisioning complete. The IP address assigned to the switch will be
shown.
After the initial configuration is provisioned, the devices will be rebooted by IMC.
From the HPE IMC Service > Configuration Center > Auto Deployment Plan interface, select the Auto Deployment Execution Result icon
Once initial zero touch provisioning is complete and working as expected, the network administrator can proceed to cable up the remaining ports
into the DC fabric and configure any additional configurations via remote access as shown in the example below.
******************************************************************************
* Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. *
* Without the owner's prior written consent, *
* No decompiling or reverse-engineering shall be allowed. *
******************************************************************************
Login: admin
Password:
Configuration guide Page 13
<DC1-5930-1>
<DC1-5930-1>dis int brie | i UP
InLoop0 UP UP(s) --
M-GE0/0/0 UP UP 10.10.10.75
NULL0 UP UP(s) --
REG0 UP -- --
Requirements
The following are required:
There is no requirement to identify MAC addresses of the new switches for this to function as expected.
Network topology
The topology as shown in figure 15 will be used to describe environment 2:
The new HPE Comware switches will connect into the existing OOB management network using their management Ethernet port
L2 network connectivity exists between the new switches and TFTP/DHCP server
TFTP and DHCP server exist on the same subnet
Existing
DC fabric
L2 network connectivity
VM VM VM
VM VM VM
Hypervisor
M-GE0/0/0
New HPE Existing Windows 2012 VM
Comware OOB (DHCP and TFTP
switches network server) 10.10.10.106/24
Fill in the .cfg file with your desired switch configuration. Here is the sample configuration used; additional configuration may be added or
changed as desired.
interface M-GigabitEthernet0/0/0
ip address dhcp-alloc
#
telnet server enable
ssh server enable
#
snmp-agent
snmp-agent community read public
snmp-agent community write private
snmp-agent sys-info version all
#
line vty 0 15
authentication-mode scheme
#
Configuration guide Page 15
vlan 10 to 11
ospf 1
area 0.0.0.0
network 192.168.11.0 0.0.0.255
Step 2.3: Connect and power up new switches into the OOB network
With the previous steps done, connect (only the management Ethernet port) and power up the new switches into the OOB network. The
following console output as shown in figure 18 should be seen with initial zero touch provisioning complete. The IP address assigned to the
switch will be shown; the TFTP server console should state the .cfg file was sent as expected.
If console access is not available, the IP addresses assigned in the DHCP server address leases as previously shown in figure 5 can also be used
to identify the IPs and establish remote network management access.
Configuration guide Page 16
Once initial zero touch provisioning is complete and working as expected, the network administrator can proceed to cable up the remaining ports
into the DC fabric and configure device specifics such as unique sysname, static management IP, uplink IPs etc. As IMC is not available to
complete the rest of the desired configuration, CLI via remote network management access will have to be used in this environment.
Note:
This procedure should not disrupt existing switches with saved configuration if they reboot. The existing switches will not initiate the automatic
configuration attempt shown below.
Network topology
The topology as shown in figure 19 will be used to describe this environment:
The new HPE Comware switches will connect into the existing network using their management Ethernet port
L3 network connectivity exists between the new switches and TFTP/DHCP server
Existing
DC fabric
L3 network connectivity
VM VM VM
VM VM VM
10.1.1.0/24 10.10.10.0/24
Hypervisor
M-GE0/0/0
New HPE Existing OOB network Windows 2012 VM
Comware (switch functioning as (DHCP and TFTP
switches default gateway for new server) 10.10.10.106/24
HPE Comware switches)
dhcp enable
#
interface Vlan-interface1
ip address 10.1.1.1 255.255.255.0
dhcp select relay
dhcp relay server-address 10.10.10.106
The following display command can be used to verify DHCP relay requests.
BOOTPREQUEST: 0
DHCP packets received from servers: 4
DHCPOFFER: 2
DHCPACK: 2
DHCPNAK: 0
BOOTPREPLY: 0
DHCP packets relayed to servers: 4
DHCPDISCOVER: 2
DHCPREQUEST: 2
DHCPINFORM: 0
DHCPRELEASE: 0
DHCPDECLINE: 0
BOOTPREQUEST: 0
DHCP packets relayed to clients: 4
DHCPOFFER: 2
DHCPACK: 2
DHCPNAK: 0
BOOTPREPLY: 0
DHCP packets sent to servers: 0
DHCPDISCOVER: 0
DHCPREQUEST: 0
DHCPINFORM: 0
DHCPRELEASE: 0
DHCPDECLINE: 0
BOOTPREQUEST: 0
DHCP packets sent to clients: 0
DHCPOFFER: 0
DHCPACK: 0
DHCPNAK: 0
BOOTPREPLY: 0
The following will be shown on the switch console to verify DHCP IP assignment and the correct .cfg file.
Additional links
HPE 5930 Switch Configuration Guide
Learn more at
hpe.com/networking
Windows and Windows Server are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries.