Created
June 20, 2019 08:11
-
-
Save t0d0r/f8dbd6e2342b48570be34fe56937b6da to your computer and use it in GitHub Desktop.
debian iface generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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