Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1.  
  2. start=51
  3. stop=97
  4.  
  5. for i in {$start..$stop}
  6. do
  7. config="
  8. set access address-assignment pool Pool$NUMBER family inet network 192.168.$NUMBER.0/24
  9. set access address-assignment pool Pool$NUMBER family inet range TivoRange low 192.168.$NUMBER.2
  10. set access address-assignment pool Pool$NUMBER family inet range TivoRange high 192.168.$NUMBER.254
  11. set access address-assignment pool Pool$NUMBER family inet dhcp-attributes name-server 173.44.120.44
  12. set access address-assignment pool Pool$NUMBER family inet dhcp-attributes name-server 173.44.120.45
  13. set access address-assignment pool Pool$NUMBER family inet dhcp-attributes router 192.168.$NUMBER.1
  14. set access address-assignment pool Pool$NUMBER family inet dhcp-attributes propagate-settings ge-0/0/1.$NUMBER
  15. "
  16. echo $config
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement