Burn 8mhz(internal) bootloader on a 16mhz(external) configured atmega328P

Thanks for your time johnwasser.
Since both my atmega328P are set to external crystal, how could I use one(into the arduino board) as ISP to burn a 8mhz(internal clock) bootloader on the other(bread board minimal configs)?