Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$ipList = "
$ips = explode("\n", $ipList);
$interfaceAlias = 0;
foreach ($ips as $ip) {
$ip = trim($ip);
if (empty($ip)) continue;
echo "
auto ens3:$interfaceAlias
iface ens3:$interfaceAlias inet static
address $ip
broadcast $ip
$interfaceAlias ++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.