Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's.
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R2
set [ find default-name=ether2 ] name=ether2_R3
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default redistribute-connected=yes redistribute-ospf=yes
/routing ospf instance
set [ find default=yes ] redistribute-bgp=as-type-1 router-id=1.1.1.1
/ip address
add address=192.168.10.1/29 comment="To R2" interface=ether1_R2 network=192.168.10.0
add address=192.168.10.9/29 comment="To R3" interface=ether2_R3 network=192.168.10.8
/ip dhcp-client
add disabled=no interface=ether3
/routing bgp peer
add name="yo rb" remote-address=10.10.10.1 remote-as=65530
/routing ospf interface
add interface=ether1_R2 network-type=point-to-point
add interface=ether2_R3 network-type=point-to-point
/routing ospf network
add area=backbone network=192.168.10.0/29
add area=backbone network=192.168.10.8/29
/system identity
set name=R1
R2:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R1
set [ find default-name=ether2 ] name=ether2_R4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
/routing ospf instance
set [ find default=yes ] router-id=2.2.2.2
/ip address
add address=192.168.10.2/29 comment=R1 interface=ether1_R1 network=192.168.10.0
add address=192.168.10.17/29 comment=R1 interface=ether2_R4 network=192.168.10.16
/ip dhcp-client
add disabled=no interface=ether1_R1
/routing ospf interface
add interface=ether1_R1 network-type=point-to-point
add interface=ether2_R4 network-type=point-to-point
/routing ospf network
add area=backbone network=192.168.10.0/29
add area=area1 network=192.168.10.16/29
/routing ospf virtual-link
add instance-id=1 neighbor-id=6.6.6.6 transit-area=area1
/system identity
set name=R2
R3:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R1
set [ find default-name=ether2 ] name=ether2_R5
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=2.2.2.2 name=area2
/routing ospf instance
set [ find default=yes ] router-id=3.3.3.3
/ip address
add address=192.168.10.10/29 comment=R1 interface=ether1_R1 network=192.168.10.8
add address=192.168.10.25/29 comment=R5 interface=ether2_R5 network=192.168.10.24
/ip dhcp-client
add disabled=no interface=ether1_R1
/routing ospf interface
add interface=ether1_R1 network-type=point-to-point
add interface=ether2_R5 network-type=point-to-point
/routing ospf network
add area=area2 network=192.168.10.24/29
add area=backbone network=192.168.10.8/29
/system identity
set name=R3
R4:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R2
set [ find default-name=ether2 ] name=ether2_R6
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
/routing ospf instance
set [ find default=yes ] router-id=4.4.4.4
/ip address
add address=192.168.10.18/29 comment=R2 interface=ether1_R2 network=192.168.10.16
add address=192.168.10.33/29 comment=R6 interface=ether2_R6 network=192.168.10.32
/ip dhcp-client
add disabled=no interface=ether1_R2
/routing ospf interface
add interface=ether1_R2 network-type=point-to-point
add interface=ether2_R6 network-type=point-to-point
/routing ospf network
add area=area1 network=192.168.10.16/29
add area=area1 network=192.168.10.32/29
/system identity
set name=R4
R5:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R3
set [ find default-name=ether2 ] name=ether2_R7
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default redistribute-ospf=yes
/routing ospf area
add area-id=2.2.2.2 name=area2
/routing ospf instance
set [ find default=yes ] redistribute-bgp=as-type-1 router-id=5.5.5.5
/ip address
add address=192.168.10.26/29 comment=R3 interface=ether1_R3 network=192.168.10.24
add address=192.168.90.1/30 comment=R7 interface=ether2_R7 network=192.168.90.0
/ip dhcp-client
add disabled=no interface=ether1_R3
/routing bgp peer
add name="TO R7" remote-address=192.168.90.2
/routing ospf interface
add interface=ether1_R3 network-type=point-to-point
/routing ospf network
add area=area2 network=192.168.10.24/29
add area=area2 network=192.168.90.0/30
/system identity
set name=R5
R6:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
add area-id=3.3.3.3 name=area3
/routing ospf instance
set [ find default=yes ] router-id=6.6.6.6
/ip address
add address=192.168.10.34/29 comment=R4 interface=ether1_R4 network=192.168.10.32
add address=192.168.100.1/24 interface=L1 network=192.168.100.0
add address=192.168.200.1/24 interface=L2 network=192.168.200.0
add address=192.168.250.1/24 interface=L3 network=192.168.250.0
/ip dhcp-client
add disabled=no interface=ether1_R4
/routing ospf interface
add interface=ether1_R4 network-type=point-to-point
/routing ospf network
add area=area1 network=192.168.10.32/29
add area=area3 network=192.168.100.0/24
add area=area3 network=192.168.200.0/24
add area=area3 network=192.168.250.0/24
/routing ospf virtual-link
add instance-id=1 neighbor-id=2.2.2.2 transit-area=area1
/system identity
set name=R6
R7:
/interface bridge
add name=L1
add name=L2
add name=L3
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R5
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default as=64512
/ip address
add address=192.168.90.2/30 comment=R5 interface=ether1_R5 network=192.168.90.0
add address=192.168.50.1/24 comment=R5 interface=L1 network=192.168.50.0
add address=192.168.60.1/24 comment=R5 interface=L2 network=192.168.60.0
add address=192.168.70.1/24 comment=R5 interface=L3 network=192.168.70.0
/ip dhcp-client
add disabled=no interface=ether1_R5
/routing bgp network
add network=192.168.50.0/24 synchronize=no
add network=192.168.60.0/24 synchronize=no
add network=192.168.70.0/24 synchronize=no
/routing bgp peer
add name="To R5" remote-address=192.168.90.1 remote-as=65530 route-reflect=yes
/system identity
set name=R7
/interface vlan
add interface=ether3 name=MGMT vlan-id=15
add interface=ether3 name=net1 vlan-id=100
add interface=ether3 name=net2 vlan-id=200
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.0.2-192.168.0.254
add name=dhcp_pool1 ranges=192.168.1.2-192.168.1.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=net1 name=dhcp1
add address-pool=dhcp_pool1 disabled=no interface=net2 name=dhcp2
/ip address
add address=2.2.2.2/30 interface=ether1 network=2.2.2.0
add address=1.1.1.2/30 interface=ether2 network=1.1.1.0
add address=192.168.0.1/24 interface=net1 network=192.168.0.0
add address=192.168.1.1/24 interface=net2 network=192.168.1.0
add address=172.16.0.1/29 interface=MGMT network=172.16.0.0
/ip arp
add address=172.16.0.2 interface=MGMT mac-address=AA:BB:CC:80:70:00
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.0.0/24 dns-server=8.8.8.8 gateway=192.168.0.1
add address=192.168.1.0/24 dns-server=8.8.8.8 gateway=192.168.1.1
/ip firewall address-list
add address=192.168.0.0/24 list=NET_1
add address=192.168.1.0/24 list=NET_2
add address=172.16.0.0/24 list=Local
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=!Local \
new-routing-mark=ISP_1 passthrough=yes src-address-list=NET_1
add action=mark-routing chain=prerouting dst-address-list=!Local \
new-routing-mark=ISP_2 passthrough=yes src-address-list=NET_2
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add distance=1 gateway=1.1.1.1 routing-mark=ISP_1
add distance=1 gateway=2.2.2.1 routing-mark=ISP_2
add distance=1 gateway=1.1.1.1
add distance=1 gateway=2.2.2.1
/system identity
set name=Local_Router
Cisco SW Configuration:
!
interface Ethernet0/0
description TO_Router
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
end
!
interface Ethernet0/1
switchport access vlan 100
switchport mode access
duplex auto
end
!
interface Ethernet0/2
switchport access vlan 200
duplex auto
end
!
interface Vlan15
ip address 172.16.0.2 255.255.255.248
end
Step: System->Scheduler->Add->Enter Name,Time,Intervel Time , On Event This Code :
| MikroTik Log |
| Gmail Massage |
/export file=backupfile
;delay 10s;
/tool e-mail send to="YOUR_EMAIL_ADDRESS" subject="$[/system identity get name] export" \
body=" configuration file $[/system clock get date]" file=backupfile.rsc
:log info "Backup Sand Finished."
;delay 10s;
:log info "Deleting Backup File. All Done. Thanks You."
/file remove backupfile.rsc
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R2
set [ find default-name=ether2 ] name=ether2_R3
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default redistribute-connected=yes redistribute-ospf=yes
/routing ospf instance
set [ find default=yes ] redistribute-bgp=as-type-1 router-id=1.1.1.1
/ip address
add address=192.168.10.1/29 comment="To R2" interface=ether1_R2 network=192.168.10.0
add address=192.168.10.9/29 comment="To R3" interface=ether2_R3 network=192.168.10.8
/ip dhcp-client
add disabled=no interface=ether3
/routing bgp peer
add name="yo rb" remote-address=10.10.10.1 remote-as=65530
/routing ospf interface
add interface=ether1_R2 network-type=point-to-point
add interface=ether2_R3 network-type=point-to-point
/routing ospf network
add area=backbone network=192.168.10.0/29
add area=backbone network=192.168.10.8/29
/system identity
set name=R1
R2:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R1
set [ find default-name=ether2 ] name=ether2_R4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
/routing ospf instance
set [ find default=yes ] router-id=2.2.2.2
/ip address
add address=192.168.10.2/29 comment=R1 interface=ether1_R1 network=192.168.10.0
add address=192.168.10.17/29 comment=R1 interface=ether2_R4 network=192.168.10.16
/ip dhcp-client
add disabled=no interface=ether1_R1
/routing ospf interface
add interface=ether1_R1 network-type=point-to-point
add interface=ether2_R4 network-type=point-to-point
/routing ospf network
add area=backbone network=192.168.10.0/29
add area=area1 network=192.168.10.16/29
/routing ospf virtual-link
add instance-id=1 neighbor-id=6.6.6.6 transit-area=area1
/system identity
set name=R2
R3:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R1
set [ find default-name=ether2 ] name=ether2_R5
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=2.2.2.2 name=area2
/routing ospf instance
set [ find default=yes ] router-id=3.3.3.3
/ip address
add address=192.168.10.10/29 comment=R1 interface=ether1_R1 network=192.168.10.8
add address=192.168.10.25/29 comment=R5 interface=ether2_R5 network=192.168.10.24
/ip dhcp-client
add disabled=no interface=ether1_R1
/routing ospf interface
add interface=ether1_R1 network-type=point-to-point
add interface=ether2_R5 network-type=point-to-point
/routing ospf network
add area=area2 network=192.168.10.24/29
add area=backbone network=192.168.10.8/29
/system identity
set name=R3
R4:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R2
set [ find default-name=ether2 ] name=ether2_R6
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
/routing ospf instance
set [ find default=yes ] router-id=4.4.4.4
/ip address
add address=192.168.10.18/29 comment=R2 interface=ether1_R2 network=192.168.10.16
add address=192.168.10.33/29 comment=R6 interface=ether2_R6 network=192.168.10.32
/ip dhcp-client
add disabled=no interface=ether1_R2
/routing ospf interface
add interface=ether1_R2 network-type=point-to-point
add interface=ether2_R6 network-type=point-to-point
/routing ospf network
add area=area1 network=192.168.10.16/29
add area=area1 network=192.168.10.32/29
/system identity
set name=R4
R5:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R3
set [ find default-name=ether2 ] name=ether2_R7
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default redistribute-ospf=yes
/routing ospf area
add area-id=2.2.2.2 name=area2
/routing ospf instance
set [ find default=yes ] redistribute-bgp=as-type-1 router-id=5.5.5.5
/ip address
add address=192.168.10.26/29 comment=R3 interface=ether1_R3 network=192.168.10.24
add address=192.168.90.1/30 comment=R7 interface=ether2_R7 network=192.168.90.0
/ip dhcp-client
add disabled=no interface=ether1_R3
/routing bgp peer
add name="TO R7" remote-address=192.168.90.2
/routing ospf interface
add interface=ether1_R3 network-type=point-to-point
/routing ospf network
add area=area2 network=192.168.10.24/29
add area=area2 network=192.168.90.0/30
/system identity
set name=R5
R6:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
add area-id=3.3.3.3 name=area3
/routing ospf instance
set [ find default=yes ] router-id=6.6.6.6
/ip address
add address=192.168.10.34/29 comment=R4 interface=ether1_R4 network=192.168.10.32
add address=192.168.100.1/24 interface=L1 network=192.168.100.0
add address=192.168.200.1/24 interface=L2 network=192.168.200.0
add address=192.168.250.1/24 interface=L3 network=192.168.250.0
/ip dhcp-client
add disabled=no interface=ether1_R4
/routing ospf interface
add interface=ether1_R4 network-type=point-to-point
/routing ospf network
add area=area1 network=192.168.10.32/29
add area=area3 network=192.168.100.0/24
add area=area3 network=192.168.200.0/24
add area=area3 network=192.168.250.0/24
/routing ospf virtual-link
add instance-id=1 neighbor-id=2.2.2.2 transit-area=area1
/system identity
set name=R6
R7:
/interface bridge
add name=L1
add name=L2
add name=L3
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R5
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default as=64512
/ip address
add address=192.168.90.2/30 comment=R5 interface=ether1_R5 network=192.168.90.0
add address=192.168.50.1/24 comment=R5 interface=L1 network=192.168.50.0
add address=192.168.60.1/24 comment=R5 interface=L2 network=192.168.60.0
add address=192.168.70.1/24 comment=R5 interface=L3 network=192.168.70.0
/ip dhcp-client
add disabled=no interface=ether1_R5
/routing bgp network
add network=192.168.50.0/24 synchronize=no
add network=192.168.60.0/24 synchronize=no
add network=192.168.70.0/24 synchronize=no
/routing bgp peer
add name="To R5" remote-address=192.168.90.1 remote-as=65530 route-reflect=yes
/system identity
set name=R7
/interface vlan
add interface=ether3 name=MGMT vlan-id=15
add interface=ether3 name=net1 vlan-id=100
add interface=ether3 name=net2 vlan-id=200
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.0.2-192.168.0.254
add name=dhcp_pool1 ranges=192.168.1.2-192.168.1.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=net1 name=dhcp1
add address-pool=dhcp_pool1 disabled=no interface=net2 name=dhcp2
/ip address
add address=2.2.2.2/30 interface=ether1 network=2.2.2.0
add address=1.1.1.2/30 interface=ether2 network=1.1.1.0
add address=192.168.0.1/24 interface=net1 network=192.168.0.0
add address=192.168.1.1/24 interface=net2 network=192.168.1.0
add address=172.16.0.1/29 interface=MGMT network=172.16.0.0
/ip arp
add address=172.16.0.2 interface=MGMT mac-address=AA:BB:CC:80:70:00
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.0.0/24 dns-server=8.8.8.8 gateway=192.168.0.1
add address=192.168.1.0/24 dns-server=8.8.8.8 gateway=192.168.1.1
/ip firewall address-list
add address=192.168.0.0/24 list=NET_1
add address=192.168.1.0/24 list=NET_2
add address=172.16.0.0/24 list=Local
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=!Local \
new-routing-mark=ISP_1 passthrough=yes src-address-list=NET_1
add action=mark-routing chain=prerouting dst-address-list=!Local \
new-routing-mark=ISP_2 passthrough=yes src-address-list=NET_2
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add distance=1 gateway=1.1.1.1 routing-mark=ISP_1
add distance=1 gateway=2.2.2.1 routing-mark=ISP_2
add distance=1 gateway=1.1.1.1
add distance=1 gateway=2.2.2.1
/system identity
set name=Local_Router
Cisco SW Configuration:
!
interface Ethernet0/0
description TO_Router
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
end
!
interface Ethernet0/1
switchport access vlan 100
switchport mode access
duplex auto
end
!
interface Ethernet0/2
switchport access vlan 200
duplex auto
end
!
interface Vlan15
ip address 172.16.0.2 255.255.255.248
end
Step: System->Scheduler->Add->Enter Name,Time,Intervel Time , On Event This Code :
| MikroTik Log |
| Gmail Massage |
/export file=backupfile
;delay 10s;
/tool e-mail send to="YOUR_EMAIL_ADDRESS" subject="$[/system identity get name] export" \
body=" configuration file $[/system clock get date]" file=backupfile.rsc
:log info "Backup Sand Finished."
;delay 10s;
:log info "Deleting Backup File. All Done. Thanks You."
/file remove backupfile.rsc
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R2
set [ find default-name=ether2 ] name=ether2_R3
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default redistribute-connected=yes redistribute-ospf=yes
/routing ospf instance
set [ find default=yes ] redistribute-bgp=as-type-1 router-id=1.1.1.1
/ip address
add address=192.168.10.1/29 comment="To R2" interface=ether1_R2 network=192.168.10.0
add address=192.168.10.9/29 comment="To R3" interface=ether2_R3 network=192.168.10.8
/ip dhcp-client
add disabled=no interface=ether3
/routing bgp peer
add name="yo rb" remote-address=10.10.10.1 remote-as=65530
/routing ospf interface
add interface=ether1_R2 network-type=point-to-point
add interface=ether2_R3 network-type=point-to-point
/routing ospf network
add area=backbone network=192.168.10.0/29
add area=backbone network=192.168.10.8/29
/system identity
set name=R1
R2:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R1
set [ find default-name=ether2 ] name=ether2_R4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
/routing ospf instance
set [ find default=yes ] router-id=2.2.2.2
/ip address
add address=192.168.10.2/29 comment=R1 interface=ether1_R1 network=192.168.10.0
add address=192.168.10.17/29 comment=R1 interface=ether2_R4 network=192.168.10.16
/ip dhcp-client
add disabled=no interface=ether1_R1
/routing ospf interface
add interface=ether1_R1 network-type=point-to-point
add interface=ether2_R4 network-type=point-to-point
/routing ospf network
add area=backbone network=192.168.10.0/29
add area=area1 network=192.168.10.16/29
/routing ospf virtual-link
add instance-id=1 neighbor-id=6.6.6.6 transit-area=area1
/system identity
set name=R2
R3:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R1
set [ find default-name=ether2 ] name=ether2_R5
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=2.2.2.2 name=area2
/routing ospf instance
set [ find default=yes ] router-id=3.3.3.3
/ip address
add address=192.168.10.10/29 comment=R1 interface=ether1_R1 network=192.168.10.8
add address=192.168.10.25/29 comment=R5 interface=ether2_R5 network=192.168.10.24
/ip dhcp-client
add disabled=no interface=ether1_R1
/routing ospf interface
add interface=ether1_R1 network-type=point-to-point
add interface=ether2_R5 network-type=point-to-point
/routing ospf network
add area=area2 network=192.168.10.24/29
add area=backbone network=192.168.10.8/29
/system identity
set name=R3
R4:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R2
set [ find default-name=ether2 ] name=ether2_R6
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
/routing ospf instance
set [ find default=yes ] router-id=4.4.4.4
/ip address
add address=192.168.10.18/29 comment=R2 interface=ether1_R2 network=192.168.10.16
add address=192.168.10.33/29 comment=R6 interface=ether2_R6 network=192.168.10.32
/ip dhcp-client
add disabled=no interface=ether1_R2
/routing ospf interface
add interface=ether1_R2 network-type=point-to-point
add interface=ether2_R6 network-type=point-to-point
/routing ospf network
add area=area1 network=192.168.10.16/29
add area=area1 network=192.168.10.32/29
/system identity
set name=R4
R5:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R3
set [ find default-name=ether2 ] name=ether2_R7
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default redistribute-ospf=yes
/routing ospf area
add area-id=2.2.2.2 name=area2
/routing ospf instance
set [ find default=yes ] redistribute-bgp=as-type-1 router-id=5.5.5.5
/ip address
add address=192.168.10.26/29 comment=R3 interface=ether1_R3 network=192.168.10.24
add address=192.168.90.1/30 comment=R7 interface=ether2_R7 network=192.168.90.0
/ip dhcp-client
add disabled=no interface=ether1_R3
/routing bgp peer
add name="TO R7" remote-address=192.168.90.2
/routing ospf interface
add interface=ether1_R3 network-type=point-to-point
/routing ospf network
add area=area2 network=192.168.10.24/29
add area=area2 network=192.168.90.0/30
/system identity
set name=R5
R6:
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=1.1.1.1 name=area1
add area-id=3.3.3.3 name=area3
/routing ospf instance
set [ find default=yes ] router-id=6.6.6.6
/ip address
add address=192.168.10.34/29 comment=R4 interface=ether1_R4 network=192.168.10.32
add address=192.168.100.1/24 interface=L1 network=192.168.100.0
add address=192.168.200.1/24 interface=L2 network=192.168.200.0
add address=192.168.250.1/24 interface=L3 network=192.168.250.0
/ip dhcp-client
add disabled=no interface=ether1_R4
/routing ospf interface
add interface=ether1_R4 network-type=point-to-point
/routing ospf network
add area=area1 network=192.168.10.32/29
add area=area3 network=192.168.100.0/24
add area=area3 network=192.168.200.0/24
add area=area3 network=192.168.250.0/24
/routing ospf virtual-link
add instance-id=1 neighbor-id=2.2.2.2 transit-area=area1
/system identity
set name=R6
R7:
/interface bridge
add name=L1
add name=L2
add name=L3
/interface ethernet
set [ find default-name=ether1 ] name=ether1_R5
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default as=64512
/ip address
add address=192.168.90.2/30 comment=R5 interface=ether1_R5 network=192.168.90.0
add address=192.168.50.1/24 comment=R5 interface=L1 network=192.168.50.0
add address=192.168.60.1/24 comment=R5 interface=L2 network=192.168.60.0
add address=192.168.70.1/24 comment=R5 interface=L3 network=192.168.70.0
/ip dhcp-client
add disabled=no interface=ether1_R5
/routing bgp network
add network=192.168.50.0/24 synchronize=no
add network=192.168.60.0/24 synchronize=no
add network=192.168.70.0/24 synchronize=no
/routing bgp peer
add name="To R5" remote-address=192.168.90.1 remote-as=65530 route-reflect=yes
/system identity
set name=R7
/interface vlan
add interface=ether3 name=MGMT vlan-id=15
add interface=ether3 name=net1 vlan-id=100
add interface=ether3 name=net2 vlan-id=200
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.0.2-192.168.0.254
add name=dhcp_pool1 ranges=192.168.1.2-192.168.1.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=net1 name=dhcp1
add address-pool=dhcp_pool1 disabled=no interface=net2 name=dhcp2
/ip address
add address=2.2.2.2/30 interface=ether1 network=2.2.2.0
add address=1.1.1.2/30 interface=ether2 network=1.1.1.0
add address=192.168.0.1/24 interface=net1 network=192.168.0.0
add address=192.168.1.1/24 interface=net2 network=192.168.1.0
add address=172.16.0.1/29 interface=MGMT network=172.16.0.0
/ip arp
add address=172.16.0.2 interface=MGMT mac-address=AA:BB:CC:80:70:00
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.0.0/24 dns-server=8.8.8.8 gateway=192.168.0.1
add address=192.168.1.0/24 dns-server=8.8.8.8 gateway=192.168.1.1
/ip firewall address-list
add address=192.168.0.0/24 list=NET_1
add address=192.168.1.0/24 list=NET_2
add address=172.16.0.0/24 list=Local
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-list=!Local \
new-routing-mark=ISP_1 passthrough=yes src-address-list=NET_1
add action=mark-routing chain=prerouting dst-address-list=!Local \
new-routing-mark=ISP_2 passthrough=yes src-address-list=NET_2
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add distance=1 gateway=1.1.1.1 routing-mark=ISP_1
add distance=1 gateway=2.2.2.1 routing-mark=ISP_2
add distance=1 gateway=1.1.1.1
add distance=1 gateway=2.2.2.1
/system identity
set name=Local_Router
Cisco SW Configuration:
!
interface Ethernet0/0
description TO_Router
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
end
!
interface Ethernet0/1
switchport access vlan 100
switchport mode access
duplex auto
end
!
interface Ethernet0/2
switchport access vlan 200
duplex auto
end
!
interface Vlan15
ip address 172.16.0.2 255.255.255.248
end
Step: System->Scheduler->Add->Enter Name,Time,Intervel Time , On Event This Code :
| MikroTik Log |
| Gmail Massage |
/export file=backupfile
;delay 10s;
/tool e-mail send to="YOUR_EMAIL_ADDRESS" subject="$[/system identity get name] export" \
body=" configuration file $[/system clock get date]" file=backupfile.rsc
:log info "Backup Sand Finished."
;delay 10s;
:log info "Deleting Backup File. All Done. Thanks You."
/file remove backupfile.rsc
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mauris ex, gravida ut leo eu, rhoncus porta orci. Fusce vitae rutrum nulla."Joe Smith, CEO of Cubix
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mauris ex, gravida ut leo eu, rhoncus porta orci. Fusce vitae rutrum nulla."Lisa Jones, Freelance Web Developer
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis mauris ex, gravida ut leo eu, rhoncus porta orci. Fusce vitae rutrum nulla."Ryan Waltz, Front-End Developer