HP 10500 Series Configuration Manual page 224

Hide thumbs Also See for 10500 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 the 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 GigabitEthernet 1/0/1.
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] dhcp select server
[DeviceA-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:
Slot
Role
Priority
6
Standby 1
7
Master
30
(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 sets it as the main
startup image file.
Resolves sn.txt and assigns a unique
IRF member ID to each SN.
Sets the configuration file as the
main next-startup configuration file.
Reboots the member switches.
CPU-Mac
00e0-fc0f-8c02
00e0-fc0f-8c14
214
Remarks
For more information about
Python script configuration, see
"Using Python."
Description
---
---

Advertisement

Table of Contents
loading

Table of Contents