Вы находитесь на странице: 1из 2

/interface bridge

add name=BR1 protocol-mode=none


/interface ethernet
set [ find default-name=ether1 ] disable-running-check=no
set [ find default-name=ether2 ] disable-running-check=no
set [ find default-name=ether3 ] disable-running-check=no
set [ find default-name=ether4 ] disable-running-check=no
set [ find default-name=ether5 ] disable-running-check=no
set [ find default-name=ether6 ] disable-running-check=no
set [ find default-name=ether7 ] disable-running-check=no
set [ find default-name=ether8 ] disable-running-check=no
set [ find default-name=ether9 ] disable-running-check=no
set [ find default-name=ether10 ] disable-running-check=no
/interface vlan
add interface=BR1 name=ADMIN_VLAN vlan-id=20
add interface=BR1 name=BASE_VLAN vlan-id=99
add interface=BR1 name=GUEST_VLAN vlan-id=100
add interface=BR1 name=PORCICOLA_VLAN vlan-id=50
add interface=BR1 name=PRODUC_VLAN vlan-id=40
add interface=BR1 name=SRV_VLAN vlan-id=10
add interface=BR1 name=VENTAS_VLAN vlan-id=30
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=SRV_POOL ranges=192.168.10.5-192.168.10.254
add name=ADMIN_POOL ranges=192.168.20.5-192.168.20.254
add name=VENTAS_POOL ranges=192.168.30.5-192.168.30.254
add name=PRODUC_POOL ranges=192.168.40.5-192.168.40.254
add name=PORCICOLA_POOL ranges=192.168.50.5-192.168.50.254
add name=GUEST_POOL ranges=10.0.0.5-10.0.0.254
add name=BASE_POOL ranges=192.168.1.10-192.168.1.254
/ip dhcp-server
add address-pool=SRV_POOL disabled=no interface=SRV_VLAN name=SRV_DHCP
add address-pool=ADMIN_POOL disabled=no interface=ADMIN_VLAN name=ADMIN_DHCP
add address-pool=VENTAS_POOL disabled=no interface=VENTAS_VLAN name=VENTAS_DHCP
add address-pool=PRODUC_POOL disabled=no interface=PRODUC_VLAN name=PRODUC_DHCP
add address-pool=PORCICOLA_POOL disabled=no interface=PORCICOLA_VLAN
name=PORCICOLA_DHCP
add address-pool=GUEST_POOL disabled=no interface=GUEST_VLAN name=GUEST_DHCP
add address-pool=BASE_POOL disabled=no interface=BASE_VLAN name=BASE_DHCP
/interface bridge port
add bridge=BR1 interface=ether2
add bridge=BR1 interface=ether3
add bridge=BR1 interface=ether4
add bridge=BR1 interface=ether5
add bridge=BR1 interface=ether6
add bridge=BR1 interface=ether7 pvid=10
add bridge=BR1 interface=ether8 pvid=10
add bridge=BR1 interface=ether9 pvid=10
add bridge=BR1 interface=ether10 pvid=10
/interface bridge vlan
add bridge=BR1 tagged=BR1,ether2,ether3,ether4,ether5,ether6 vlan-ids=10
add bridge=BR1 tagged=BR1,ether2,ether3,ether4,ether5,ether6 vlan-ids=20
add bridge=BR1 tagged=BR1,ether2,ether3,ether4,ether5,ether6 vlan-ids=30
add bridge=BR1 tagged=BR1,ether2,ether3,ether4,ether5,ether6 vlan-ids=40
add bridge=BR1 tagged=BR1,ether2,ether3,ether4,ether5,ether6 vlan-ids=50
add bridge=BR1 tagged=BR1,ether2,ether3,ether4,ether5,ether6 vlan-ids=99
add bridge=BR1 tagged=BR1,ether2,ether3,ether4,ether5,ether6 vlan-ids=100
/ip address
add address=192.168.1.1/24 interface=BASE_VLAN network=192.168.1.0
add address=181.188.154.70/29 interface=ether1 network=181.188.154.64
add address=192.168.10.1/24 interface=SRV_VLAN network=192.168.10.0
add address=192.168.20.1/24 interface=ADMIN_VLAN network=192.168.20.0
add address=192.168.30.1/24 interface=VENTAS_VLAN network=192.168.30.0
add address=192.168.40.1/24 interface=PRODUC_VLAN network=192.168.40.0
add address=192.168.50.1/24 interface=PORCICOLA_VLAN network=192.168.50.0
add address=10.0.0.1/24 interface=GUEST_VLAN network=10.0.0.0
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=10.0.0.0/24 dns-server=192.168.1.1 gateway=10.0.0.1
add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1
add address=192.168.10.0/24 dns-server=192.168.1.1 gateway=192.168.10.1
add address=192.168.20.0/24 dns-server=192.168.1.1 gateway=192.168.20.1
add address=192.168.30.0/24 dns-server=192.168.1.1 gateway=192.168.30.1
add address=192.168.40.0/24 dns-server=192.168.1.1 gateway=192.168.40.1
add address=192.168.50.0/24 dns-server=192.168.1.1 gateway=192.168.50.1
/ip dns
set allow-remote-requests=yes servers=200.73.96.146,8.8.8.8
/ip route
add distance=1 gateway=181.188.154.65
#error exporting /ipv6/route/rule
#error exporting /routing/policy/selection

Вам также может понравиться