Solaris as tftp (linux) boot server

Packages

You should have the 3 basic DHCP packages installed;

pkginfo | grep DHCP

system SUNWdhcsb Binary File Format Data Module for BOOTP/DHCP Services
system SUNWdhcsr BOOTP/DHCP Server Services, (Root)
system SUNWdhcsu BOOTP/DHCP Server Services, (Usr)

Procedure

Create basic DHCP configuration and dhcptab files
Create a macro for the local network
Create the local network table
Add some entries to the network table
Start the DHCP server

Basic DHCP Configuration

Use dhcpconfig to setup dhcpsvc.conf and dhcptab, here we simply define the type of datastore (SUNWfiles = text files) and the location of datafiles;

# dhcpconfig -D -r SUNWfiles -p /var/dhcp [config will saved as a plain text file]

# dhcpconfig -D -r SUNWbinfiles -p /var/dhcp [config will saved as a binary file]

Create a macro for the local network and boot image

Here we create a macro for our local network ( the one we will serve IP addresses for) in dhcptab

# dhtadm -A -m 192.168.106.0 -d ‘:Broadcst=192.168.106.255:Subnet=255.255.255.0:MTU=1500:’

# dhtadm -A -m PXEClient:Arch:00000:UNDI:002001 -d ‘:BootFile=”pxelinux.0″:BootSrvA=192.168.106.63:’

Create the local network table

# pntadm -C 192.168.106.0

Add some entries to the network table

Here we define three local IP address that will be leased out by the dhcp server…

# pntadm -A 192.168.106.200 192.168.106.0
# pntadm -A 192.168.106.201 192.168.106.0
# pntadm -A 192.168.106.202 192.168.106.0

Start the DHCP server

Use the standard init.d boot script and watch /var/adm/messages for problems;

# svcadm refresh dhcp-server

If you have problems stop the daemon and run it manually with the debug & verbose options;

# /usr/lib/inet/in.dhcpd -dv

3fe143d6: Daemon Version: 3.5 3fe143d6: Maximum relay hops: 4 3fe143d6: Run mode is: DHCP Server Mode. 3fe143d6: Datastore resource: SUNWfiles

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: