Effects of magnetic field and flux on perfect channel in metallic carbon nanotubes