HPE 6125XLG/6127XLG are blade switche modules which can be run as a single stacked switch.
To form a switch stack using the internal crossconnect follow these instructions
First Switch Config
! set the cluster name to reflect we are running in the bl7000 chassis
sysname bl7000-xlg
! set this switch to have the higher priority
irf member 1 priority 32
! As we run other IRF fabrics, make sure this is unique
irf domain 5
! configure the ports
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/17
port group interface Ten-GigabitEthernet1/0/18
port group interface Ten-GigabitEthernet1/0/19
port group interface Ten-GigabitEthernet1/0/20
quit
irf-port-configuration active
! save the configuration
save
Second Switch Config
sys
irf member 1 renumber 2
quit
save
reboot
! set the cluster name to reflect we are running in the bl7000 chassis
sysname bl7000-xlg
! As we run other IRF fabrics, make sure this is unique
irf domain 5
! configure the ports
irf-port 2/2
port group interface Ten-GigabitEthernet2/0/17
port group interface Ten-GigabitEthernet2/0/18
port group interface Ten-GigabitEthernet2/0/19
port group interface Ten-GigabitEthernet2/0/20
quit
irf-port-configuration active
! save the configuration
save
! bring the ports up on the second switch
int range ten2/0/17 to ten2/0/20
undo shutdown
quit
Activate IRF Fabric
on the first switch run
int range ten 1/0/17 to 1/0/20
undo shutdown
quit
the second switch will now reboot and join the fabric