How do we set a default gateway?

Showing results for 
Search instead for 
Did you mean: 

How do we set a default gateway?

L0 Member

Simple question "How do we set a default gateway?"


Community Team Member

Hi @ukmercenary ,


Default gateway for what exactly ? (mgmt ? dataplane ?)


For your management interface it's part of the system IP-address configuration command.  Here's an example :

admin@PA-200# set deviceconfig system ip-address netmask default-gateway dns-setting servers primary

It's explained in this article:

Getting Started: Setting Up Your Firewall 


For your dataplane interfaces you can check the following article:

Getting Started: Layer 3, NAT, and DHCP 


Note that if you don't know a specific CLI command you can use the following command to find existing command options :


admin@PA-200# find command keyword default-gateway

This will return all the existing CLI commands containing 'default-gateway'


I hope this helps,



L7 Applicator


From the GUI.

In the virtual router, just add a static route destination   Next hop. (Gateway address)

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!