Saturday, May 10, 2025
Alternative Way
  • Home
  • Latest
    • Latest
  • News
  • World Tech
  • World Gaming
  • Minecraft
  • Guides
  • Contact Us
  • About The Team
    • Privacy Policy
    • Terms of Use
No Result
View All Result
  • Home
  • Latest
    • Latest
  • News
  • World Tech
  • World Gaming
  • Minecraft
  • Guides
  • Contact Us
  • About The Team
    • Privacy Policy
    • Terms of Use
No Result
View All Result
Alternative Way
No Result
View All Result

8 Examples to Add Static Routes in PAN-OS PaloAlto from CLI and Console

Gordon James by Gordon James
October 3, 2021
in World Tech Code
0 0
0
Home World Tech Code

Route management is an important configuration task for network administrators who manage firewalls.

If you are using the PaloAlto Firewall, this guide explains how to add static routes from the PAN-OS command line interface and the PaloAlto Firewall console.

Table of Contents

Toggle
  • 1. CLI – show current routes
  • 2. CLI – Add static default route
  • 3. CLI – add additional application-specific static routes
  • 4. CLI – Registering static routes
  • 5. CLI – Display of routes after a transmission
  • 6. Console – view current routes
  • 7. Console – add additional application-specific static routes
  • 8. Console – display and transfer of new routes
  • If you liked this article, you may also like…
  • frequently asked questions
    • How do I add a static route to the Palo Alto CLI?
    • Which command adds a static route?
    • How do I add a static route to the routing table?
    • Related Tags:

1. CLI – show current routes

Before adding a route, display all current routes in the PAN-OS CLI, as shown below, using the show route command.

admin@PA-VM> show route type static

Flags : A:active, ?:loose, C:connect, H:host, S:static, ~:internal, R:rip,
O:ospf, B:bgp, Oi:ospf intra-area, Oo:ospf inter-area, O1:ospf ext-type-1,
O2:ospf ext-type-2, E:ecmp, M:multicast

VIRTUAL ROUTER: default (id 1)
==========
interface age metric destination flags nexthop next-AS
0.0.0.0/0 192.168.0.1 10 A S ethernet1/1
total routes shown : 1

As you can see from the result above, it currently has only one default route that directs all traffic to the next hop 192.168.0.1.

In the following examples, we add another default route and two other application-specific routes.

For a related topic, policy management via the CLI, see : 15 Examples of security policy and NAT management in the Palo Alto CLI

2. CLI – Add static default route

To add a static default route, first enter configuration mode, as shown below.

admin@PA-VM> configuration
enter configuration mode
admin@PA-VM#

In configuration mode, run the set network virtual-router command, as shown below, to add a static default route.

set network virtual router default routing
ip static router default
interface ethernet1/1
destination 0.0.0.0/0
nexthop ip address 192.168.102.1

  • set network virtual router default ip static route – this indicates that you are adding a static route
  • Default – this keyword is important and indicates that you are adding a default route.
  • interface ethernet1/1 – indicates that a static route has been added on interface ethernet1/1.
  • destination 0.0.0.0/0 nexthop ip address 192.168.102.1 – contains the details of the static route added with the destination address and the nexthop ip address.

If you run the show route type in Static command after you run the above command, you still won’t see the newly added route until it is confirmed. However, if you go to the console, you will see a route that is not yet defined.

3. CLI – add additional application-specific static routes

Let’s see how you want to add two different routes, one to the application subnet, called ToAppSubnet, and one to the database subnet, called ToDBSubnet.

The following command adds a static route specific to the ToAppSubnet application.

set network virtual router default routing
ip static router interface ToAppSubnet
ethernet1/2
destination 192.168.0.0/24
nexthop ip address 192.168.101.1

  • set network virtual router default ip static route – this indicates that you are adding a static route
  • ToAppSubnet is the custom name you specify for this particular route.
  • interface ethernet1/2 – this means that you add a static route on interface ethernet1/2.
  • destination 192.168.0.0/24 nexthop ip address 192.168.101.1 – contains the details of the static route that will be added with the destination address and the nexthop ip address.

As with the above command, below is added a static route specific to the ToDBSubnet application.

set network virtual router default routing
ip static router interface ToDBSubnet
ethernet1/2
destination 192.167.0.0/24
nexthop ip address 192.168.101.1

4. CLI – Registering static routes

After adding the static route, remember to run the commit command as shown below to save the changes.

# commit
commit Command 2 is in progress. Use Ctrl+C to return to the
command line …… Implementation for 100% has been successfully completed.

Message: You may receive a warning like the following.

Static route Default next hop IP 192.168.102.1 not in subnet of outgoing interface ethernet1/1
(Module: routed)
Static route ToAppSubnet next hop IP 192.168.101.1 not in subnet of outgoing interface ethernet1/2
(Module: routed)
Static route ToDBSubnet next hop IP 192.168.101.1 not in subnet of outgoing interface ethernet1/2
(Module: routed)
Warning: No valid threat Package Contents
Warning: There is no valid antivirus content package
(module: device).

5. CLI – Display of routes after a transmission

Now if you run the show routing command, you will see the 3 new routes we just added, as shown below.

admin@PA-VM> show route type static

