He received his initial naval training at Gosport and, from July 1827 to November 1828, cruised the Caribbean in the sloop of war Natchez in the campaign against pirates in that area.
Between January 1836 and June 1839, he cruised the Pacific Squadron in the 74-gun ship of the line North Carolina, primarily along the western coast of South America protecting American commerce during a period of unrest caused by strained relations between the United States and Mexico and the war between Peru and Chile.
After providing temporary support for the defenders of Fort Pickens, who refused to follow Armstrong's example, Walke took off some of the loyal sailors and navy yard employees and got underway for New York on the 16th.
It turned out that the Navy Secretary Isaac Toucey wanted the USS Supply to sail for Vera Cruz, Mexico with provisions, instead of delivering loyal to the Union cause personnel and their families to New York.
In a subsequent court-martial Walke was cleared of several charges but admonished for disobeying his orders to rejoin the squadron of Garrett J. Pendergrast at Vera Cruz.
Following that service—during the summer of 1861—and a four-day tour as lighthouse inspector for the 11th District early in September, Walke headed west in response to orders to special duty at St. Louis, Missouri.
In February 1862, during his tenure as Carondelet's commanding officer, Walke led her during the captures of Forts Henry and Donelson which guarded the Tennessee and Cumberland Rivers, respectively.
From April through the end of June, his ship participated in the drawn-out series of operations against Plum Point Bend, Fort Pillow, and Memphis.
On July 15, Commander Walke almost met his match when the Confederate ironclad ram CSS Arkansas made its move down the falling Yazoo River toward Vicksburg.
On September 22, he was transferred to the screw sloop Sacramento, which he commanded through the final two years of the Civil War, cruising the South American coast in search of Confederate commerce raiders.