Advertisement
SyP-

calculadoraipbas

May 10th, 2021
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "Calculadora IP"
  4.  
  5. test -f /usr/bin/ipcalc || apt install ipcalc
  6.  
  7.  
  8. read -p "Ingrese IP: " IP
  9.  
  10. echo ""
  11.  
  12. read -p "Ingrese máscara (CIDR): " MASK
  13.  
  14. echo ""
  15.  
  16. echo "Calculando IP..."
  17.  
  18. ipcalc $IP/$MASK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement