George5610

pxe server config

Aug 4th, 2021 (edited)
145
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #different config file denoted by title in --==example==--
  2.  
  3. --==Ubuntu server ifconfig output==--
  4. inet = 192.168.220.95
  5. broadcast = 192.168.220.255
  6.  
  7. --==pi related==--
  8. nfs fs hostname = oracle_node
  9. first pi serial No = 0c36778e
  10.  
  11. --==cmdline.txt file==--
  12. dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/nfs nfsroot=192.168.220.95:/srv/nfs,vers4.1,proto=tcp,port=2049 rw ip=dhcp elevator=deadline rootwait plymouth.ignore-serial-console
  13.  
  14. --==/etc/exports file==--
  15. /srv/nfs *(rw,fsid=0,sync,no_subtree_check,no_auth_nlm,insecure,no_root_squash)
  16. /srv/tftp *(rw,fsid=0,sync,no_subtree_check,no_auth_nlm,insecure,no_root_squash)
  17.  
  18. --==/etc/dnsmasq.conf file==--
  19. port=0
  20. no-hosts
  21. interface=enp1s0
  22. dhcp-range=192.168.220.255,proxy
  23. pxe-service=0,"Raspberry pi boot"
  24. log-dhcp
  25. enable-tftp
  26. tftp-root=/srv/tftp
  27.  
  28. --==oracle linux fstab==--
  29. #this is the only line, not sure i should have commented out all the old fstab entries?
  30. 192.168.220.95:/srv/tftp/0c36778e /boot nfs4 defaults,nofail,noatime 0 0
  31. 192.168.220.95:/srv/nfs / nfs4 defaults,nofail,noatime 0 0
  32.  
  33. -==/etc/systemd/network/{10-enp1s0.network,11-enp1s0.network}==--
  34. 10-enp1s0.network file
  35. [Match]
  36. Name=enp1s0
  37.  
  38. [Network]
  39. DHCP=yes
  40.  
  41. 11-enp1s0.network
  42. [Match]
  43. Name=enp1s0
  44.  
  45. [Network]
  46. Address=192.168.220.0/24
  47. DNS=8.8.8.8
  48. Gateway=192.168.220.255
  49.  
  50.  
RAW Paste Data