Andr2210

Untitled

Dec 2nd, 2020
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # jan/02/1970 06:05:59 by RouterOS 6.47.8
  2. # model = RB750Gr3
  3.  
  4. /interface ethernet
  5. set [ find default-name=ether1 ] comment="TO PROVIDER"
  6. set [ find default-name=ether2 ] comment="TO HOM-SERVER"
  7. set [ find default-name=ether3 ] comment="TO WORK"
  8. set [ find default-name=ether4 ] comment="TO DGS1100-8 SPALNA"
  9. set [ find default-name=ether5 ] comment="TO DGS1100-8 ZAL"
  10.  
  11. /interface bridge
  12. add name=bridge1
  13.  
  14. /interface bridge port
  15. add bridge=bridge1 interface=ether4
  16. add bridge=bridge1 interface=ether5
  17.  
  18. /interface ethernet switch vlan
  19. add ports=ether4,ether5 switch=switch1 vlan-id=5
  20. add ports=ether4,ether5 switch=switch1 vlan-id=6
  21.  
  22. /interface ethernet switch port
  23. set 3 default-vlan-id=5 vlan-mode=secure
  24. set 4 default-vlan-id=6 vlan-mode=secure
  25.  
  26. /ip pool
  27. add name=LAN-WORK-POOL ranges=10.255.255.5-10.255.255.20
  28. add name=LAN-HOME-POOL ranges=192.168.200.10-192.168.200.254
  29.  
  30. /interface vlan
  31. add interface=bridge1 name=vlan5 vlan-id=5
  32. add interface=bridge1 name=vlan6 vlan-id=6
  33.  
  34. /ip address
  35. add address=10.255.255.1/25 interface=vlan6 network=10.255.255.0
  36. add address=192.168.200.1/24 interface=vlan5 network=192.168.200.0
  37.  
  38. /ip dhcp-server
  39. add address-pool=LAN-WORK-POOL disabled=no interface=vlan5 lease-time=8h
  40. add address-pool=LAN-HOME-POOL disabled=no interface=vlan6 lease-time=8h
  41.  
Add Comment
Please, Sign In to add comment