![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| ||||||||||||||||||||||
Configuring the DHCP for a Diskless NodeTo configure the DHCP for a diskless node, create the DHCP configuration table and network table for the node using the dhcpconfig, dhtadm, and pntadm commands. For more information about these commands and files, see the dhcpconfig(1M), dhtadm(1M), and pntadm(1M) man pages.
|
# dhcpconfig -D -r SUNWnhrbs -p /SUNWcgha/remote/var/dhcp -n |
Modify the /etc/inet/dhcpsvc.conf file:
DAEMON_ENABLED=TRUE RUN_MODE=server RESOURCE=SUNWnhrbs PATH=/SUNWcgha/remote/var/dhcp CONVER=1 INTERFACES=hme0,hme1 OFFER_CACHE_TIMEOUT=30 |
DAEMON_ENABLED enables the DHCP daemon when set to TRUE.
RUN_MODE selects the daemon run mode.
RESOURCE enables you to add the Reliable Boot Service module, SUNWnhrbs, to the DHCP.
PATH enables you to specify the path to the DHCP configuration file. This path must be in a shared file system.
CONVER is the integer that specifies the DHCP container version. Do not modify this parameter.
INTERFACES enables you to specify the network interfaces on the node, for example, hme0 and hme1.
If you are configuring a single network link for your cluster, that is, you do not plan to install the CGTP, specify only the first network interface, for example, hme0.
OFFER_CACHE_TIMEOUT enables you to specify the number of seconds before OFFER cache timeouts occur, for example, 30.
For more information, see the dhcpsvc.conf(4) man page.
Create the DHCP configuration table:
# dhtadm -C |
Modify the DHCP configuration table:
# dhtadm -A -s SbootFIL -d 'Vendor=vendor-string,7,ASCII,1,0' # dhtadm -A -s SswapPTH -d 'Vendor=vendor-string,6,ASCII,1,0' # dhtadm -A -s SswapIP4 -d 'Vendor=vendor-string,5,IP,1,0' # dhtadm -A -s SrootPTH -d 'Vendor=vendor-string,4,ASCII,1,0' # dhtadm -A -s SrootNM -d 'Vendor=vendor-string,3,ASCII,1,0' # dhtadm -A -s SrootIP4 -d 'Vendor=vendor-string,2,IP,1,0' # dhtadm -A -s SrootOpt -d 'Vendor=vendor-string,1,ASCII,1,0' # dhtadm -A -s NhCgtpAddr -d 'Site,128,IP,1,1' # dhtadm -A -m subnet1 -d \ ':Broadcst=broadcast1:MTU=1500:Router=router1:Subnet=255.255.255.0:' # dhtadm -A -m subnet2 -d \ ':Broadcst=broadcast2:MTU=1500:Router=router2:Subnet=255.255.255.0:' # dhtadm -A -m Common -d \ ':BootSrvA=floating-master-address:\ SrootIP4=floating-master-address:\ SswapIP4=floating-master-address:\ BootSrvN=floating-master-address:SrootNM=floating-master-address:' |
Note - If you are not planning to use CGTP, that is, you plan to configure a single network link for your cluster, do not configure the NhCgtpAddr macro.
vendor-string is an ASCII string that identifies the client class names that are supported by the DHCP. Specify multiple client class names separated by spaces, for example:
'SUNW.UltraSPARC-IIi-cEngine SUNW.UltraSPARC-IIi-Netract \ SUNW.UltraSPARCengine_CP-60,7,ASCII,1,0' |
subnet1 is the NIC0 subnet, for example, 10.250.1.0.
subnet2 is the NIC1 subnet, for example, 10.250.2.0.
broadcast1 is the broadcast address of the NIC0 subnet, for example, 10.250.1.255.
broadcast2 is the broadcast address of the NIC1 subnet, for example, 10.250.2.255.
router1 is the router address of the NIC0 subnet, for example, 10.250.1.1.
router2 is the router address of the NIC1 subnet, for example, 10.250.2.1.
floating-master-address is the floating IP address assigned to the CGTP interface of the current master node. For example, 10.250.3.1. For more information, see Configuring the Master-Eligible Node Addresses.
If you are not planning to use the CGTP, that is, you plan to configure a single network link for your cluster, use the IP address assigned to one of the NICs on the current master node, for example, 10.250.1.1.
For more information about the DHCP options, see the dhtadm(1M) man page.
Create the DHCP network table:
# pntadm -C subnet1 # pntadm -C subnet2 |
Configure a DHCP boot policy for the diskless nodes in the cluster by updating the DHCP configuration table and the DHCP network table. The boot policy is a way to assign IP addresses to a diskless node when the node is booted.
Diskless nodes can have a dynamic, static, or client ID boot policy. For further information about the DHCP boot policies, see the Netra High Availability Suite Foundation Services 2.1 6/03 Overview.
Table 7-1 Boot Policies for Diskless Nodes
Boot Policy | Description |
---|---|
DHCP dynamic boot policy | IP address is dynamically assigned from a pool of IP addresses when the diskless node is booted. See To Configure the DHCP Dynamic Boot Policy. |
DHCP static boot policy | IP address is statically assigned based on the Ethernet address of the diskless node. See To Configure the DHCP Static Boot Policy. |
DHCP client ID boot policy | IP address is generated from the node's client ID. See To Configure the DHCP Client ID Boot Policy. |
Note - If you are not planning to use the CGTP, that is, you plan to configure a single network link for your cluster, configure the DHCP only for the NIC0 interface. In addition, do not configure the NhCgtpAddr macro for the cgtp0 interface.
Log in to the master node as superuser.
Update the DHCP configuration table for the NIC0 interface of the diskless node:
# dhtadm -A -m macro-name -d \ ':NhCgtpAddr=local-cgtp-addr:Include=Common:\ BootFile=inetboot.sun4u.os:\ SrootPTH=/export/root/diskless-node-name:\ SswapPTH=/export/swap/diskless-node-name:Include=subnet:' |
macro-name is the NIC0 IP address of the node.
local-cgtp-addr is the IP address of the cgtp0 interface of the node.
os is the operating system. Specify Solaris_8 or Solaris_9 depending on the Solaris version you installed.
diskless-node-name is the name of the node.
subnet is the NIC0 subnet.
For a diskless node, netraDISKLESS1, with the NIC0 IP address 10.250.1.30 and Solaris 9, type:
# dhtadm -A -m 10.250.1.30 -d \ ':NhCgtpAddr=10.250.3.30:Include=Common:BootFile=inetboot.sun4u.Solaris_9:\ SrootPTH=/export/root/netraDISKLESS1:\ SswapPTH=/export/swap/netraDISKLESS1:Include=10.250.1.0:' |
Update the DHCP network table for the NIC0 interface of the diskless node:
# pntadm -A IP-address -f PERMANENT -m macro-name subnet |
IP-address is the NIC0 IP address of the node.
macro-name is the NIC0 IP address of the node.
subnet is the NIC0 subnet.
For the diskless node with the NIC0 IP address 10.250.1.30, type:
# pntadm -A 10.250.1.30 -f PERMANENT -m 10.250.1.30 10.250.1.0 |
Update the DHCP configuration table for the NIC1 interface of the diskless node:
# dhtadm -A -m macro-name -d \ ':NhCgtpAddr=local-cgtp-addr:Include=Common:\ BootFile=inetboot.sun4u.os:\ SrootPTH=/export/root/diskless-node-name:\ SswapPTH=/export/swap/diskless-node-name:Include=subnet:' |
macro-name is the NIC1 IP address of the node.
local-cgtp-addr is the IP address of the cgtp0 interface of the node.
os is the operating system. Specify Solaris_8 or Solaris_9 depending on the Solaris version you installed.
diskless-node-name is the name of the node.
subnet is the NIC1 subnet.
For the diskless node, netraDISKLESS1, with the NIC1 IP address 10.250.2.30 and Solaris 9, type:
# dhtadm -A -m 10.250.2.30 -d \ ':NhCgtpAddr=10.250.3.30:Include=Common:BootFile=inetboot.sun4u.Solaris_9:\ SrootPTH=/export/root/netraDISKLESS1:\ SswapPTH=/export/swap/netraDISKLESS1:Include=10.250.2.0:' |
Update the DHCP network table for the NIC1 interface of the diskless node:
# pntadm -A IP-address -f PERMANENT -m macro-name subnet |
IP-address is the NIC1 IP address of the node.
macro-name is the NIC1 IP address of the node.
subnet is the NIC1 subnet.
For the diskless node with the NIC1 IP address 10.250.2.30, type:
# pntadm -A 10.250.2.30 -f PERMANENT -m 10.250.2.30 10.250.2.0 |
![]() ![]() |