-----------------------------------
http://192.168.3.2/docs/

---NTP---

---server---

# yum install ntp -y
# vi /etc/ntp.conf
-----------------------
 13 restrict 192.168.3.0 mask 255.255.255.0 nomodify notrap
-----------------------
# service ntpd restart
# service ntpd restart
# watch -n 1 ntpq -p
 ---> reach >= 17

---client---

# yum install ntp -y
# ntpdate 192.192.168.3.2
-----------------------
22 Sep 09:57:24 ntpdate[9920]: step time server 192.168.3.2 offset 794624.151852 sec
-----------------------

---kickstart---

---tftp-server
---DHCP
---DNS
---FTP/HTTP/NFS
---system-config-kickstart

01 tftp-server

# yum install tftp-server -y
# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
# cd /var/ftp/iso/isolinux/
# df -h    (/dev/hdc ---> /var/ftp/iso)
# cp vmlinuz initrd.img /tftpboot/
# mkdir /tftpboot/pxelinux.cfg
# cp isolinux.cfg /tftpboot/pxelinux.cfg/default
# chkconfig tftp on
# service xinetd restart
# chkconfig xinetd on

02 DHCP

# yum install dhcp -y
# vi /etc/dhcpd.conf
-----------------------
ddns-update-style interim;
ignore client-updates;

subnet 192.168.3.0 netmask 255.255.255.0 {
        option domain-name-servers      192.168.3.2;
        option time-offset              -18000; # Eastern Standard Time
        option ntp-servers              192.168.3.2;
        range dynamic-bootp 192.168.3.250 192.168.3.252;
        default-lease-time 21600;
        max-lease-time 43200;
        next-server 192.168.3.2;
        filename "pxelinux.0";
}
------------------------
# service dhcpd start

03 DNS

#yum install bind bind-chroot caching-nameserver -y
#cd /var/named/chroot/etc/
#cp -p named.caching-nameserver.conf named.conf
#vi named.conf
--------------------
 15 //      listen-on port 53 { 127.0.0.1; };
 16 //      listen-on-v6 port 53 { ::1; };
 27 //      allow-query     { localhost; };
 28 //      allow-query-cache { localhost; };
 37         match-clients      { any; };
 38         match-destinations { any; };
--------------------
#vi named.rfc1912.zones 
--------------------
 33 zone "uplooking.com" IN {
 34         type master;
 35         file "uplooking.com.zone";
 36         allow-update { none; };
 37 };
 38 
 39 zone "3.168.192.in-addr.arpa" IN {
 40         type master;
 41         file "192.168.3.local";
 42         allow-update { none; };
 43 };
--------------------
#cd ../var/named/
#cp -p localhost.zone uplooking.com.zone
#cp -p named.local 192.168.3.local
#vi uplooking.com.zone 
----------------------
$TTL    86400
@               IN SOA  dns.uplooking.com.       root.mail.uplooking.com. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN NS           dns.uplooking.com.
dns             IN A            192.168.3.2
mail            IN A            192.168.3.2
srv2            IN A            192.168.3.2
$GENERATE 250-252 stu$ IN A     192.168.3.$
-------------------------

#vi 192.168.3.local 
----------------------
$TTL    86400
@       IN      SOA     dns.uplooking.com. root.mail.uplooking.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
        IN      NS      dns.uplooking.com.
2       IN      PTR     dns.uplooking.com.
2       IN      PTR     mail.uplooking.com.
2       IN      PTR     srv2.uplooking.com.
$GENERATE 250-252 $       IN      PTR     stu$.uplooking.com.
----------------------
#service named restart
#vi /etc/resolv.conf 
-------------------
nameserver 192.168.3.2
-------------------

04 FTP

#yum install vsftpd -y
#service vsftpd start
#mkdir /var/ftp/iso
#mount /dev/cdrom /var/ftp/iso
#df -h
#sestatus
#iptables -L
#service vsftpd start
#lftp 192.168.3.2/iso
ftp> ls

05 kickstart

#yum install system-config-kickstart