Midas/provisioning/templates/cisco_ios.j2

231 lines
3.7 KiB
Plaintext
Raw Normal View History

2023-07-01 23:57:08 +01:00
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
deadtime 5
!
aaa authentication login default group LAB-RADIUS local
aaa authorization exec default group LAB-RADIUS local
aaa accounting exec default start-stop group LAB-RADIUS
aaa accounting system default start-stop group LAB-RADIUS
!
!
!
!
!
aaa session-id common
2023-07-01 23:57:08 +01:00
!
!
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain lookup
2023-11-15 00:16:01 +00:00
ip domain name macf.dev
2023-07-01 23:57:08 +01:00
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
2023-07-01 23:57:08 +01:00
!
!
!
!
!
controller VDSL 0
shutdown
lldp run
!
ip ssh version 2
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address {{ loopback_ip }} 255.255.255.255
2023-11-19 23:11:27 +00:00
ip ospf 1 area 0
2023-07-01 23:57:08 +01:00
!
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
no ip address
shutdown
2023-07-01 23:57:08 +01:00
!
interface GigabitEthernet1
description "{{ hostname }} GigabitEthernet1 <--> ge-0/0/1 LAB-SRX300"
switchport access vlan 10
2023-07-01 23:57:08 +01:00
no ip address
!
interface GigabitEthernet2
description "{{ hostname }} GigabitEthernet2 <--> ge-0/0/2 LAB-SRX300"
switchport access vlan 20
2023-07-01 23:57:08 +01:00
no ip address
!
interface GigabitEthernet3
no ip address
shutdown
2023-07-01 23:57:08 +01:00
!
interface GigabitEthernet4
no ip address
shutdown
2023-07-01 23:57:08 +01:00
!
interface GigabitEthernet5
no ip address
shutdown
2023-07-01 23:57:08 +01:00
!
interface GigabitEthernet6
no ip address
shutdown
2023-07-01 23:57:08 +01:00
!
interface GigabitEthernet7
no ip address
shutdown
2023-07-01 23:57:08 +01:00
!
interface GigabitEthernet8
description "{{ hostname }} GigabitEthernet8 <--> gigabitEthernet1 LAB-RELAY"
2023-07-01 23:57:08 +01:00
ip address 10.0.0.3 255.255.255.254
ip ospf network point-to-point
ip ospf 1 area 0
2023-07-01 23:57:08 +01:00
duplex auto
speed auto
no shut
!
interface Vlan1
no ip address
shutdown
2023-07-01 23:57:08 +01:00
!
interface Vlan10
2023-07-01 23:57:08 +01:00
ip address 10.0.0.5 255.255.255.254
ip ospf network point-to-point
ip ospf 1 area 0
2023-07-01 23:57:08 +01:00
!
interface Vlan20
2023-07-01 23:57:08 +01:00
ip address 10.0.0.7 255.255.255.254
ip ospf network point-to-point
ip ospf 1 area 0
!
router ospf 1
router-id {{ loopback_ip }}
2023-11-19 23:11:27 +00:00
!
router bgp 65002
bgp router-id {{ loopback_ip }}
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 65001
neighbor 1.1.1.1 ebgp-multihop 10
neighbor 1.1.1.1 update-source Loopback0
2023-07-01 23:57:08 +01:00
!
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
snmp-server user snmp-user neteng-snmp v3 auth sha Juniper1 priv aes 128 Juniper1
snmp-server ifindex persist
snmp-server trap-source GigabitEthernet8
snmp-server source-interface informs GigabitEthernet8
snmp-server ip precedence 7
2023-07-01 23:57:08 +01:00
!
!
!
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
!
!
!
ip route 192.168.0.0 255.255.255.0 10.0.0.2
2023-07-01 23:57:08 +01:00
!
!
!
line con 0
logging synchronous
2023-07-01 23:57:08 +01:00
no modem enable
line aux 0
line vty 0 4
privilege level 15
transport input telnet ssh
2023-07-01 23:57:08 +01:00
line vty 5 15
access-class 23 in
privilege level 15
transport input telnet ssh
!
2023-07-01 23:57:08 +01:00
!
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