Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

How do we set a default gateway?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Palo Alto Networks Approved
Palo Alto Networks Approved
Community Expert Verified
Community Expert Verified

How do we set a default gateway?

L0 Member

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

3 REPLIES 3

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 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.

 
LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

L7 Applicator

 

From the GUI.

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

L0 Member

I utilized the full command "

 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"

on the command line with a console cable and it cut if off after the netmask 4 digits then placed the rest of the statement "default-gateway...... & dns ontop of that line.  So I could only set the ip nothing else.  Has any one experienced this?  It is a PA 220.  Is there a way around it so I can add the default gateway and dns by themselves?

 

  • 13320 Views
  • 3 replies
  • 0 Likes
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!