TCP/IP and Data Communications Administration Guide

Customization Examples

To change an NIS server value for the network 126.147.100.0:

  1. Edit the macro 129.147.100.0 with:


    dhtadm -M -m 129.147.100.0 -e `NISserv = 129.147.100.1 129.147.100.2'
    

  2. Type:


    /etc/init.d/dhcp stop
    

  3. Type:


    /etc/init.d/dhcp start
    

    Or, instead of steps 2 and 3, use the -t option to in.dhcpd.

    To add addresses from 10-15 to 129.147.100.0


    for addr in 10 11 12 13 14 15  
    do  
    	pntadm -A 129.147.100.$addr -m server -h hundred-$addr 129.147.100.0
    done
    

To add a symbol definition for a timezone; SN_TZ

  1. Type:


    dhtadm -A -s SN_TZ -d  'Vendor="SUNW.PCW.LAN SUNW.Solaris", 13, ASCII, 1, 0'
    

  2. Type:


    dhtadm -M -m Locale -e `:SN_TZ = "EST5EDT4":'
    

  3. Type:


    /etc/init.d/dhcp stop
    

  4. Type:


    /etc/init.d/dhcp start
    
    or -t option

To delete the Timeserv value from the jurassic macro:

  1. Type:


    dhtadm -D -m jurassic -e `Timeserv=`
    

  2. Type:


    /etc/init.d/dhcp stop
    

  3. Type:


    /etc/init.d/dhcp start
    
    or -t option

Always return hostnames to the client of the server jurassic.

  1. Type:


    dhtadm -M -m jurassic -e `Hostname= _NULL_VALUE_'
    

  2. Type:


    /etc/initd/dhcp stop
    

  3. Type:


    /etc/init.d/dhcp start
    
    or -t option

If it is important to maintain the hostname-to-IP address association for a host named canoepoint to an IP address association, mark the canoepoint entry on the peds network as MANUAL.

  1. Type:


    pntadm -M canoepoint -f MANUAL peds
    

    or

  2. Type:


    pntadm -M canoepoint -f 02 peds
    

In order to mark 129.147.100.87 as BOOTP and permanent:

  1. Type:


    pntadm -M 129.147.100.87  -f `BOOTP + PERMANENT' 129.147.100.0
    

    or

  2. Type:


    pntadm -M 129.147.100.87 -f 09 129.147.100.0