This commit is contained in:
root 2026-03-23 15:42:06 +03:00
parent 63505ff351
commit 58cef923aa
2 changed files with 4 additions and 2 deletions

View file

@ -5,6 +5,7 @@ read -p "Введите подсеть для enp0s3 (172.16.5.0/28): " ip_s3
read -p "Введите подсеть для enp0s8(192.168.2.0/26): " ip_s8
read -p "Введите подсеть для туннеля(192.168.9.0/30): " ip_tun
read -p "Введите имя(BR-RTR): " name
read -p "Imput name for tunnel(gre1): " tun
cat > /etc/frr/daemons << EOF
bgpd=no
ospfd=yes
@ -31,7 +32,7 @@ frr defaults traditional
hostname $name
no ipv6 forwarding
!
interface gre1
interface $tun
no ip ospf passive
exit
!

View file

@ -1,6 +1,7 @@
#!bin/bash
read -p "Введите имя(HQ-RTR): " name
read -p "Input name for tunnel(gre1): " tun
read -p "Введите id роутера(2.2.2.2): " r_id
read -p "Введите подсеть для enp0s3(172.16.4.0/28): " ip_s3
read -p "Введите подсеть для enp0s8(192.168.3.0/26): " ip_s8
@ -31,7 +32,7 @@ frr defaults traditional
hostname $name
no ipv6 forwarding
!
interface gre1
interface $tun
no ip ospf passive
exit
!