Categories

ID #1188

How does gatewaying in Bright work?

How do I work out/adjust the gateway network properties in Bright?

 

The value of the "GATEWAY" directive in Linux's /etc/sysconfig/network is determined as follows in a Bright cluster:

The value of the "defaultGateway" property of the node's category is taken.


[headnode]% device get node002 category
default
[headnode]% category get default defaultgateway
<some-IP>

 

If the former is empty (not set or set to 0.0.0.0), then the value of the "gateway" property of the node's management network is used instead:

 

[headnode]% device get node002 managementnetwork
internalnet
[headnode]% network get internalnet gateway
<some-IP>

 

If the former is empty (not set or set to 0.0.0.0), then the IP address of the headnode on the management network is used as the default gateway as a last resort.

So, if the preceding properties are examined,  then the value of the GATEWAY directive for the node or nodes can be determined.

 

The value of the directive can be set by editing the  preceding properties. In addition, the value of the directive can be modified by editing the values of the properties. For example, a custom gateway IP address could be set for a node category.

The default management network can be determined as follows:

 

[root@headnode ~]# cmsh
[headnode]% partition use base
[headnode->partition[base]]% get managementnetwork

 

and changed using the set command.

 

Static routes can be set for a particular node using the staticroutes submode:

[root@bright70 ~]# cmsh
[bright70 ]% device use node001
[bright70->device[node001]]%
[bright70->device[node001]]% staticroutes
[bright70->device[node001]->staticroutes]% list
Name (key) Gateway Destination
-------------------------------- ---------------- --------------
[bright70->device[node001]->staticroutes]% add printerroute
[bright70->...*[printerroute*]]% set gateway 10.141.1.1

 

The Administrator manual has this and more on networking.

Tags: -

Related entries:

You cannot comment on this entry