Linux ready; Cisco start!

This commit is contained in:
2022-04-22 18:49:07 +03:00
parent f21d1473b7
commit 3853c79e6f
31 changed files with 110 additions and 1 deletions

21
LICENSE Normal file
View 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
View File

@@ -0,0 +1,6 @@
# Практика 2й курс
- [x] Linux - 5 :trollface:
- [ ] Cisco - ? :shipit:
#### Licence MIT

BIN
cisco/backup/work(Base).pkt Normal file

Binary file not shown.

3
cisco/practic.txt Normal file
View File

@@ -0,0 +1,3 @@
Native VLAN = 22
Managment VLAN = 44
Derective VLAN = 220 to 229

39
cisco/rtr-base.sh Normal file
View 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
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cisco/work.pkt Normal file

Binary file not shown.

View File

@@ -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

View File

@@ -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

View File

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 171 KiB