'How can MTR scriptly tracroutes multiple hosts ( one network )?
Solution 1:[1]
Solution 2:[2]
#!/bin/bash
  
touch result
for ip in 172.16.{35..254}.{1..254}
do
        echo "Trying $ip ... "
        hops=$( mtr -c 5 -r -n4 -T $ip | wc -l )
        if [[ "$hops" == 4 ]]; then
                echo "Yes!"
                echo $ip >> result
        fi
done
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|---|
| Solution 1 | user1150125 | 
| Solution 2 | Brandon | 


