Iran said it was committed to good neighbourly relations with Pakistan, but called on the neighbouring state to prevent the establishment of "terrorist bases" on its soil, Iran's foreign ministry said in a statement published on Thursday.