Iran has scoffed at the idea it is seeking a peace deal, saying it is prepared to defend itself for as long as it takes.