From 58cef923aaaefc3e28a709b87fb3933ad490e928 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 23 Mar 2026 15:42:06 +0300 Subject: [PATCH] asdasdad --- ospf_brr | 3 ++- ospf_hqr | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ospf_brr b/ospf_brr index 6c399f6..8de012f 100755 --- a/ospf_brr +++ b/ospf_brr @@ -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 ! diff --git a/ospf_hqr b/ospf_hqr index 44fce45..cc97b74 100755 --- a/ospf_hqr +++ b/ospf_hqr @@ -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 !