Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.