mirror of
https://github.com/SantaSpeen/kkep-praktic-2022.git
synced 2026-02-16 02:20:50 +00:00
Linux ready; Cisco start!
This commit is contained in:
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Maxim Khomutov
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
6
REAME.md
Normal file
6
REAME.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# Практика 2й курс
|
||||
|
||||
- [x] Linux - 5 :trollface:
|
||||
- [ ] Cisco - ? :shipit:
|
||||
|
||||
#### Licence MIT
|
||||
BIN
cisco/backup/work(Base).pkt
Normal file
BIN
cisco/backup/work(Base).pkt
Normal file
Binary file not shown.
3
cisco/practic.txt
Normal file
3
cisco/practic.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Native VLAN = 22
|
||||
Managment VLAN = 44
|
||||
Derective VLAN = 220 to 229
|
||||
39
cisco/rtr-base.sh
Normal file
39
cisco/rtr-base.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
en
|
||||
conf t
|
||||
hostname <name>
|
||||
en secret cisco
|
||||
ip domain name sex-rtr<№>
|
||||
|
||||
line con 0
|
||||
no sh
|
||||
exec-timeout 0 0
|
||||
password pass
|
||||
login
|
||||
transport input ssh
|
||||
exit
|
||||
|
||||
line vty 0 15
|
||||
no sh
|
||||
exec-timeout 0 0
|
||||
password cisco
|
||||
login local
|
||||
transport input ssh
|
||||
exit
|
||||
int vlan 1
|
||||
|
||||
service password-encryption
|
||||
banner motd "Sexshop <№> router"
|
||||
|
||||
crypto key generate rsa
|
||||
|
||||
<input 1024>
|
||||
|
||||
ip ssh ver 2
|
||||
username admin secret line
|
||||
|
||||
|
||||
exit
|
||||
exit
|
||||
|
||||
write
|
||||
exit
|
||||
37
cisco/sw-base.sh
Normal file
37
cisco/sw-base.sh
Normal file
@@ -0,0 +1,37 @@
|
||||
en
|
||||
conf t
|
||||
hostname <name>
|
||||
en secret cisco
|
||||
ip domain name sex-sw-<№>
|
||||
|
||||
line con 0
|
||||
no sh
|
||||
exec-timeout 0 0
|
||||
password pass
|
||||
login
|
||||
transport input ssh
|
||||
exit
|
||||
|
||||
line vty 0 15
|
||||
no sh
|
||||
exec-timeout 0 0
|
||||
password cisco
|
||||
login
|
||||
transport input ssh
|
||||
exit
|
||||
|
||||
service password-encryption
|
||||
banner motd "Sexshop <№> switch"
|
||||
|
||||
crypto key generate rsa
|
||||
|
||||
<input 1024>
|
||||
|
||||
ip ssh ver 2
|
||||
username admin secret line
|
||||
|
||||
exit
|
||||
exit
|
||||
|
||||
write
|
||||
exit
|
||||
BIN
cisco/topology.png
Normal file
BIN
cisco/topology.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
BIN
cisco/work.pkt
Normal file
BIN
cisco/work.pkt
Normal file
Binary file not shown.
@@ -78,7 +78,7 @@ yum install lynx vim net-tools dhclient bash-completion tcpdump curl nfs-utils c
|
||||
|
||||
# firewall вырубить на всех, кроме R-FW
|
||||
|
||||
systemctl stop firewalld && systemctl disable firewalld
|
||||
systemctl stop firewalld && systemctl disable firewalld
|
||||
# systemctl start firewalld && systemctl enable firewalld
|
||||
|
||||
# R-FW
|
||||
@@ -12,6 +12,9 @@ apt-cdrom add
|
||||
|
||||
apt-get install tcpdump bind9 ssh nfs-common network-manager curl lynx net-tools vim bind9utils cifs-utils dnsutils -y
|
||||
|
||||
apt install git zsh curl -y
|
||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
|
||||
sed -ie "s/^hosts:\t*/hosts:\t\tdns files [NOTFOUND=return] # old:/" /etc/nsswitch.conf
|
||||
SSHC="/etc/ssh/sshd_config"
|
||||
cp $SSHC $SSHC.old
|
||||
|
Before Width: | Height: | Size: 171 KiB After Width: | Height: | Size: 171 KiB |
Reference in New Issue
Block a user