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.

Revisions

  1. t0d0r created this gist Jun 20, 2019.
    9 changes: 9 additions & 0 deletions gista-file
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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__
    }