mirror of
https://github.com/knorrie/network-examples
synced 2025-09-01 23:15:56 +00:00
bgp-contd: script check-connectivity
Add a script for testing connectivity. Basically ping every router from every router. Edit by Knorrie: * Ignore all the crap that ping outputs * Test all links, don't stop when one fails. * Insert commented out extra [OK] output that can be enabled quickly to also see all connections that succeed
This commit is contained in:
committed by
Hans van Kranenburg
parent
d41fdd708d
commit
101b25edd0
@@ -201,7 +201,7 @@ Now, do the following things:
|
|||||||
2001:db8:20::/48 via 2001:db8:0:5::20 on ebgp_r20 [ebgp_r20 2015-11-28] * (100) [AS65020i]
|
2001:db8:20::/48 via 2001:db8:0:5::20 on ebgp_r20 [ebgp_r20 2015-11-28] * (100) [AS65020i]
|
||||||
2001:db8:10::/48 via 2001:db8:10:4::10 on ebgp_r10 [ebgp_r10 2015-11-28] * (100) [AS65010i]
|
2001:db8:10::/48 via 2001:db8:10:4::10 on ebgp_r10 [ebgp_r10 2015-11-28] * (100) [AS65010i]
|
||||||
|
|
||||||
* Check that you can reach every external network from every router in all of the three networks.
|
* Check that you can reach every external network from every router in all of the three networks. You can use the script `bgp-contd/lxc/check_connectivity.sh` to check that every router can ping any other router.
|
||||||
* Try disabling some of the links between routers by using the `disable`/`enable` commands on the bird command line, and check if you still can reach all parts of the network.
|
* Try disabling some of the links between routers by using the `disable`/`enable` commands on the bird command line, and check if you still can reach all parts of the network.
|
||||||
* Change `import` and `export` filters in the `protocol bgp ebgp_r*` sections in `bird6.conf` so that you end up with a situation where all traffic is forced into an asymmetric traffic pattern in which traffic from `AS65000` to `AS65010` has to leave via `R1` to `R10`, and traffic back flows over `R11` to `R0`. Verify the changes seen in bird `show route all` output when you change filters.
|
* Change `import` and `export` filters in the `protocol bgp ebgp_r*` sections in `bird6.conf` so that you end up with a situation where all traffic is forced into an asymmetric traffic pattern in which traffic from `AS65000` to `AS65010` has to leave via `R1` to `R10`, and traffic back flows over `R11` to `R0`. Verify the changes seen in bird `show route all` output when you change filters.
|
||||||
|
|
||||||
|
16
bgp-contd/lxc/check_connectivity.sh
Executable file
16
bgp-contd/lxc/check_connectivity.sh
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
routers='0 1 2 10 11 12 20'
|
||||||
|
for src in $routers
|
||||||
|
do
|
||||||
|
for dst in $routers
|
||||||
|
do
|
||||||
|
lxc-attach -n R$src -- ping6 -c 1 r$dst >/dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "[FAIL] R$src -> R$dst"
|
||||||
|
#else
|
||||||
|
# echo "[OK] R$src -> R$dst"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
Reference in New Issue
Block a user