$ 0 0 172.31.255.255 <- That is a terrible example of a subnet mask. Please change it to something more realistic like 255.225.0.0