CentOS 7.x Rocks cluster 7.0 Compute node network configuration

From Notes_Wiki

Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Compute node network configuration

Add public network to compute node

We can see defined networks using:

rocks list network

Then we can see list of existing host interfaces using:

rocks list host interface <hostname>

We can see additional ports on host using:

ssh <hostname> "ip addr show" | grep mtu

Then we can configure IP address for the unconfigured interfaces in one of the listed networks (ie public) using:

rocks add host interface <hostname> iface=<interface-name> subnet=<network> ip=<ipaddress>

For example

rocks add host interface gpu iface=ens224 subnet=public ip=172.31.6.14

Then add route for Local networks via public (LAN) interface gateway using:

rocks add host route <hostname> <network> <gateway> netmask=<netmask>
rocks sync config
rocks sync host network <hostname>

For example

rocks add host route gpu 10.0.0.0 172.31.6.1 netmask=255.0.0.0
rocks sync config
rocks sync host network gpu

If required validate using:

ssh <hostname> "ip route show"

The above network and route changes persist across OS reinstalls. Hence if we reinstall the compute node using CentOS 7.x Rocks cluster 7.0 Reinstall OS on compute node it still has these settings

Refer:


Swap network interfaces on compute node

In case the network settings need to be swapped between eth0,eth1 or between ens192,ens224, etc. then we can use the following:

rocks list host interface <hostname>
rocks swap host interface <hostname> ifaces=<iface1>,<iface2>
rocks list host interface <hostname>
rocks sync config
rocks sync host network <hostname>

Refer



Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Compute node network configuration