netinfo.ipxe.j2 949 B

12345678910111213141516171819202122232425
  1. #!ipxe
  2. menu Network info
  3. item --gap MAC:
  4. item mac ${space} ${netX/mac}
  5. item --gap IP/mask:
  6. item ip ${space} ${netX/ip}/${netX/netmask}
  7. item --gap Gateway:
  8. item gw ${space} ${netX/gateway}
  9. item --gap Domain:
  10. item domain ${space} ${netX/domain}
  11. item --gap DNS:
  12. item dns ${space} ${netX/dns}
  13. item --gap DHCP server:
  14. item dhcpserver ${space} ${netX/dhcp-server}
  15. item --gap Next-server:
  16. item nextserver ${space} ${next-server}
  17. isset ${proxydhcp/next-server} && item --gap DHCP proxy next-server: ||
  18. isset ${proxydhcp/next-server} && item proxy-nextserver ${space} ${proxydhcp/next-server} ||
  19. isset ${proxydhcp/next-server} && item --gap Booted from DHCP proxy next-server: ||
  20. isset ${proxydhcp/next-server} && iseq ${proxydhcp/next-server} ${tftp-server} && item bootproxy ${space} Yes ||
  21. item --gap Filename:
  22. isset ${proxydhcp/next-server} && item filename ${space} ${proxydhcp/filename} || item filename ${space} ${netX/filename}
  23. choose empty ||
  24. exit