Advertisement
xtree1

Microtik_vlan10_mostly_working

Mar 20th, 2021
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. # mar/20/2021 20:18:24 by RouterOS 6.48.1
  2. # software id = X5L2-J78L
  3. #
  4. # model = 750GL
  5. # serial number = 467B04284134
  6. /interface bridge
  7. add name=BR1
  8. /interface vlan
  9. add interface=ether2 name=OpnsenseLan vlan-id=100
  10. add interface=ether2 name=OpnsenseWan vlan-id=10
  11. /interface ethernet switch port
  12. set 1 default-vlan-id=0 vlan-mode=secure
  13. set 2 default-vlan-id=100 vlan-mode=secure
  14. set 3 default-vlan-id=200 vlan-mode=secure
  15. /interface wireless security-profiles
  16. set [ find default=yes ] supplicant-identity=MikroTik
  17. /ip pool
  18. add name=dhcp_pool0 ranges=108.20.117.100-108.20.117.110
  19. /ip dhcp-server
  20. add address-pool=dhcp_pool0 disabled=no interface=OpnsenseWan name=dhcp1
  21. /interface bridge port
  22. add bridge=BR1 interface=ether2
  23. add bridge=BR1 interface=ether3
  24. add bridge=BR1 interface=ether4
  25. add bridge=BR1 interface=ether5
  26. /ip neighbor discovery-settings
  27. set discover-interface-list=!dynamic
  28. /interface ethernet switch vlan
  29. add independent-learning=yes ports=ether2,switch1-cpu switch=switch1 vlan-id=\
  30. 10
  31. add independent-learning=yes ports=ether2,ether3,switch1-cpu switch=switch1 \
  32. vlan-id=100
  33. add independent-learning=yes ports=ether2,ether4,switch1-cpu switch=switch1 \
  34. vlan-id=200
  35. /ip address
  36. add address=108.20.117.1/24 interface=OpnsenseWan network=108.20.117.0
  37. add address=192.168.1.205/24 interface=OpnsenseLan network=192.168.1.0
  38. /ip dhcp-client
  39. add disabled=no interface=ether1
  40. /ip dhcp-server network
  41. add address=108.20.117.0/24 gateway=108.20.117.1
  42. /ip firewall nat
  43. add action=masquerade chain=srcnat
  44. /system clock
  45. set time-zone-name=America/New_York
  46. /system ntp client
  47. set enabled=yes primary-ntp=192.168.200.30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement