SAN FRANCISCO — Palo Alto Networks Inc. will pay Juniper Networks Inc. about $175 million to establish a cease-fire in the companies’ bicoastal patent war.

Under the terms of a settlement announced Wednesday, the rival network security companies agreed to exchange licenses to the patents at issue and refrain from suing each other over other patents for eight years.