Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to test a PXE client by directly expressing the pxe server to use?

I'd like to preferably specify this in grub or from a test VM with CentOS installed. This isn't meant as a production methodology by any means, I just would like to do some testing, but don't have access to our environments DHCP server.

share|improve this question
up vote 2 down vote accepted

Grub has an ifconfig command that lets you manually configure the network.

grub> ifconfig --address=<IP for this host> --mask=<network mask> --server=<TFTP server address>

Once you've set up the network interface, set the root disk to the network device (nd), point Grub to the kernel/initrd images, then boot it.

grub> root(nd)
grub> kernel /path/to/kernel/image
grub> initrd /path/to/initrd/image
grub> boot
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.