!
! Cisco CSR1000v / C8000v General Base Configuration Template
!
! Enable dna-advantage
license boot level network-advantage addon dna-advantage
!
hostname {{ hostname }}
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
no ip domain-lookup
ip domain name {{ domain_name }}
!
username {{ admin_username }} privilege 15 secret {{ admin_secret }}
enable secret {{ enable_secret }}
!
clock timezone UTC 0 0
!
! DNS / Name Resolution
!
ip name-server {{ dns_server_1 }}
!
! Local Banner
!
banner motd ^
{{ motd_banner }}
^
!
! SSH Configuration
!
crypto key generate rsa modulus {{ rsa_modulus }}
ip ssh version 2
ip ssh time-out {{ ssh_timeout }}
ip ssh authentication-retries {{ ssh_auth_retries }}
!
! AAA
!
aaa new-model
aaa authentication login default local
aaa authorization exec default local
!
! Logging
!
logging buffered 64000
logging console warnings
!
! NTP
!
ntp server {{ ntp_server_1 }}
!
! Loopback Interface
!
interface Loopback0
 description {{ loopback_description }}
 ip address {{ loopback_ip }} {{ loopback_mask }}
 no shutdown
!
! Management Interface
!
interface GigabitEthernet1
 description {{ mgmt_description }}
 ip address {{ mgmt_ip }} {{ mgmt_mask }}
 no shutdown
!
! WAN / Uplink Interface
!
interface GigabitEthernet2
 description {{ wan_description }}
 ip address {{ wan_ip }} {{ wan_mask }}
 no shutdown
!
! LAN Interface
!
interface GigabitEthernet3
 description {{ lan_description }}
 ip address {{ lan_ip }} {{ lan_mask }}
 no shutdown
!
! Default Route
!
ip route 0.0.0.0 0.0.0.0 {{ default_gateway }}
!
! VTY / Console Access
!
line console 0
 logging synchronous
 exec-timeout {{ console_exec_timeout_minutes }} {{ console_exec_timeout_seconds }}
 login local
!
line vty 0 4
 transport input ssh
 exec-timeout {{ vty_exec_timeout_minutes }} {{ vty_exec_timeout_seconds }}
 login local
!
line vty 5 15
 transport input ssh
 exec-timeout {{ vty_exec_timeout_minutes }} {{ vty_exec_timeout_seconds }}
 login local
!
! Save Configuration
!
end
wr mem
