This commit is contained in:
parent 0f40ff0d02
commit 3ad3bb4a3d
5 changed files with 12 additions and 5 deletions

4
dc Normal file
View file

@ -0,0 +1,4 @@
[libdefaults]
default_tgs_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 RC4-HMAC DES-CBC-CRC DES3-CBC-SHA1 DES-CBC-MD5
default_tkt_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 RC4-HMAC DES-CBC-CRC DES3-CBC-SHA1 DES-CBC-MD5
preferred_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 RC4-HMAC DES-CBC-CRC DES3-CBC-SHA1 DES-CBC-MD5

3
dhcp
View file

@ -77,6 +77,7 @@ authoritative;
subnet $Q netmask $E { subnet $Q netmask $E {
range $S $K; range $S $K;
option domain-name-servers $R, $B; option domain-name-servers $R, $B;
option domain-name "au-team.irpo";
option subnet-mask $E; option subnet-mask $E;
option routers $T; option routers $T;
} }
@ -97,4 +98,4 @@ EOF
echo "_________________Перезагрузка и старт dncpd________________________" echo "_________________Перезагрузка и старт dncpd________________________"
systemctl restart dhcpd systemctl restart dhcpd
systemctl enable dhcpd -now systemctl enable dhcpd --now

View file

@ -1,6 +1,6 @@
#!bin/bash #!bin/bash
read -p "Введите id роутера(1.1.1.1): " r_id read -p "Введите id роутера(2.2.2.2): " r_id
read -p "Введите подсеть для enp0s3 (172.16.5.0/28): " ip_s3 read -p "Введите подсеть для enp0s3 (172.16.5.0/28): " ip_s3
read -p "Введите подсеть для enp0s8(192.168.2.0/27): " ip_s8 read -p "Введите подсеть для enp0s8(192.168.2.0/27): " ip_s8
read -p "Введите подсеть для туннеля(192.168.9.0/30): " ip_tun read -p "Введите подсеть для туннеля(192.168.9.0/30): " ip_tun
@ -54,7 +54,7 @@ interface enp0s8
ip ospf authentication message-digest ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 1 ip ospf message-digest-key 1 md5 1
! !
line vty line vtysh
! !
EOF EOF

View file

@ -2,9 +2,10 @@
read -p "Введите имя(HQ-RTR): " name read -p "Введите имя(HQ-RTR): " name
read -p "Input name for tunnel(gre1): " tun read -p "Input name for tunnel(gre1): " tun
read -p "Введите id роутера(2.2.2.2): " r_id read -p "Введите id роутера(1.1.1.1): " r_id
read -p "Введите подсеть для enp0s3(172.16.4.0/28): " ip_s3 read -p "Введите подсеть для enp0s3(172.16.4.0/28): " ip_s3
read -p "Введите подсеть для enp0s8(192.168.3.0/26): " ip_s8 read -p "Введите подсеть для HQ-SRV(192.168.3.0/26): " ip_s8
read -p "Введите подсеть для HQ-CLI(192.168.4.0/29): " ip_s9
read -p "Введите подсеть туннеля(192.168.9.0/30): " ip_tun read -p "Введите подсеть туннеля(192.168.9.0/30): " ip_tun
cat > /etc/frr/daemons << EOF cat > /etc/frr/daemons << EOF
bgpd=no bgpd=no
@ -42,6 +43,7 @@ router ospf
passive-interface default passive-interface default
network $ip_s3 area 0 network $ip_s3 area 0
network $ip_s8 area 0 network $ip_s8 area 0
network $ip_s9 area 0
network $ip_tun area 0 network $ip_tun area 0
exit exit
! !

0
qw Normal file
View file