Head Office Router:
/interface bridge
add name=Lan
add name=Lo
/interface eoip
add local-address=10.10.20.1 mac-address=02:BC:60:50:E2:B1 \
name=TO_BR_1 remote-address=192.168.50.1 tunnel-id=10
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=10.22.1.2-10.22.1.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=Lan name=\
dhcp1
/routing bgp instance
set default as=65666
/interface bridge port
add bridge=Lan interface=ether2
add bridge=Lan interface=TO_BR_1
/ip address
add address=192.168.0.2/30 interface=ether1 network=\
192.168.0.0
add address=10.10.20.1/24 interface=Lo network=10.10.20.0
add address=10.22.1.1/24 interface=Lan network=10.22.1.0
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=10.22.1.0/24 gateway=10.22.1.1
/ip dns
set servers=8.8.8.8
/ip firewall nat
add action=src-nat chain=srcnat to-addresses=10.10.20.2
/routing bgp network
add network=10.10.20.0/24
/routing bgp peer
add name=peer1 remote-address=192.168.0.1 remote-as=65555
/system identity
set name=Head_office
BR_1:
/interface bridge
add name=Lan
add name=Lo
/interface eoip
add local-address=192.168.50.1 mac-address=02:C2:B3:CD:9E:94 name=Head_office \
remote-address=10.10.20.1 tunnel-id=10
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default as=56666
/interface bridge port
add bridge=Lan interface=ether2
add bridge=Lan interface=Head_office
/ip address
add address=172.16.0.2/30 interface=ether1 network=172.16.0.0
add address=192.168.50.1/24 interface=Lo network=192.168.50.0
/ip dhcp-client
add disabled=no interface=ether1
/routing bgp network
add network=192.168.50.0/24
/routing bgp peer
add name=peer1 remote-address=172.16.0.1 remote-as=15666
/system identity
set name=BR_1

No comments:
Post a Comment