IP:10.104.0.101[root@localhost network-scripts]# cat ifcfg-em1[root@localhost network-scripts]# iptables -F[root@localhost network-scripts]# ...
IP:10.104.0.101
[root@localhost network-scripts]# cat ifcfg-em1
[root@localhost network-scripts]# iptables -F
[root@localhost network-scripts]# iptables -X
[root@localhost network-scripts]# service iptables stop
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:清除防火墙规则: [确定]
iptables:正在卸载模块: [确定]
[root@localhost network-scripts]# service iptables save
[root@localhost network-scripts]# vim /etc/sysconfig/selinux
[root@localhost network-scripts]#setenforce 0
setenforce: SELinux is disabled
[root@localhost network-scripts]# mkdir /media/cdrom
[root@localhost network-scripts]# mount /dev/cdrom /media/cdrom/
mount: block device /dev/sr0 is write-protected, mounting read-only read-only
[root@localhost network-scripts]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@localhost yum.repos.d]# vim CentOS-Media.repo
[root@localhost yum.repos.d]# yum -y install ftp tftp-server syslinux vsftpd xinetd dhcp
[root@localhost yum.repos.d]# mkdir /var/ftp/rhel6
[root@localhost yum.repos.d]# cp -rf /media/cdrom/* /var/ftp/rhel6/
[root@localhost yum.repos.d]# vim /etc/xinetd.d/tftp
[root@localhost yum.repos.d]# cd /media/cdrom/images/pxeboot/
[root@localhost pxeboot]# cp initrd.img vmlinuz /var/lib/tftpboot/
[root@localhost pxeboot]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
[root@localhost pxeboot]# mkdir /var/lib/tftpboot/pxelinux.cfg
[root@localhost pxeboot]# vim /var/lib/tftpboot/pxelinux.cfg/default
1 default auto 2 3 prompt 0 4 5 timeout 1 6 7 label auto 8 9 kernel vmlinuz10 11 append initrd=initrd.img ks=ftp://10.104.0.101/rhel6/ks.cfg devfs=nomount ramdisk_size=8192 ksdevice=em1 biosname=012 13 label linux text14 15 kernel vmlinuz16 17 append text initrd=initrd.img devfs=nomount ramdisk_size=819218 19 label linux rescue20 21 kernel vmlinuz22 23 append rescue initrd=initrd.img devfs=nomount ramdisk_size=8192
原标题:Dell
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。