DHCP Configuration

image :~ # cat /etc/dhcpd.conf
ddns-update-style ad-hoc;
default-lease-time 108000;
max-lease-time 162000;

subnet 192.168.10.0 netmask 255.255.255.0
{
        range 192.168.10.101 192.168.10.114;
        option broadcast-address 192.168.10.255;
        option subnet-mask 255.255.255.0;
}

# if dhcp server got two NICs, you have to define an empty range for another network interface like this if
# the second interface is on 192.168.200.0 network.
subnet 192.168.200.0 netmask 255.255.255.0
{
}

group {
# 192.168.10.1 is the blade dd image server
next-server 192.168.10.1; 
filename "pxelinux.0";

# you can specify fixed up for each blade server in dhcp like this
host blade1 { hardware ethernet 00:01:02:AA:BB:CC; fixed-address 192.168.10.101;}
host blade2 { hardware ethernet 00:01:03:AA:BB:DD; fixed-address 192.168.10.102; }
}

RSH/TFTP Configuration
(let's say the image server is running SuSE Enterprise 8)

# allow R command and tftp service
image ~ # more /etc/inetd.conf
shell   stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/in.rshd
login  stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/in.rlogind
tftp    dgram  udp     wait     root    /usr/sbin/tcpd  in.tftpd  -s  /tftpboot

# allow root user R command
image:~ # cat /etc/securetty | grep ^r
rlogin
rsh
rexec

# allow all dhcp range to rsh with prompt
image:~ # cat /root/.rhosts
192.168.10.101
192.168.10.102
192.168.10.103
192.168.10.104
192.168.10.105
192.168.10.106
192.168.10.107
192.168.10.108
192.168.10.109
192.168.10.110
192.168.10.111
192.168.10.112
192.168.10.113
192.168.10.114


                                                                                                                    Back to Main



This project is hosted by sourceforge.net   
Contact me