Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. # jan/04/2020 02:19:51 by RouterOS 6.46.1
  2. # software id = 864D-2ICG
  3. #
  4. # model = 2011iL
  5. # serial number = 7DCF07520844
  6. /interface ethernet
  7. set [ find default-name=ether1 ] mac-address=E4:8D:8C:89:B9:09 name=\
  8. "ether1 - wan tim" speed=100Mbps
  9. set [ find default-name=ether2 ] mac-address=E4:8D:8C:89:B9:08 name=\
  10. "ether2 - wan 4G"
  11. set [ find default-name=ether3 ] mac-address=E4:8D:8C:89:B9:07 speed=100Mbps
  12. set [ find default-name=ether4 ] mac-address=E4:8D:8C:89:B9:06 speed=100Mbps
  13. set [ find default-name=ether5 ] mac-address=E4:8D:8C:89:B9:05 speed=100Mbps
  14. /interface ethernet switch port
  15. set 0 default-vlan-id=0
  16. set 1 default-vlan-id=0
  17. set 2 default-vlan-id=0
  18. set 3 default-vlan-id=0
  19. set 4 default-vlan-id=0
  20. set 10 default-vlan-id=0
  21. /ip hotspot profile
  22. set [ find default=yes ] html-directory=flash/hotspot
  23. /snmp community
  24. set [ find default=yes ] addresses=0.0.0.0/0
  25. /system logging action
  26. set 1 disk-file-name=flash/log
  27. /ip address
  28. add address=192.168.119.1/24 interface=ether5 network=192.168.119.0
  29. add address=192.168.1.254/24 interface="ether1 - wan tim" network=192.168.1.0
  30. add address=192.168.111.1/24 interface="ether2 - wan 4G" network=192.168.111.0
  31. /ip dhcp-client
  32. add add-default-route=no interface="ether1 - wan tim"
  33. /ip dhcp-relay
  34. add dhcp-server=172.16.255.1 local-address=172.16.4.1 name="relay1 - aruba"
  35. /ip firewall mangle
  36. add action=mark-connection chain=input in-interface="ether1 - wan tim" \
  37. new-connection-mark=wan-tim passthrough=no
  38. add action=mark-connection chain=input in-interface="ether2 - wan 4G" \
  39. new-connection-mark=wan-4g-1 passthrough=no
  40. add action=mark-routing chain=output connection-mark=wan-tim new-routing-mark=\
  41. "to-wan tim" passthrough=no
  42. add action=mark-routing chain=output connection-mark=wan-4g-1 new-routing-mark=\
  43. "to-wan 4g-1" passthrough=no
  44. add action=accept chain=prerouting dst-address=192.168.1.0/24 in-interface=\
  45. ether5
  46. add action=accept chain=prerouting dst-address=192.168.111.0/24 in-interface=\
  47. ether5
  48. add action=mark-connection chain=prerouting dst-address-type=!local \
  49. in-interface=ether5 new-connection-mark=wan-tim passthrough=yes \
  50. per-connection-classifier=both-addresses-and-ports:2/0
  51. add action=mark-connection chain=prerouting dst-address-type=!local \
  52. in-interface=ether5 new-connection-mark=wan-4g-1 passthrough=yes \
  53. per-connection-classifier=both-addresses-and-ports:2/1
  54. add action=mark-routing chain=prerouting connection-mark=wan-tim in-interface=\
  55. ether5 new-routing-mark="to-wan tim" passthrough=no
  56. add action=mark-routing chain=prerouting connection-mark=wan-4g-1 in-interface=\
  57. ether5 new-routing-mark="to-wan 4g-1" passthrough=no
  58. /ip firewall nat
  59. add action=masquerade chain=srcnat out-interface="ether1 - wan tim"
  60. add action=masquerade chain=srcnat out-interface="ether2 - wan 4G"
  61. /ip route
  62. add comment=TIM distance=1 gateway=192.168.1.1 routing-mark="to-wan tim"
  63. add comment=4G distance=1 gateway=192.168.111.3 routing-mark="to-wan 4g-1"
  64. add comment="4G - illiad" distance=2 gateway=192.168.111.2
  65. add comment=TIM disabled=yes distance=1 gateway=192.168.1.1
  66. /snmp
  67. set enabled=yes
  68. /system clock
  69. set time-zone-name=Europe/Rome
  70. /system identity
  71. set name="AGGREGATORE FONTIGNANO"
  72. /system leds
  73. add interface=ether5 leds="" type=interface-activity
  74. add interface=ether4 leds="" type=interface-activity
  75. add interface=ether3 leds="" type=interface-activity
  76. add interface="ether2 - wan 4G" leds="" type=interface-activity
  77. add interface="ether1 - wan tim" leds="" type=interface-activity
  78. /system ntp client
  79. set enabled=yes primary-ntp=172.16.80.250
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement