The follow assumes that the PXE is being setup on a private subnet of 192.168.1.0, and that the server is being setup as 192.168.1.77 and is also named jazz. Please edit these files as needed to reflect the proper network that you use, as well as the hostname in the /etc/hosts file. Change the client names and/or IPs to reflect what you would like to serve out. NOTE: I use this method on my laptop and fake out the system to think that the DNS and router are the laptop IP, so it always goes to the laptop for DNS and/or routing, which can resolve in it's local files on the laptop.
dhcpconfig -Ux
mkdir -p /export/home/pxe/s10 mkdir -p /export/home/dhcp mkdir -p /tftpboot/pxe/ni
dhcpconfig -D -r SUNWfiles -p /export/home/dhcp Created DHCP configuration file. Created dhcptab. Added "Locale" macro to dhcptab. Added server macro to dhcptab - xxx. DHCP server started.
dhcpconfig -N $NETWORK -a $NETADDR -m $NETMASK -y $NISDOMAINFor example:
dhtadm -A -s SrootOpt -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,1,ASCII,1,0' dhtadm -A -s SrootIP4 -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,2,IP,1,1' dhtadm -A -s SrootNM -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,3,ASCII,1,0' dhtadm -A -s SrootPTH -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,4,ASCII,1,0' dhtadm -A -s SswapIP4 -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,5,IP,1,0' dhtadm -A -s SswapPTH -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,6,ASCII,1,0' dhtadm -A -s SbootFIL -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,7,ASCII,1,0' dhtadm -A -s Stz -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,8,ASCII,1,0' dhtadm -A -s SbootRS -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,9,NUMBER,2,1' dhtadm -A -s SinstIP4 -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,10,IP,1,1' dhtadm -A -s SinstNM -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,11,ASCII,1,0' dhtadm -A -s SinstPTH -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,12,ASCII,1,0' dhtadm -A -s SsysidCF -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,13,ASCII,1,0' dhtadm -A -s SjumpsCF -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,14,ASCII,1,0' dhtadm -A -s Sterm -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,15,ASCII,1,0' dhtadm -A -s SbootURI -d 'Vendor=SUNW.Ultra-1 SUNW.Ultra-30 SUNW.i86pc,16,ASCII,1,0'
dhtadm -M -m 192.168.1.0 -d ':Subnet=255.255.255.0:RDiscvyF=0:Broadcst=192.168.1.255:\ Router=192.168.1.1:SinstIP4=192.168.1.77:SrootIP4=192.168.1.77:BootSrvA=192.168.1.77:\ SrootNM="`hostname`":SinstNM="`hostname`":'
share -F nfs -o ro,anon=0 /export/home share -F nfs -o ro,anon=0 /tftpboot/pxe share -F nfs -o ro,anon=0 /tftpboot/pxe/ni
/export/home/pxe - /tftpboot/pxe lofs - yes - /export/home - /tftpboot/pxe/ni lofs - yes -
192.168.1.101 client1 192.168.1.102 client2 192.168.1.103 client3 192.168.1.104 client4 192.168.1.105 client5 192.168.1.106 client6 192.168.1.107 client7 192.168.1.108 client8
mkdir -p /export/home/s10/GA lofiadm -a [fullpath]/sol-10-GA-x86-dvd-iso mount -F hsfs /dev/lofi/1 /mnt (assumes /dev/lofi/1 was return from lofiadm) cd /mnt/Solaris_10/Tools ./setup_install_server /export/home/s10/GA
NOTE: Either make sure all services are restarted or reboot so change are
in place.
cd /export/home/pxe ./pxe-add clientN (where N represents one of the clients added...1, 2, 3, etc...)
Each time you PXE, you will need to add the MAC address of the NIC and run pxe-add. All services will be restarted, the clients will be updated, and away you go...