Files
route-switcher/scripts/verify-setup.sh
Michal Humpula 5fbd72b370 working base
2026-02-15 17:36:08 +01:00

36 lines
829 B
Bash
Executable File

#!/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."