Download Implementing an IBM High Performance Computing
Transcript
On the compute nodes, the gateway setting is reflected in the default network route. You can verify the default network route with the ip command in the compute nodes. The DHCP network configuration must be refreshed in the compute nodes that acquired the previous configuration with a reboot or with the ifdown and ifup commands (Example 3-55). Example 3-55 xCAT: Refreshing the DHCP network configuration on a compute node The default network route still is not set (no output): # xdsh p8r4n2 'ip route list | grep default' # Restart all network interfaces with the ifdown/ifup commands: # xdsh p8r4n2 -s 'bash -c "ifdown -a; ifup -a"' <...> p8r4n2: DHCPRELEASE on eth0 to 10.1.0.1 port 67 (xid=0x5bcdb97e) <...> p8r4n2: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x5fcece70) p8r4n2: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x5fcece70) p8r4n2: DHCPREQUEST of 10.1.4.2 on eth0 to 255.255.255.255 port 67 (xid=0x5fcece70) p8r4n2: DHCPOFFER of 10.1.4.2 from 10.1.0.1 p8r4n2: DHCPACK of 10.1.4.2 from 10.1.0.1 <...> p8r4n2: bound to 10.1.4.2 -- renewal in 17414 seconds. The default network route is now set (IP address of the management node): # xdsh p8r4n2 'ip route list | grep default' p8r4n2: default via 10.1.0.1 dev eth0 Now, the compute nodes’ DHCP network configuration, which points to the management node as the network gateway, is up-to-date. To configure NAT on the management node, first enable IPv4 Forwarding in the /etc/sysctl.conf file (Example 3-56). Example 3-56 xCAT: Verifying and enabling IPv4 Forwarding in the sysctl.conf file Verify if the net.ipv4.ip_forward option is enabled (1) and uncommented (no heading # in the line): # grep net.ipv4.ip_forward /etc/sysctl.conf net.ipv4.ip_forward = 1 In this case, it is enabled and uncommented. If it's not, you can add it with: # echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf Activate the new setting: # sysctl -p Chapter 3. Software deployment and configuration 73