Long stretches of the border are under the supervision of nearby military bases, empowering U.S. troops to detain people entering the country illegally.
Trump's partisan comments received cheers or jeers from the crowd, an expression of political views in uniform that would typically result in a reprimand.
Veterans visited congressional offices this week to deliver messages of concern over recent Pentagon moves targeting the roles of women in the military.