You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
954 B

5 years ago
  1. :delay 15s
  2. /interface bridge
  3. add name=bridge
  4. /interface bridge port
  5. add bridge=bridge interface=ether1
  6. add bridge=bridge interface=ether2
  7. add bridge=bridge interface=ether3
  8. add bridge=bridge interface=ether4
  9. add bridge=bridge interface=ether5
  10. /system identity set name=[/file get flash/name.txt contents]
  11. /ip dhcp-client
  12. add dhcp-options=hostname,clientid disabled=no interface=bridge
  13. /ip service
  14. set telnet disabled=yes
  15. set ftp disabled=yes
  16. set www disabled=yes
  17. set api disabled=yes
  18. /system clock
  19. set time-zone-name=Europe/Paris
  20. /system ntp client
  21. set enabled=yes server-dns-names=fr.pool.ntp.org
  22. /interface list
  23. add name=discover
  24. /interface list member
  25. add interface=bridge list=discover
  26. /ip neighbor discovery-settings
  27. set discover-interface-list=discover
  28. /system package enable ipv6
  29. /system package update
  30. set channel=long-term
  31. /system package update
  32. check-for-updates once
  33. :delay 15s;
  34. :if ( [get status] = "New version is available") do={ install }