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 .
A treaty opening up ports in Shimoda and Hakodate was negotiated in 1854 .