Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| howto:rocks_add_interface [2015/08/31 10:32] – jp | howto:rocks_add_interface [2018/10/09 10:12] (current) – external edit 127.0.0.1 |
|---|
| The second way is to be lucky (or well-off) and have a second interface on each compute node which you can connect to the outside world (or switch). Even so, this is not straightforward. Note that the second interface of a rocks compute node is not installed by default. In the below the interface is assumed to be prefixed with //em// (instead of //eth//), and we assume we are adding an interface on //compute-0-0//. Apply your case accordingly. | The second way is to be lucky (or well-off) and have a second interface on each compute node which you can connect to the outside world (or switch). Even so, this is not straightforward. Note that the second interface of a rocks compute node is not installed by default. In the below the interface is assumed to be prefixed with //em// (instead of //eth//), and we assume we are adding an interface on //compute-0-0//. Apply your case accordingly. |
| |
| As root: | As **root**: |
| |
| - Do a ''rocks list network'' and record the names of the networks (e.g. by default the public network will be called ''public'') | - Do a ''rocks list network'' and record the names of the networks (e.g. by default the public network will be called ''public'') |
| - You can do this via ''rocks remove host interface compute-0-0 em2'' | - You can do this via ''rocks remove host interface compute-0-0 em2'' |
| - You will need to find the MAC of the compute node you want to install. Log in the compute node and issue ''ifconfig -a''. Note the MAC address. | - You will need to find the MAC of the compute node you want to install. Log in the compute node and issue ''ifconfig -a''. Note the MAC address. |
| - To install the public interface run ''rocks add host interface compute-0-0 em2 ip=10.1.2.110 mac=F0:1F:AF:D0:9F:D4 subnet=public'' with the appropriate IP and MAC address. Note that the //subnet// field specifies the network you want to connect to (found from Step 1 above). | - To install the public interface run ''rocks add host interface compute-0-0 em2 ip=10.1.2.110 mac=F2:BB:CB:D3:1F:C4 subnet=public'' with the appropriate IP and MAC address. Note that the //subnet// field specifies the network you want to connect to (found from Step 1 above). |
| - Check that the installation worked ''rocks list host interface'' | - Check that the installation worked ''rocks list host interface'' |
| - You now need to sync the network and cluster with the newly added interface (let Rocks know about it): | - You now need to sync the network and cluster with the newly added interface (let Rocks know about it): |