Centos 5.5 X86_64实战KickStart自动化安装
|
next-server 192.168.1.20; #添加:Tftp server服务器的ip地址。 filename "/pxelinux.0"; #添加:Bootstrap文件。 subnet 192.168.1.0 netmask 255.255.255.0 { #声明KickStart ip网段. # --- default gateway option routers 192.168.1.1; #必须改成KickStart ip网段的网关地址。 option subnet-mask 255.255.255.0; option nis-domain "domain.org"; option domain-name "domain.org"; option domain-name-servers 192.168.1.20; #必须改成KickStart ip服务器正确地址。 option time-offset -18000; # Eastern Standard Time # option ntp-servers 192.168.1.1; # option netbios-name-servers 192.168.1.1; # --- Selects point-to-point node (default is hybrid). Don't change this unless # -- you understand Netbios very well # option netbios-node-type 2; range dynamic-bootp 192.168.1.100 192.168.1.254; #更改:安装完系统默认分配的客户端ip地址。 default-lease-time 21600; max-lease-time 43200; # we want the nameserver to appear at a fixed address host ns { next-server marvin.redhat.com; hardware ethernet 12:34:56:78:AB:CD; fixed-address 207.175.42.254; } } [root@DZ-03 ~]# /etc/init.d/dhcpd restart #启动dhcpd服务器 5. 安装NFS文件系统 [root@DZ-03 ~]# yum -y install nfs-* [root@DZ-03 ~]# mkdir /tftpboot/ks [root@DZ-03 ~]# vim /etc/exports #打开配置文件,添加如下: /mnt *(ro) /tftpboot/ks/ *(ro) [root@DZ-03 ~]# /etc/init.d/portmap restart [root@DZ-03 ~]# /etc/init.d/nfs restart [root@DZ-03 ~]# showmount -e localhost #检查是否加载成功 Export list for localhost: /mnt * /tftpboot/ks * (编辑:佛山站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |

