#!/usr/bin/python
import random
nums = range(1,254)
random.shuffle(nums)
for i in range(0,128,2):
print "route %s.%s.%s.0/24 xxx xxx" % (random.randrange(20,220),nums[i],nums[i+1])
生成64条24位掩码的随机路由
最新推荐文章于 2023-02-03 20:07:49 发布
#!/usr/bin/python
import random
nums = range(1,254)
random.shuffle(nums)
for i in range(0,128,2):
print "route %s.%s.%s.0/24 xxx xxx" % (random.randrange(20,220),nums[i],nums[i+1])