In 1854 Perry duly negotiated the Treaty of Kanagawa ( now part of Yokohama ) , opening up two ports , Shimoda on the Izu Peninsula and Hakodate in Hokkaido .
Perry had initially wanted to open up more than 20 ports .