A configuration template is a standardized definition of a device’s desired configuration. A central configuration-management server combines the template with device-specific variables to generate and apply configurations. section 25.2
Configuration templates support centralized management by:
- Reusing one structure for devices with similar configurations while substituting values such as hostnames and interface addresses. section 25.2
- Applying template or variable changes to the appropriate managed devices. section 25.2
- Comparing active configurations with the expected template-defined state to detect deviations and enforce standards. section 25.2
hostname {{hostname}} #1
ntp server 172.16.1.1
ip name-server 192.168.23.8
logging host 172.25.25.12
router ospf 1
auto-cost reference-bandwidth 10000
interface GigabitEthernet 0/0
ip address {{g0/0addr}} {{g0/0mask}} #2
ip ospf 1 area 0
interface GigabitEthernet 0/1
ip address {{g0/1addr}} {{g0/1mask}} #3
ip ospf 1 area 0
ip helper-address 10.0.0.63
This template uses variables for hostname and interface addressing while retaining shared routing, NTP, DNS, logging, and OSPF configuration. section 25.2
