Advertisement
xtree1

microtik_vlans_working_no_issues

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