Skip to content

Instantly share code, notes, and snippets.

@t0d0r
Created June 20, 2019 08:11
Show Gist options
  • Save t0d0r/f8dbd6e2342b48570be34fe56937b6da to your computer and use it in GitHub Desktop.
Save t0d0r/f8dbd6e2342b48570be34fe56937b6da to your computer and use it in GitHub Desktop.
debian iface generator
1.upto(24).each { |e|
ip = 190 + e
puts <<__EOF__
auto eth1:#{ip}
iface eth1:#{ip} inet static
address 192.168.1.#{ip}
netmask 255.255.255.0
__EOF__
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment