Difference between revisions of "XCAT Set up network bonding bond0"

From Define Wiki
Jump to navigation Jump to search
(Created page with "<pre> # check the existing networks (region1)[root@stu-dpy1 ~]$ lsdef -t network 192_168_0_0-255_255_255_0 (network) 192_168_1_0-255_255_255_0 (network) # Add a new netwo...")
(No difference)

Revision as of 11:44, 29 December 2020

# check the existing networks
(region1)[root@stu-dpy1 ~]$ lsdef -t network 
192_168_0_0-255_255_255_0  (network)
192_168_1_0-255_255_255_0  (network)


# Add a new network 
chdef -t network net_bond1_vlan202 net=192.168.2.0 mask=255.255.255.0


# below assumes the node name is stu-gpu1 (repeat for all nodes - add to add_node script) 
chdef stu-gpu1 nictypes.enp24s0f0=ethernet nictypes.enp24s0f1=ethernet
chdef stu-gpu1 nictypes.bond1=bond nicdevices.bond1="enp24s0f0|enp24s0f1"
chdef stu-gpu1 nicnetworks.bond1=net_bond1_vlan202
chdef stu-gpu1 nicips.bond1=192.168.2.33


# If adding to the provisioning setup (node has not been installed) 
chdef stu-gpu1 -p postscripts=confignetwork

# If adding to an already deployed node
updatenode stu-gpu1 -P confignetwork