Difference between revisions of "Bright:Network settings"

From Define Wiki
Jump to navigation Jump to search
(Created page with "=== DHCP === To enable DHCP on Bright Cluster, we need to make sure that the lockdowndhcp property is set for that network. <syntaxhighlight> # cmsh % network use <network_name> % set lo...")
 
 
Line 1: Line 1:
=== DHCP ===
+
== DHCP ==
 
To enable DHCP on Bright Cluster, we need to make sure that the lockdowndhcp property is set for that network.
 
To enable DHCP on Bright Cluster, we need to make sure that the lockdowndhcp property is set for that network.
 
<syntaxhighlight>
 
<syntaxhighlight>
Line 14: Line 14:
 
% foreach -n node001..node010 (interfaces; use eth1; set network
 
% foreach -n node001..node010 (interfaces; use eth1; set network
 
<new_network>; commit)
 
<new_network>; commit)
 +
</syntaxhighlight>
 +
 +
== Change interface IP address ==
 +
<syntaxhighlight>
 +
[root@bios-head ~]# cmsh
 +
[bios-head]% device use master
 +
[bios-head->device[bios-head]]% interfaces
 +
[bios-head->device[bios-head]->interfaces]% use eth1
 +
[bios-head->device[bios-head]->interfaces[eth1]]% show
 +
Parameter                        Value                                         
 +
-------------------------------- ------------------------------------------------
 +
Additional Hostnames                                                             
 +
BringUpDuringInstall            NO                                             
 +
Card Type                        Ethernet                                       
 +
DHCP                            no                                             
 +
IP                              185.93.28.11                                   
 +
MAC                              00:30:48:C8:7A:DD                               
 +
Network                          externalnet                                     
 +
Network device name              eth1                                           
 +
On network priority              60                                             
 +
Revision                                                                         
 +
Speed                                                                           
 +
Start if                        ALWAYS                                         
 +
Type                            physical                                       
 +
[bios-head->device[bios-head]->interfaces[eth1]]% set ip 185.93.28.12
 +
[bios-head->device*[bios-head*]->interfaces*[eth1*]]% commit
 +
[bios-head->device[bios-head]->interfaces[eth1]]% ..
 +
[bios-head->device[bios-head]->interfaces]% ..
 +
[bios-head->device[bios-head]]% ..
 +
[bios-head->device]% ..
 +
[bios-head]% ..
 +
[root@bios-head ~]# reboot
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 15:58, 3 February 2016

DHCP

To enable DHCP on Bright Cluster, we need to make sure that the lockdowndhcp property is set for that network.

# cmsh
% network use <network_name>
% set lockdowndhcpd no
% commit

Please note that a node is attached to a network by attaching aninterface to this node which is connected to that network. If you want to change the network of some nodes, you can do that by changing the network property of the interfaces attached to those nodes using the commands below:

# cmsh
% device
% foreach -n node001..node010 (interfaces; use eth1; set network
<new_network>; commit)

Change interface IP address

[root@bios-head ~]# cmsh 
[bios-head]% device use master
[bios-head->device[bios-head]]% interfaces 
[bios-head->device[bios-head]->interfaces]% use eth1
[bios-head->device[bios-head]->interfaces[eth1]]% show
Parameter                        Value                                           
-------------------------------- ------------------------------------------------
Additional Hostnames                                                              
BringUpDuringInstall             NO                                               
Card Type                        Ethernet                                         
DHCP                             no                                               
IP                               185.93.28.11                                     
MAC                              00:30:48:C8:7A:DD                                
Network                          externalnet                                      
Network device name              eth1                                             
On network priority              60                                               
Revision                                                                          
Speed                                                                             
Start if                         ALWAYS                                           
Type                             physical                                         
[bios-head->device[bios-head]->interfaces[eth1]]% set ip 185.93.28.12
[bios-head->device*[bios-head*]->interfaces*[eth1*]]% commit
[bios-head->device[bios-head]->interfaces[eth1]]% ..
[bios-head->device[bios-head]->interfaces]% ..
[bios-head->device[bios-head]]% ..
[bios-head->device]% ..
[bios-head]% ..
[root@bios-head ~]# reboot