# Start IP address
start_ip="188.213.216.5"

# Loop to generate configurations from IP 5 to 100
for i in {5..255}; do
    interface_name="eno1:$i"
#    ip_address="$start_ip/$i"
    ip_address="188.213.216.$i"
    
    echo "auto $interface_name"
    echo "iface $interface_name inet static"
    echo "        address $ip_address"
    
    # Add a blank line for separation
    echo
    
    # Optionally, you can save these configurations to a file
     echo "auto $interface_name" >> /etc/network/interfaces.d/custom-interfaces
     echo "iface $interface_name inet static" >> /etc/network/interfaces.d/custom-interfaces
     echo "        address $ip_address" >> /etc/network/interfaces.d/custom-interfaces
     echo >> /etc/network/interfaces.d/custom-interfaces
done
