- файл running-config храрнится в опретивной памяти; startup-config хрнаится в nvram. nvram это область во flash памяти. При включении роутер считывает startup config. Но vlan.dat (
show vlan
) сохраняется на flash сразу же. - физические доступ к устройству дает восзможность сбрасывать пароль.
- Чтобы сбросить пароль нужно удерживать кнопку mode на устройсстве. После этого текущий конфиг станет .renamed и мы сможем войти в enable mode. Если до этого был задан
no service password-recovery
то старый кофниг будет просто удален. Переходим в привилигированный режим , копируем переименованный конфиг в стратап конфиг, в текущий кофиг и меняем пароль. - ROMmode (режим "грохнутая операционаая система") это режим сразу после включения и до загрузки iOS. Чтобы войти в этот промежуточный режим - нужно послать сигнал кнопой break.
- hub and bridge are not same . Hub is a dummy repeater. Bridge filters packets of same network segment based on mac-address table. Он дублирует все приходящте паке
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"10.100.176.20" : "org-hostname-1.local", | |
"10.100.176.21" : "org-hostname-2.local", | |
"10.100.176.22" : "org-hostname-3.local", | |
"10.100.176.23" : "org-hostname-4.local", | |
"10.100.176.30" : "org-hostname-5.local" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import crossplane, re, csv | |
# !!! CHANGE include /opt/nginx/conf/conf.d/*.conf; . /conf.d/*.conf; | |
payload = crossplane.parse('nginx.conf') | |
# In order to understand structure go to https://codebeautify.org/python-formatter-beautifier and paste result of print(payload['config']) | |
# print(payload['config']) | |
# print(payload) | |
files = payload['config'] |