Midas/provisioning/templates/cisco_ios.j2

203 lines
3.0 KiB
Django/Jinja

service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
no service password-recovery
!
hostname {{ hostname }}
!
boot-start-marker
boot-end-marker
!
!
!
aaa new-model
!
!
aaa group server radius LAB-RADIUS
server-private 192.168.0.247 auth-port 1812 acct-port 1813 key Juniper1
!
aaa authentication login default group LAB-RADIUS
aaa authorization exec default group LAB-RADIUS
aaa accounting exec default start-stop group LAB-RADIUS
aaa accounting system default start-stop group LAB-RADIUS
!
!
!
!
!
aaa session-id common
!
!
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain lookup
ip domain name yourdomain.com
ip cef
no ipv6 cef
!
!
!
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
cts logging verbose
license udi pid C897VA-K9 sn FCZ202990B6
!
!
username dom privilege 15 secret Juniper1
!
!
!
!
!
controller VDSL 0
shutdown
lldp run
!
ip ssh version 2
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address {{ loopback_ip }} 255.255.255.255
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
isdn termination multidrop
!
interface Ethernet0
no ip address
shutdown
!
interface GigabitEthernet0
description "Management Network"
switchport access vlan 10
no ip address
!
interface GigabitEthernet1
description "{{ hostname }} gigabitEthernet1 <--> ge-0/0/1 LAB-SRX300"
switchport access vlan 20
no ip address
!
interface GigabitEthernet2
description "{{ hostname }} gigabitEthernet2 <--> ge-0/0/2 LAB-SRX300"
switchport access vlan 30
no ip address
!
interface GigabitEthernet3
no ip address
!
interface GigabitEthernet4
no ip address
!
interface GigabitEthernet5
no ip address
!
interface GigabitEthernet6
no ip address
!
interface GigabitEthernet7
no ip address
!
interface GigabitEthernet8
description "{{ hostname }} gigabitEthernet2 <--> gigabitEthernet1 LAB-RELAY"
ip address 10.0.0.3 255.255.255.254
duplex auto
speed auto
no shut
!
interface Vlan1
no ip address
!
interface Vlan20
ip address 10.0.0.5 255.255.255.254
!
interface Vlan30
ip address 10.0.0.7 255.255.255.254
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
snmp-server group neteng-snmp v3 priv read ViewDefault
snmp-server view ViewDefault iso included
!
!
!
control-plane
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
!
!
!
!
!
line con 0
logging synchronous
no modem enable
line aux 0
line vty 0 4
privilege level 15
transport input telnet ssh
line vty 5 15
access-class 23 in
privilege level 15
transport input telnet ssh
!
!
scheduler allocate 20000 1000
!
!
!
event manager applet crypto-key
event timer cron cron-entry "@reboot"
action 1.0 cli command "enable"
action 1.1 cli command "config t"
action 1.2 cli command "file prompt quiet"
action 1.3 cli command "crypto key generate rsa modulus 2048"
action 1.4 cli command "no event manager applet crypto-key"
action 1.5 cli command "do wr mem"
!
end