· 6 years ago · Jun 05, 2019, 11:46 AM
1S1:
2en
3conf t
4enable secret cisco
5line vty 0 15
6password cisco
7login
8exit
9line console 0
10password cisco
11exit
12banner motd ^haslo cisco^
13service password-encryption
14hostname S1
15vlan 10
16name Ksiegowosc
17vlan 20
18name Produkcja
19vlan 30
20name Goscie
21exit
22interface Fa0/2
23switchport mode access
24switchport access vlan 10
25switchport port-security
26switchport port-security maximum 1
27interface Fa0/3
28switchport mode access
29switchport access vlan 20
30interface Fa0/4
31switchport mode access
32switchport access vlan 30
33interface Fa0/1
34switchport mode trunk
35switchport trunk allowed vlan 10,20,30
36
37Oddzial1:
38en
39conf t
40enable secret cisco
41line vty 0 15
42password cisco
43login
44exit
45line console 0
46password cisco
47exit
48banner motd ^haslo cisco^
49service password-encryption
50hostname Oddzial1
51interface Gi0/0/1
52no shutdown
53interface Gi0/0/1.10
54encapsulation dot1q 10
55ip address 192.168.0.1 255.255.255.192
56interface Gi0/0/1.20
57encapsulation dot1q 20
58ip address 192.168.0.65 255.255.255.192
59interface Gi0/0/1.30
60encapsulation dot1q 30
61ip address 192.168.0.129 255.255.255.192
62exit
63interface Gi0/0/0
64ip address 192.168.1.14 255.255.255.252
65no shutdown
66end
67conf t
68router ospf 1
69network 192.168.0.0 255.255.255.192 area 0
70network 192.168.0.64 255.255.255.192 area 0
71network 192.168.0.128 255.255.255.192 area 0
72network 192.168.1.12 255.255.255.192 area 0
73ip dhcp pool 10
74network 192.168.0.0 255.255.255.192
75default-router 192.168.0.1
76ip dhcp pool 20
77network 192.168.0.64 255.255.255.192
78default-router 192.168.0.65
79ip dhcp pool 30
80network 192.168.0.128 255.255.255.192
81default-router 192.168.0.129
82exit
83ip dhcp excluded-address 192.168.0.1 192.168.0.3
84ip dhcp excluded-address 192.168.0.65 192.168.0.67
85ip dhcp excluded-address 192.168.0.129 192.168.0.131
86
87
88R1:
89en
90conf t
91enable secret cisco
92line vty 0 15
93password cisco
94login
95exit
96line console 0
97password cisco
98exit
99banner motd ^haslo cisco^
100service password-encryption
101hostname R1
102interface Gi0/0/0
103ip address 192.168.1.13 255.255.255.252
104no shutdown
105interface serial 0/1/0
106ip address 192.168.1.1 255.255.255.252
107no shutdown
108interface serial 0/1/1
109ip address 192.168.1.5 255.255.255.252
110no shutdown
111end
112conf t
113router ospf 1
114network 192.168.1.12 255.255.255.252 area 0
115network 192.168.1.4 255.255.255.252 area 0
116network 192.168.1.0 255.255.255.252 area 0
117
118
119R2:
120en
121conf t
122enable secret cisco
123line vty 0 15
124password cisco
125login
126exit
127line console 0
128password cisco
129exit
130banner motd ^haslo cisco^
131service password-encryption
132hostname R2
133interface serial 0/1/0
134ip address 192.168.1.2 255.255.255.252
135no shutdown
136interface serial 0/1/1
137ip address 192.168.1.9 255.255.255.252
138no shutdown
139interface Gi0/0/0
140ip address 192.168.1.17 255.255.255.252
141no shutdown
142end
143conf t
144router ospf 1
145network 192.168.1.16 255.255.255.252 area 0
146network 192.168.1.8 255.255.255.252 area 0
147network 192.168.1.0 255.255.255.252 area 0
148
149Oddzial2:
150en
151conf t
152enable secret cisco
153line vty 0 15
154password cisco
155login
156exit
157line console 0
158password cisco
159exit
160banner motd ^haslo cisco^
161service password-encryption
162hostname Oddzial2
163interface Gi0/0/0
164ip address 192.168.1.18 255.255.255.252
165no shutdown
166interface Gi0/0/1
167ip address 192.168.1.21 255.255.255.252
168no shutdown
169end
170conf t
171access-list 1 deny host 192.168.0.253
172access-list 1 permit any
173interface GigabitEthernet 0/0/1
174ip access-group 1 out
175exit
176router ospf 1
177network 192.168.1.20 255.255.255.252 area 0
178network 192.168.1.16 255.255.255.252 area 0
179
180Centrala:
181en
182conf t
183enable secret cisco
184line vty 0 15
185password cisco
186login
187exit
188line console 0
189password cisco
190exit
191banner motd ^haslo cisco^
192service password-encryption
193hostname Centrala
194interface serial 0/1/0
195ip address 192.168.1.6 255.255.255.252
196no shutdown
197interface serial 0/1/1
198ip address 192.168.1.10 255.255.255.252
199no shutdown
200interface Gi0/0/0
201no shutdown
202interface Gi0/0/0.99
203encapsulation dot1q 99
204ip address 192.168.0.193 255.255.255.192
205no shutdown
206end
207conf t
208access-list 1 deny host 192.168.1.22
209access-list 1 permit any
210interface GigabitEthernet 0/0/0
211ip access-group 1 out
212exit
213router ospf 1
214network 192.168.1.8 255.255.255.252 area 0
215network 192.168.1.4 255.255.255.252 area 0
216network 192.168.0.192 255.255.255.192 area 0
217
218Switch1:
219en
220conf t
221enable secret cisco
222line vty 0 15
223password cisco
224login
225exit
226line console 0
227password cisco
228exit
229banner motd ^haslo cisco^
230service password-encryption
231hostname Switch1
232interface range Fa0/2 - Fa0/3
233switchport mode access
234switchport access vlan 99
235exit
236interface Fa0/1
237switchport mode trunk
238switchport trunk allowed vlan 99
239
240
241Vlan 10 | 192.168.0.0 | 192.168.0.1 - 192.168.0.62 | 192.168. 0.63 | 255.255.255.192
242Vlan 20 | 192.168.0.64 | 192.168.0.65 - 192.168.0.126 | 192.168.0.127 | 255.255.255.192
243Vlan 30 | 192.168.0.128 | 192.168.0.129 - 192.168.0.190 | 192.168.0.191| 255.255.255.192
244Vlan 99 | 192.168.0.192 | 192.168.0.193 - 192.168.0.253 | 192.168.0.254 | 255.255.255.192
245
246
247R1 - R2 | 192.168.1.0 | 192.168.1.1 - 192.168.1.2 | 192.168.1.3 | 255.255.255.252
248
249R1 - Centrala | 192.168.1.4 | 192.168.1.5 - 192.168.1.6 | 192.168.1.7 | 255.255.255.252
250
251R2 - Centrala | 192.168.1.8 | 192.168.1.9 - 192.168.1.10 | 192.168.1.11 |
252255.255.255.252
253
254R1 - Oddzial1 | 192.168.1.12 | 192.168.1.13 - 192.168.1.14 | 192.168.1.15 | 255.255.255.252
255
256R2 - Oddzial2 | 192.168.1.16 | 192.168.1.17 - 192.168.1.18 | 192.168.1.19 | 255.255.255.252
257
258
259Oddzial2 - FTP | 192.168.1.20 | 192.168.1.21 - 192.168.1.22 | 192.168.1.23 | 255.255.255.252
260
261Vlan40 | 192.168.1.24 | 192.168.1.25 - 192.168.1.26 | 192.168.1.27 | 255.255.255.252