172
Configuration procedure
1. Assign IP addresses to the interfaces. Make sure the devices can reach each other. (Details not
shown.)
2. Configure the following files on the HTTP server:
.cfg configuration file Commands required for IRF setup.
You can create a configuration file by
copying and
configuration file of
fabric.
sn.txt
Serial numbers of the member
switches.
Each SN uniquely identifies a switch.
These SNs will be used for assigning
a
unique IRF member ID to each
member switch.
software image file
Software images.
If the member switches are running
different software versions, you must
prepare the software image file used
for software upgrade.
.py Python script file
Python commands and APIs that
complete the following tasks:
a.
(Optional.) Verifies that the
flash memory has sufficient
space for the files
downloaded.
b. Downloads the configuration
file and sn.txt.
c. (Optional.) Downloads the
software image file and
specifies it
startup image file.
d. Resolves sn.txt and assigns
a unique IRF member ID to
each SN.
e. Specifies
file as the main next-startup
configuration file.
f. Reboots the member
switches.
For more information about Python
script configuration, see "Using
Python."
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 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