Flags : A:active, ?:loose, C:connect, H:host, S:static, ~:internal,
R:rip, O:ospf, B:bgp, Oi:ospf intra-area, Oo:ospf inter-area,
O1:ospf ext-type-1, O2:ospf ext-type-2, E:ecmp, M:multicast

VIRTUAL ROUTER: default (id 1)
==========
target non-extop metric interface age flags next-AS
0.0.0.0/0 192.168.0.1 10 S Ethernet1/1
0.0.0.0/0 192.168.102.1 10 A S Ethernet1/1
192.167.0.0/24 192.168.101.1 10 A S Ethernet1/2
192.168.0.0/24 192.168.101.1 10 A S Ethernet1/2
show common routes : 4

6. Console – view current routes

To view the current routes from the console, click the Network tab at the top, click Virtual Routes in the sidebar, and click the default value in the Name column, as shown below.

The default router opens a pop-up window. In this window, click on Static Routes in the sidebar, as shown below. It currently has no custom static routes, as shown below.

To update your software, see: 5 steps to update PaloAlto PAN-OS firewall software via CLI or console

7. Console – add additional application-specific static routes

To add application-specific static routes : Network tab – Virtual routes – Default – Static routes – IPv4 tab – Click the Add button at the bottom of the empty table (see the figure in the previous example).

The Static Route pop-up window opens as shown below. Enter the name (ToAppSubnet), destination, interface (Select Ethernet1/2), next step (Select IP address from drop-down list) and IP address as shown below.

Follow the same steps as above, adding a default route and a static ToDBSubnet route.

8. Console – display and transfer of new routes

After adding the new static routes, go to the Network – View Routers tab – you will see Static Route in the Configuration column for the default router: 3

Click the default value under the Name column – Static Routes on the side tab – Click the IPv4 tab. This will show the three new static routes we just added, as shown below. Once you’ve checked the new routes and everything looks good, make sure you’ve confirmed the changes from the console.

If you liked this article, you may also like…

 

 

frequently asked questions

How do I add a static route to the Palo Alto CLI?

2021/03 Paloalto-Panos-Stati…

Which command adds a static route?

10/24/2018 How to add a static course…..

How do I add a static route to the routing table?

heckie

Related Tags:

palo alto configure zone clipalo alto routing between interfacespalo alto show routing route destinationpalo alto command line show ip addresspalo alto set timezone clipalo alto show ospf neighbor cli,People also search for,Feedback,Privacy settings,How Search works,palo alto configure zone cli,palo alto routing between interfaces,palo alto show routing route destination,palo alto command line show ip address,palo alto set timezone cli,palo alto show ospf neighbor cli,palo alto show service route cli,static route command

Total
0
Shares
Share 0
Tweet 0
Pin it 0
Share 0
ShareTweet
Gordon James

Gordon James

Next Post
How to uninstall Acronis with Cleanup Utility. –

How to uninstall Acronis with Cleanup Utility. –

  • Trending
  • Comments
  • Latest
How To Get Free Internet On Android Without Service

How To Get Free Internet On Android Without Service

March 10, 2022
🥇 +4 Neo Geo Emulators for Android  List ▷ 2021

🥇 +4 Neo Geo Emulators for Android  List ▷ 2021

October 3, 2021

Fix: Notifications not working on Nova Launcher

October 3, 2021
How to Fix OpenVPN Connected but Not Changing IP Address

How to Fix OpenVPN Connected but Not Changing IP Address

October 3, 2021

Setting Up Directory Sync Between On-Premises Active Directory with Microsoft 365 Azure AD

0
🥇 DELETE ACCOUNT from PS4  ▷ Step by Step Guide ▷ 2020

🥇 DELETE ACCOUNT from PS4  ▷ Step by Step Guide ▷ 2020

0
🥇 PPTX File Extension  What is .Pptx and how to open them? ▷ 2020

🥇 PPTX File Extension  What is .Pptx and how to open them? ▷ 2020

0
🥇 Make a Crossword in Microsoft Word  Step by Step Guide ▷ 2020

🥇 Make a Crossword in Microsoft Word  Step by Step Guide ▷ 2020

0
What to Know About Car Shipping Services

What to Know About Car Shipping Services

May 7, 2025
CS2 Skins-Why Trade Them?

CS2 Skins-Why Trade Them?

May 7, 2025
Alternative Routes: Successfully Exiting Your Wyndham Timeshare Without The Stress

Alternative Routes: Successfully Exiting Your Wyndham Timeshare Without The Stress

May 6, 2025
The Ultimate Seiko Watch Gift Guide

The Ultimate Seiko Watch Gift Guide

May 1, 2025

There's always an alternative Way!
Find us at 4145 Zolynthian Street, Vylorthos, QP 78425
No Result
View All Result
  • Home
  • Latest
    • Latest
  • News
  • World Tech
  • World Gaming
  • Minecraft
  • Guides
  • Contact Us
  • About The Team
    • Privacy Policy
    • Terms of Use

© 2022 - Alternative Way

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT
No Result
View All Result
  • Home
    • Home – Layout 1
    • Home – Layout 2
    • Home – Layout 3
    • Home – Layout 4
    • Home – Layout 5
  • Travel News

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.