Panorama Template Stacks provide a powerful way to apply layered configurations to groups of firewalls. However, this layering often leads to situations where the same configuration setting (e.g., a specific DNS server, an interface MTU, an NTP server address) is defined in multiple Templates within the same Stack .
PAN-OS uses a clear precedence rule to resolve these conflicts: the value defined in the template placed later (higher up) in the stack order takes precedence and effectively overrides the value(s) defined in template(s) placed earlier (lower down) in the stack.
Understanding and utilizing this override mechanism is key to building modular and maintainable configurations.
Template Variables are powerful placeholders in Panorama templates that allow for device-specific customization while maintaining a common configuration structure. Understanding their format and what they can represent is key to leveraging them effectively.
$
), for example, $management_ip
, $hostname
, or $dns_server_primary
.
10.1.1.1
, 192.168.100.254
)
255.255.255.0
, /24
)
branch-fw-01
, corp.example.com
)
1500
, 65001
, 100
)
$interface_mtu
is used in an MTU field, Panorama expects a numeric value.
Effectively using variables means defining them in your base templates for any parameter that you anticipate will differ across the firewalls assigned to the corresponding Template Stack. This strategy dramatically simplifies the management of diverse firewall deployments.
For the PCNSE exam, regarding template overrides:
1. What is the fundamental rule Panorama uses to resolve conflicting settings defined in multiple templates within the same Template Stack?
2. A Template Stack has three templates: T1 (DNS: 1.1.1.1), T2 (DNS: 2.2.2.2), and T3 (no DNS setting). T1 is at the bottom, T2 is in the middle, and T3 is at the top. What DNS server is pushed?
3. Which of the following is a primary purpose of using template overrides in Panorama?
4. When is it generally more appropriate to use Template Variables instead of creating an overriding template?
5. How does Panorama handle settings that are defined in only one template within a stack (i.e., no conflict)?
6. According to best practices, where should foundational, widely applicable templates be placed in a Template Stack?
7. What is a recommended practice if the same setting is overridden multiple times across many templates in a single stack?
8. Which Panorama feature helps in determining the final effective configuration that will be pushed to a device from a Template Stack?
9. The overall Panorama configuration hierarchy is often described as Shared > DG Pre > Stack > DG Post > Local. Where does template override precedence fit into this?
10. A template defines an interface MTU as 1500. A template higher in the same stack defines the MTU as 1400 for the same interface. What is the effective MTU?
11. What is a key benefit of creating templates with clear, focused purposes (e.g., "Base-NTP-DNS")?
12. If a Template Stack contains "Template_Global_Logging" (sets Log Forwarding Profile A) and "Template_Branch_Overrides" (sets Log Forwarding Profile B), with Branch_Overrides higher in the stack, which profile is used for a branch firewall?
13. "Documenting overrides" using template descriptions is a best practice. Why?
14. What is the primary risk of having too many layers of overrides in a Template Stack?
15. Template A defines an SNMP trap server X. Template B, higher in the stack, defines SNMP trap server Y. Template C, highest in the stack, does NOT define any SNMP trap server. What is the result?
16. For the PCNSE exam, you need to be able to determine the effective value of a setting. This involves understanding:
17. Can a template higher in a stack remove a setting that was defined by a template lower in the stack (e.g., set a list of DNS servers to be empty when a lower template populated it)?
18. One purpose of overrides is to cater for "Hardware Differences." How is this typically achieved?
19. If you want to set a unique description for interface ethernet1/1 on 50 different firewalls, but all other interface settings are common, what is generally the most scalable method?
20. What is a key consideration from the "PCNSE Exam Focus" regarding template overrides and the overall Panorama hierarchy?