Skip to content

Commit 3539a74

Browse files
committed
Class4, video2 collateral
1 parent 7f2445f commit 3539a74

File tree

8 files changed

+328
-0
lines changed

8 files changed

+328
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[all:vars]
2+
ansible_connection=local
3+
ansible_python_interpreter=/home/kbyers/VENV/ansible/bin/python
4+
username=pyclass
5+
password=bogus
6+
7+
[local]
8+
localhost ansible_connection=local
9+
10+
[arista]
11+
pynet-sw5 ansible_host=arista5.twb-tech.com
12+
pynet-sw6 ansible_host=arista6.twb-tech.com
13+
pynet-sw7 ansible_host=arista7.twb-tech.com
14+
pynet-sw8 ansible_host=arista8.twb-tech.com
15+
16+
[arista:vars]
17+
eapi_post=443
18+
19+
[cisco]
20+
pynet-rtr1 ansible_host=cisco1.twb-tech.com
21+
pynet-rtr2 ansible_host=cisco2.twb-tech.com
22+
23+
[juniper]
24+
srx1 ansible_host=srx1.twb-tech.com
25+
26+
[nxos]
27+
nxos1 ansible_host=nxos1.twb-tech.com
28+
nxos2 ansible_host=nxos2.twb-tech.com
29+
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
Building configuration...
2+
3+
Current configuration : 5700 bytes
4+
!
5+
! Last configuration change at 16:49:55 PDT Mon Jul 3 2017 by pyclass
6+
! NVRAM config last updated at 15:16:16 PDT Mon Jul 3 2017 by pyclass
7+
!
8+
version 15.4
9+
no service pad
10+
service timestamps debug datetime msec localtime show-timezone
11+
service timestamps log datetime msec localtime show-timezone
12+
no service password-encryption
13+
!
14+
hostname pynet-rtr1
15+
!
16+
boot-start-marker
17+
boot system flash c880data-universalk9-mz.154-2.T1.bin
18+
boot-end-marker
19+
!
20+
!
21+
logging buffered 10000
22+
no logging console
23+
enable secret 5 $1$39ck$mpfZ3sWVn10YCXhSWI48R/
24+
!
25+
aaa new-model
26+
!
27+
!
28+
aaa authentication login default local
29+
aaa authorization exec default local if-authenticated
30+
!
31+
!
32+
!
33+
!
34+
!
35+
aaa session-id common
36+
memory-size iomem 10
37+
clock timezone PST -8 0
38+
clock summer-time PDT recurring
39+
!
40+
crypto pki trustpoint TP-self-signed-1429897839
41+
enrollment selfsigned
42+
subject-name cn=IOS-Self-Signed-Certificate-1429897839
43+
revocation-check none
44+
rsakeypair TP-self-signed-1429897839
45+
!
46+
!
47+
crypto pki certificate chain TP-self-signed-1429897839
48+
certificate self-signed 01
49+
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
50+
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
51+
69666963 6174652D 31343239 38393738 3339301E 170D3134 30383136 32313234
52+
32325A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
53+
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 34323938
54+
39373833 3930819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
55+
8100AC47 6783F27A B922F989 A6874EA9 ADD9588A 7DD3CA09 F0B7DD17 7F03B601
56+
12581AD7 ABD0A23A 4BAD6B58 B1267A4B 4AE42150 87B015E6 1E7F96FD 7B406487
57+
04869E6C 7E0CE0D2 2220D091 DD74A504 A407736D ED12436C 15AC597E FCCB266D
58+
D15374C5 45C71067 DE056874 CA42B5B0 AFFCDAC0 1D379BFB C9611126 A5B5441A
59+
8D0F0203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
60+
551D2304 18301680 144ECEF2 746C1242 E5735ACE 876732FC 7D1C76A5 0E301D06
61+
03551D0E 04160414 4ECEF274 6C1242E5 735ACE87 6732FC7D 1C76A50E 300D0609
62+
2A864886 F70D0101 05050003 81810029 05BF34D7 8144226E 11BFCA34 F3CCBAF5
63+
0B821135 E15CD2D7 3FEF0292 8498C50D 52B65EAE 1C4695F5 5B6053E0 9CCF8611
64+
03BCEDA5 DF8343C6 F5AE8D47 85103D8D 9F2128CF 2A609491 B8BF0F94 ECF62781
65+
9353BD17 C345E1D7 71AFD125 D23D7940 2DECBE8E 46553314 396ACC63 34839EF7
66+
3C056A00 7E129168 F0CD3692 F53C62
67+
quit
68+
!
69+
!
70+
!
71+
!
72+
!
73+
!
74+
!
75+
!
76+
77+
78+
!
79+
!
80+
!
81+
!
82+
ip domain name bogus.com
83+
ip name-server 8.8.8.8
84+
ip name-server 8.8.4.4
85+
ip name-server 8.8.3.3
86+
ip name-server 8.8.5.5
87+
ip cef
88+
no ipv6 cef
89+
!
90+
!
91+
multilink bundle-name authenticated
92+
license udi pid CISCO881-SEC-K9 sn FTX1512038X
93+
!
94+
!
95+
archive
96+
path flash:pynet-rtr1-cfg
97+
username pyclass privilege 15 secret 5 $1$CQCe$poonB1jFHYQAWt/3eXub41
98+
username testuser privilege 15 secret 5 $1$A5eB$6XIBwB/8iwj4U
99+
username test9 secret 5 $1$CQCe$poonB1jFHYQAWt/3eXub41
100+
!
101+
!
102+
!
103+
!
104+
lldp run
105+
!
106+
ip ssh version 2
107+
ip ssh pubkey-chain
108+
username testuser
109+
key-hash ssh-rsa E5D7E26A603DD18923113E45F29BDF22 [email protected]
110+
ip scp server enable
111+
!
112+
!
113+
crypto isakmp policy 10
114+
encr aes
115+
authentication pre-share
116+
group 5
117+
crypto isakmp key KEY address 1.1.1.1 no-xauth
118+
crypto isakmp key KEY address 2.2.2.1 no-xauth
119+
crypto isakmp key KEY address 3.3.3.1 no-xauth
120+
crypto isakmp key KEY address 4.4.4.1 no-xauth
121+
crypto isakmp key KEY address 5.5.5.1 no-xauth
122+
crypto isakmp keepalive 10 periodic
123+
!
124+
!
125+
crypto ipsec transform-set AES192-SHA esp-aes 192 esp-sha-hmac
126+
mode tunnel
127+
crypto ipsec transform-set AES-SHA esp-aes esp-sha-hmac
128+
mode tunnel
129+
crypto ipsec transform-set 3DES-SHA esp-3des esp-sha-hmac
130+
mode tunnel
131+
!
132+
!
133+
!
134+
crypto map CRYPTO 10 ipsec-isakmp
135+
! Incomplete
136+
set peer 1.1.1.1
137+
set transform-set AES-SHA
138+
set pfs group5
139+
match address VPN-TEST1
140+
crypto map CRYPTO 20 ipsec-isakmp
141+
! Incomplete
142+
set peer 2.2.2.1
143+
set transform-set AES-SHA
144+
set pfs group2
145+
match address VPN-TEST2
146+
crypto map CRYPTO 30 ipsec-isakmp
147+
! Incomplete
148+
set peer 3.3.3.1
149+
set transform-set AES-SHA
150+
set pfs group2
151+
match address VPN-TEST3
152+
crypto map CRYPTO 40 ipsec-isakmp
153+
! Incomplete
154+
set peer 4.4.4.1
155+
set transform-set AES-SHA
156+
set pfs group5
157+
match address VPN-TEST4
158+
crypto map CRYPTO 50 ipsec-isakmp
159+
! Incomplete
160+
set peer 5.5.5.1
161+
set transform-set AES-SHA
162+
set pfs group5
163+
match address VPN-TEST5
164+
!
165+
!
166+
!
167+
!
168+
!
169+
interface FastEthernet0
170+
no ip address
171+
!
172+
interface FastEthernet1
173+
no ip address
174+
!
175+
interface FastEthernet2
176+
no ip address
177+
!
178+
interface FastEthernet3
179+
no ip address
180+
!
181+
interface FastEthernet4
182+
description *** LAN connection (don't change) ***
183+
ip address 10.220.88.20 255.255.255.0
184+
duplex auto
185+
speed auto
186+
!
187+
interface Vlan1
188+
no ip address
189+
!
190+
router bgp 42
191+
bgp router-id 10.220.88.20
192+
bgp log-neighbor-changes
193+
neighbor 10.220.88.38 remote-as 44
194+
!
195+
ip forward-protocol nd
196+
no ip http server
197+
no ip http secure-server
198+
!
199+
!
200+
ip route 0.0.0.0 0.0.0.0 10.220.88.1
201+
ip route 1.1.99.2 255.255.255.255 10.220.88.1
202+
!
203+
ip access-list extended VPN-TEST1
204+
ip access-list extended VPN-TEST2
205+
ip access-list extended VPN-TEST3
206+
ip access-list extended VPN-TEST4
207+
ip access-list extended VPN-TEST5
208+
!
209+
!
210+
snmp-server group READONLY v3 priv read VIEWSTD access 98
211+
snmp-server view VIEWSTD iso included
212+
snmp-server community galileo RO 98
213+
snmp-server ifindex persist
214+
snmp-server location Freemont, CA
215+
snmp-server contact Kirk Byers
216+
access-list 98 remark *** SNMP ***
217+
access-list 98 permit any
218+
!
219+
!
220+
!
221+
control-plane
222+
!
223+
!
224+
!
225+
line con 0
226+
logging synchronous
227+
no modem enable
228+
line aux 0
229+
line vty 0 4
230+
exec-timeout 20 0
231+
transport input telnet ssh
232+
!
233+
scheduler max-task-time 5000
234+
ntp server 130.126.24.24
235+
ntp server 152.2.21.1
236+
onep
237+
transport type tls localcert TP-self-signed-1429897839 disable-remotecert-validation
238+
service set vty
239+
!
240+
end
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name_server1: 8.8.8.8
3+
name_server2: 8.8.5.5
4+
5+
default_domain: bogus.com
6+
7+
ntp1: 130.126.24.24
8+
ntp2: 152.2.21.1
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
- name: IOS Example
3+
hosts: pynet-rtr1
4+
vars:
5+
creds:
6+
host: "{{ ansible_host }}"
7+
username: "{{ username }}"
8+
password: "{{ password }}"
9+
10+
tasks:
11+
- ios_config:
12+
provider: "{{ creds }}"
13+
src: my_config2a.txt
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
- name: IOS Example
3+
hosts: pynet-rtr1
4+
vars:
5+
creds:
6+
host: "{{ ansible_host }}"
7+
username: "{{ username }}"
8+
password: "{{ password }}"
9+
10+
tasks:
11+
- ios_config:
12+
provider: "{{ creds }}"
13+
src: my_config2b.txt
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
- name: IOS Example
3+
hosts: pynet-rtr1
4+
vars:
5+
creds:
6+
host: "{{ ansible_host }}"
7+
username: "{{ username }}"
8+
password: "{{ password }}"
9+
10+
tasks:
11+
- ios_config:
12+
provider: "{{ creds }}"
13+
src: my_config2a.txt
14+
backup: yes
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ip domain name {{ default_domain }}
2+
ip name-server {{ name_server1 }}
3+
ip name-server {{ name_server2 }}
4+
ntp server {{ ntp1 }}
5+
ntp server {{ ntp2 }}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ip domain name {{ default_domain }}
2+
{% for ns in [name_server1, name_server2] %}
3+
ip name-server {{ ns }}
4+
{% endfor %}
5+
ntp server {{ ntp1 }}
6+
ntp server {{ ntp2 }}

0 commit comments

Comments
 (0)