Update BGP configuration across multiple files to reflect new IP addresses. Changed router ID and neighbor IP in docker-compose.yml, Dockerfile, frr.conf, and related documentation. Adjusted subnet in network settings and prefixes in data files for consistency. Enhanced scripts to utilize updated environment variables.
Build and Push Docker Image / build (push) Successful in 8m1s

This commit is contained in:
2025-07-11 18:22:16 +07:00
parent 170553612d
commit 58f1405fef
8 changed files with 38 additions and 43 deletions
+6 -6
View File
@@ -118,15 +118,15 @@ docker exec bgp-server python3 /app/scripts/load_prefixes.py --test
```routeros
# Создание BGP экземпляра
/routing bgp instance
add name=bgp-server as=65001 router-id=192.168.1.1
add name=bgp-server as=65001 router-id=192.168.0.254
# Настройка BGP сети
/routing bgp network
add network=192.168.1.0/24
add network=192.168.0.0/24
# Настройка BGP пира
/routing bgp peer
add name=bgp-server remote-address=192.168.1.100 remote-as=65000 instance=bgp-server
add name=bgp-server remote-address=192.168.100.99 remote-as=65000 instance=bgp-server
# Включение BGP
/routing bgp instance set bgp-server disabled=no
@@ -226,7 +226,7 @@ docker system info
```powershell
# Проверка сетевой связности
docker exec bgp-server ping 192.168.1.1
docker exec bgp-server ping 192.168.0.254
# Проверка конфигурации FRR
docker exec bgp-server vtysh -c "show running-config"
@@ -260,8 +260,8 @@ docker run -d \
-v ${PWD}/data:/app/data:ro \
-v ${PWD}/logs:/app/logs \
-e BGP_LOCAL_AS=65000 \
-e BGP_ROUTER_ID=192.168.1.100 \
-e BGP_NEIGHBOR_IP=192.168.1.1 \
-e BGP_ROUTER_ID=192.168.100.99 \
-e BGP_NEIGHBOR_IP=192.168.0.254 \
-e BGP_NEIGHBOR_AS=65001 \
-e BGP_HOLD_TIME=90 \
-e BGP_KEEPALIVE=30 \