working base
This commit is contained in:
35
scripts/verify-setup.sh
Executable file
35
scripts/verify-setup.sh
Executable 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."
|
||||
Reference in New Issue
Block a user