In general, you will not earn miles on flights booked with miles. When airlines are not receiving direct revenue from your purchase, they will not award you with benefits. This means that the only way to earn miles when flying is to book with cash.