How do we set a default gateway?

Reply
Highlighted
L0 Member

How do we set a default gateway?

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

Highlighted
Community Team Member

Re: How do we set a default gateway?

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 10.0.0.10 netmask 255.255.255.0 default-gateway 10.0.0.1 dns-setting servers primary 4.2.2.2

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,

-Kiwi.

 
Highlighted
L7 Applicator

Re: How do we set a default gateway?

 

From the GUI.

In the virtual router, just add a static route destination 0.0.0.0/0.   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 Live Community as a whole!

The Live Community thanks you for your participation!