mirror of
https://github.com/SantaSpeen/kkep-praktic-2022.git
synced 2026-10-25 13:40:30 +00:00
Linux ready; Cisco start!
This commit is contained in:
1 parent
f21d1473b7
commit
3853c79e6f
31 files changed
+110
-1
No files matched your search
@@ -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.
|
||||
@@ -0,0 +1,6 @@
|
||||
# Практика 2й курс
|
||||
|
||||
- [x] Linux - 5 :trollface:
|
||||
- [ ] Cisco - ? :shipit:
|
||||
|
||||
#### Licence MIT
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
Native VLAN = 22
|
||||
Managment VLAN = 44
|
||||
Derective VLAN = 220 to 229
|
||||
@@ -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
|
||||
@@ -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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user