HP 5920 series Fundamentals Configuration Manual page 187

Hide thumbs Also See for 5920 series:
Table of Contents

Advertisement

File
.py Python script file
3.
Configure Device A as the DHCP server:
# Enable DHCP.
<DeviceA> system-view
[DeviceA] dhcp enable
# Configure address pool 1 to assign IP addresses on subnet 192.168.1.0/24 to clients.
[DeviceA] dhcp server ip-pool 1
[DeviceA-dhcp-pool-1] network 192.168.1.0 24
# Enable the DHCP server on Ten-GigabitEthernet 1/0/1.
[DeviceA] interface Ten-GigabitEthernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] dhcp select server
[DeviceA-Ten-GigabitEthernet1/0/1] quit
# Specify the URL of the script file for the clients.
[DeviceA-dhcp-pool-1] bootfile-name http://192.168.1.40/device.py
[DeviceA-dhcp-pool-1] quit
4.
Power on Switch A and Switch B.
Switch A and Switch B will obtain the Python script file from the DHCP server and execute the script.
After completing the IRF configuration, Switch A and Switch B reboot.
5.
After Switch A and Switch B start up again, use a cable to connect Switch A and Switch B through
their IRF physical ports.
Switch A and Switch B will elect a master member. The subordinate member will reboot to join the
IRF fabric.
Verifying the configuration
# On Switch A, display IRF member devices. You can also use the display irf command on Switch B to
display IRF member devices.
<Switch A> display irf
MemberID
1
*+2
--------------------------------------------------
Content
Python commands and APIs that
complete the following tasks:
(Optional.) Verifies that the flash
memory has sufficient space for the
files to be downloaded.
Downloads the configuration file
and sn.txt.
(Optional.) Downloads the
software image file and specifies it
as the main startup image file.
Resolves sn.txt and assigns a
unique IRF member ID to each SN.
Specifies the configuration file as
the main next-startup configuration
file.
Reboots the member switches.
Slot
Role
Priority
1
Standby 1
1
Master
30
CPU-Mac
Description
00e0-fc0f-8c02
---
00e0-fc0f-8c14
---
179
Remarks
For more information about Python
script configuration, see
Python."
"Using

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900 series

Table of Contents