192
File
Content
Remarks
.py Python script file
Python commands that complete the
following tasks:
a
(Optional.) Verify that the flash
memory has sufficient space for the
files to be downloaded.
b
Download the configuration file and
sn.txt
.
c
(Optional.) Download the software
image file and specify it as the main
startup image file.
d
Resolve
sn.txt
and assign a unique
IRF member ID to each SN.
e
Specify the configuration file as the
main next-startup configuration file.
f
Reboot the member switches.
For more information about
Python script configuration, see
"
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 the 192.168.1.0/24 subnet to clients.
[DeviceA] dhcp server ip-pool 1
[DeviceA-dhcp-pool-1] network 192.168.1.0 24
# 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
# 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
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 Slot Role Priority CPU-Mac Description
1 1 Standby 1 00e0-fc0f-8c02 ---
*+2 1 Master 30 00e0-fc0f-8c14 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 000c-1000-1111
Содержание FlexNetwork 10500 Series
Страница 139: ...130 Sysname display version ...