Added mask_as_nic.sh and updated information on mask_as_switch.sh
This commit is contained in:
parent
9c6a374579
commit
b5acea0a8b
24
mask_as_nic.sh
Executable file
24
mask_as_nic.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Sets the mappings for the device to act as two internal ports split for each external port (NIC: 1x100G -> 2x50G)
|
||||
# Later on you can bond them, or use independently.
|
||||
|
||||
# 6-port devices
|
||||
# QSFP 0
|
||||
rdifctl set_port_mask 1 3,5
|
||||
rdifctl set_port_mask 3 1
|
||||
rdifctl set_port_mask 5 1
|
||||
|
||||
# QSFP 1
|
||||
rdifctl set_port_mask 2 4,6
|
||||
rdifctl set_port_mask 4 2
|
||||
rdifctl set_port_mask 6 2
|
||||
|
||||
# 4-port devices
|
||||
# QSFP 0
|
||||
#rdifctl set_port_mask 1 3
|
||||
#rdifctl set_port_mask 3 1
|
||||
|
||||
# QSFP 1
|
||||
#rdifctl set_port_mask 2 4
|
||||
#rdifctl set_port_mask 4 2
|
|
@ -3,8 +3,11 @@
|
|||
# Sets the mappings for the device to act as every port being part of same switch
|
||||
|
||||
# 6-port devices
|
||||
# QSFP 0
|
||||
rdifctl set_port_mask 1 2,3,4,5,6
|
||||
# QSFP 1
|
||||
rdifctl set_port_mask 2 1,3,4,5,6
|
||||
|
||||
rdifctl set_port_mask 3 1,2,4,5,6
|
||||
rdifctl set_port_mask 4 1,2,3,5,6
|
||||
rdifctl set_port_mask 5 1,2,3,4,6
|
||||
|
|
Loading…
Reference in a new issue