I'm facing a setup that is been a headache...
Scenario:
We have a router to connect to the internet and several other uses, it's a IPCOP. At the LAN side of this router we have several computers and so, the LAN is 192.168.x.x and we have complete control over the IPCOP machine
Then we have a second router that connect to a WAN private network, it's a Cisco. At the LAN side of this router we have several computers and so, the LAN is 10.x.x.x and we DO NOT have control over the Cisco router. This private network has it's own internet access.
We were in the need of joining this two LANs to share several services among them and decided to implement a Mikrotik Hex, up to date is working like a champ. Here you have the configuration:
Code: Select all
# mar/01/2018 14:01:16 by RouterOS 6.34.2
# software id = XCFJ-DVCN
#
/interface bridge
add name=Escuela
add name=Xunta
/interface ethernet
set [ find default-name=ether4 ] name=Escuela1
set [ find default-name=ether5 ] name=Escuela2
set [ find default-name=ether2 ] name=Xunta1
set [ find default-name=ether3 ] name=Xunta2
/ip dhcp-server option
add code=249 name=option-249 value=0x10c0a80a3e18e3
/ip firewall layer7-protocol
add name=imaxeson regexp=imaxeson.net
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=pool1 ranges=10.62.24.100-10.62.24.150
/ip dhcp-server
add address-pool=pool1 disabled=no interface=Xunta lease-time=15m name=\
"DHCP Xunta" src-address=10.62.24.227
/interface bridge port
add bridge=Xunta interface=Xunta1
add bridge=Xunta interface=Xunta2
add bridge=Escuela interface=Escuela1
add bridge=Escuela interface=Escuela2
/ip address
add address=10.62.24.227/24 interface=Xunta network=10.62.24.0
add address=192.168.254.246/16 interface=Escuela network=192.168.0.0
/ip dhcp-server lease
add address=10.62.24.50 always-broadcast=yes mac-address=00:1A:A0:BF:8F:77 \
server="DHCP Xunta"
add address=10.62.24.51 mac-address=00:1D:72:EF:2E:52 server="DHCP Xunta"
add address=10.62.24.53 always-broadcast=yes mac-address=00:18:8B:2A:A0:81 \
server="DHCP Xunta"
add address=10.62.24.54 always-broadcast=yes mac-address=00:18:8B:2A:F7:62 \
server="DHCP Xunta"
add address=10.62.24.55 mac-address=00:1D:72:DC:FC:37 server="DHCP Xunta"
add address=10.62.24.56 mac-address=00:A0:D1:A2:E9:B6 server="DHCP Xunta"
add address=10.62.24.57 mac-address=00:1B:FC:DA:8C:42 server="DHCP Xunta"
add address=10.62.24.58 always-broadcast=yes mac-address=00:18:8B:2A:FA:4A \
server="DHCP Xunta"
add address=10.62.24.59 mac-address=00:1D:60:6F:8F:2B server="DHCP Xunta"
add address=10.62.24.69 mac-address=00:10:5C:FE:96:F3 server="DHCP Xunta"
add address=10.62.24.241 mac-address=00:80:77:D0:8B:DD server="DHCP Xunta"
/ip dhcp-server network
add address=10.62.24.0/24 dhcp-option=option-249 dns-server=10.62.24.227 \
domain=imaxeson.net gateway=10.62.24.1 netmask=24 ntp-server=10.62.24.2
wins-server=10.62.24.252
/ip dns
set allow-remote-requests=yes servers=10.180.188.75
/ip firewall mangle
add action=mark-connection chain=prerouting dst-address=10.62.24.227 dst-po
53 layer7-protocol=imaxeson new-connection-mark=imaxeson-fwd protocol=u
/ip firewall nat
add action=dst-nat chain=dstnat comment="Gestion dns imaxeson.net" \
connection-mark=imaxeson-fwd to-addresses=10.62.24.252
add action=masquerade chain=srcnat connection-mark=imaxeson-fwd
/ip route
add distance=1 gateway=10.62.24.1
add distance=1 dst-address=10.62.24.0/24 gateway=Xunta
add distance=1 dst-address=192.168.0.0/16 gateway=Escuela
/system clock
set time-zone-name=Europe/Madrid
/system routerboard settings
set cpu-frequency=720MHz protected-routerboot=disabled
And, up to date, nothing.
Any light?
Thank you in advance!