/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


No comments:
Post a Comment