pxe commands

Upload: 4912462

Post on 07-Jul-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 Pxe Commands

    1/2

    26 ip addr show27 mount /dev/sr0 /mnt ; cp -r /mnt/* /var/frp/pub

    28 cd /etc/yum.repos.d/ 29 s !0 vim oca .repo !" vi oca .repo

    !2 yum repo ist !! setenforce 0 ; systemct disba e firewa d ; systemct stop firewa d

    !# vim /etc/se inu$/confi% &disab ed mode& !' vi /etc/se inu$/confi%

    !6 sestatus!7 yum -y insta dhcp tftp tftp-server sys inu$ w%et!8 yum -y insta vsftpd!9 vi /etc/dhcp/dhcpd.conf#0 yum insta vim#" vi /etc/dhcp/dhcpd.conf#2 vim /etc/dhcp/dhcpd.conf

    ddns-update-sty e interim;i%nore c ient-updates;authoritative;a ow bootin%;a ow bootp;a ow-un(nown-c ients;subnet "92."68."00.0 netmas( 2''.2''.2''.0 ) ran%e "92."68."00.'0 "92."68."00.60; option domain-name-servers "92."68."00.2; option routers "92."68."00.2; defau t- ease-time 600; ma$- ease-time 7200;

    p$e-server ipne$t-server "92."68."00."0;fi ename &p$e inu$.0&;+

    #! vim /etc/$inetd.d/tftp## m(dir -p /tftpboot

    #' chmod 777 /tftpboot/ #6 cp -v /usr/share/sys inu$/p$e inu$.0 /tftpboot/ #7 cp -v /usr/share/sys inu$/menu.c!2 /tftpboot/ #8 cp -v /usr/share/sys inu$/memdis( /tftpboot/ #9 cp -v /usr/share/sys inu$/mboot.c!2 /tftpboot/ '0 cp -v /usr/share/sys inu$/chain.c!2 /tftpboot/ '" m(dir /tftpboot/p$e inu$.cf% '2 m(dir -p /tftpboot/netboot '! cp -r /mnt/* /var/ftp/pub/ '# vim /tftpboot/p$e inu$.cf%/defau t

    defau t menu.c!2 prompt 0 timeout !00

  • 8/18/2019 Pxe Commands

    2/2

    , 1 ,y3 45 ,enu

    3 45 7: 86 , 3 45 7 6# 3 netboot/vm inu< 4 initrd=netboot/initrd.im% inst-repo=ftp>//"92."68."00."0/pub

    (s=ftp>//"92."68."00."0/pub/(s.cf%

    '' systemct restart dhcpd'6 systemct restart $inetd'7 systemct restart vsftpd