Advertisement
_nike

CRS305 Fastweb SFP Router Mode

Oct 9th, 2022
1,857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.66 KB | None | 0 0
  1. [admin@MikroTik] > export
  2. # oct/09/2022 19:03:11 by RouterOS 7.5
  3. # software id = PJPJ-REYZ
  4. #
  5. # model = CRS305-1G-4S+
  6. /interface bridge
  7. add admin-mac=aa:bb:cc:dd:ee:ff auto-mac=no comment=defconf name=bridge
  8. add ingress-filtering=no name=bridge-wan vlan-filtering=yes
  9. /interface ethernet
  10. # Change router MAC address
  11. set [ find default-name=sfp-sfpplus1 ] auto-negotiation=no mac-address=aa:bb:cc:dd:ee:ff speed=2.5Gbps
  12. /interface ethernet switch
  13. set 0 l3-hw-offloading=yes
  14. /interface ethernet switch port
  15. set 0 l3-hw-offloading=no
  16. set 1 l3-hw-offloading=no
  17. set 2 l3-hw-offloading=no
  18. set 3 l3-hw-offloading=no
  19. set 4 l3-hw-offloading=no
  20. /interface list
  21. add name=WAN
  22. add name=LAN
  23. /interface wireless security-profiles
  24. set [ find default=yes ] supplicant-identity=MikroTik
  25. /ip pool
  26. add name=lan ranges=192.168.88.10-192.168.88.100
  27. /ip dhcp-server
  28. add address-pool=lan interface=bridge name=lan
  29. /port
  30. set 0 name=serial0
  31. /interface bridge port
  32. add bridge=bridge comment=defconf interface=ether1
  33. add bridge=bridge comment=defconf interface=sfp-sfpplus2
  34. add bridge=bridge comment=defconf interface=sfp-sfpplus3
  35. add bridge=bridge comment=defconf interface=sfp-sfpplus4
  36. add bridge=bridge-wan interface=sfp-sfpplus1
  37. /ip firewall connection tracking
  38. set icmp-timeout=30s tcp-close-wait-timeout=1m tcp-fin-wait-timeout=2m tcp-last-ack-timeout=30s tcp-syn-received-timeout=2m \
  39.     tcp-syn-sent-timeout=2m tcp-time-wait-timeout=2m udp-timeout=30s
  40. /interface list member
  41. add interface=bridge list=LAN
  42. add interface=sfp-sfpplus1 list=WAN
  43. add interface=bridge-wan list=WAN
  44. /ip address
  45. add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
  46. add address=192.168.1.1/24 interface=bridge-wan network=192.168.1.0
  47. /ip dhcp-client
  48. add !dhcp-options interface=bridge-wan
  49. /ip dhcp-server network
  50. add address=192.168.88.0/24 gateway=192.168.88.1 netmask=24
  51. /ip dns
  52. set allow-remote-requests=yes
  53. /ip firewall filter
  54. add action=fasttrack-connection chain=forward connection-state=established,related disabled=yes hw-offload=yes
  55. add action=accept chain=forward connection-state=established,related disabled=yes
  56. add action=drop chain=input in-interface-list=WAN
  57. /ip firewall nat
  58. add action=masquerade chain=srcnat out-interface-list=WAN
  59. add action=src-nat chain=srcnat dst-address=192.168.1.10 src-address-type=!local to-addresses=192.168.1.1
  60. /system clock
  61. set time-zone-name=Europe/Rome
  62. /system logging
  63. add topics=dhcp,debug
  64. /system routerboard settings
  65. set boot-os=router-os
  66. /system swos
  67. set allow-from-ports=p1,p2,p3,p4,p5 identity=MikroTik
  68. /tool sniffer
  69. set file-name=capture filter-interface=sfp-sfpplus1 filter-stream=yes streaming-server=192.168.88.2
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement