working base

This commit is contained in:
Michal Humpula
2025-03-16 10:20:48 +01:00
parent 0ddf5f1c36
commit 5fbd72b370
19 changed files with 3261 additions and 0 deletions

35
scripts/verify-setup.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
set -e
echo "=== Quick Setup Verification ==="
# Start containers
echo "Starting containers..."
podman-compose up -d
# Wait for initialization
echo "Waiting for containers..."
sleep 10
# Check status
echo "Container status:"
podman-compose ps
# Set up initial route
echo "Setting up initial default route..."
podman-compose exec route-switcher ip route add default via 192.168.200.11 dev eth0
# Show routing table
echo "Route-switcher routing table:"
podman-compose exec route-switcher ip route show
# Test basic connectivity
echo "Testing connectivity to target..."
if podman-compose exec route-switcher ping -c 2 192.168.202.100; then
echo "✓ Connectivity test passed"
else
echo "✗ Connectivity test failed"
fi
echo "Setup complete. Use './scripts/test-failover.sh' for full failover testing."