Skip to content

Instantly share code, notes, and snippets.

@cblecker
Created December 12, 2017 20:59
Show Gist options
  • Save cblecker/f9844d52d7d4f37e918b300b83aa5766 to your computer and use it in GitHub Desktop.
Save cblecker/f9844d52d7d4f37e918b300b83aa5766 to your computer and use it in GitHub Desktop.
s#/0[[:>:]]# 0.0.0.0#
s#/1[[:>:]]# 128.0.0.0#
s#/2[[:>:]]# 192.0.0.0#
s#/3[[:>:]]# 224.0.0.0#
s#/4[[:>:]]# 240.0.0.0#
s#/5[[:>:]]# 248.0.0.0#
s#/6[[:>:]]# 252.0.0.0#
s#/7[[:>:]]# 254.0.0.0#
s#/8[[:>:]]# 255.0.0.0#
s#/9[[:>:]]# 255.128.0.0#
s#/10[[:>:]]# 255.192.0.0#
s#/11[[:>:]]# 255.224.0.0#
s#/12[[:>:]]# 255.240.0.0#
s#/13[[:>:]]# 255.248.0.0#
s#/14[[:>:]]# 255.252.0.0#
s#/15[[:>:]]# 255.254.0.0#
s#/16[[:>:]]# 255.255.0.0#
s#/17[[:>:]]# 255.255.128.0#
s#/18[[:>:]]# 255.255.192.0#
s#/19[[:>:]]# 255.255.224.0#
s#/20[[:>:]]# 255.255.240.0#
s#/21[[:>:]]# 255.255.248.0#
s#/22[[:>:]]# 255.255.252.0#
s#/23[[:>:]]# 255.255.254.0#
s#/24[[:>:]]# 255.255.255.0#
s#/25[[:>:]]# 255.255.255.128#
s#/26[[:>:]]# 255.255.255.192#
s#/27[[:>:]]# 255.255.255.224#
s#/28[[:>:]]# 255.255.255.240#
s#/29[[:>:]]# 255.255.255.248#
s#/30[[:>:]]# 255.255.255.252#
s#/31[[:>:]]# 255.255.255.254#
s#/32[[:>:]]# 255.255.255.255#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment