Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /caps-man channel
- add band=2ghz-b/g/n control-channel-width=20mhz frequency=2412 name=CH1 \
- tx-power=5
- add band=2ghz-b/g/n control-channel-width=20mhz frequency=2472 name=CH2 \
- tx-power=5
- /interface ethernet
- set [ find default-name=ether1 ] disabled=yes
- set [ find default-name=ether2 ] disabled=yes
- set [ find default-name=ether3 ] comment=WAN
- set [ find default-name=ether4 ] comment=LAN
- set [ find default-name=ether5 ] disabled=yes
- /interface bridge
- add name=AP1
- add name=AP2
- /interface vlan
- add interface=ether4 name=vlan10-ether4 vlan-id=10
- add interface=ether4 name=vlan20-ether4 vlan-id=20
- /caps-man configuration
- add channel=CH1 country=poland datapath.bridge=AP1 datapath.vlan-id=10 \
- datapath.vlan-mode=no-tag distance=indoors hw-protection-mode=rts-cts \
- hw-retries=15 installation=indoor max-sta-count=10 mode=ap \
- multicast-helper=disabled name=AP1 rx-chains=0 \
- security.authentication-types=wpa2-psk security.passphrase=zaq12wsx ssid=\
- AP1 tx-chains=0
- add channel=CH2 country=poland datapath.bridge=AP2 datapath.vlan-id=20 \
- datapath.vlan-mode=no-tag distance=indoors hw-protection-mode=rts-cts \
- hw-retries=15 installation=indoor max-sta-count=10 mode=ap \
- multicast-helper=disabled name=AP2 rx-chains=0 \
- security.authentication-types=wpa2-psk security.encryption=aes-ccm \
- security.passphrase=zaq1zaq1 ssid=AP2 tx-chains=0
- /caps-man interface
- add channel=CH1 configuration=AP1 disabled=no l2mtu=1600 mac-address=\
- A8:54:B2:71:D4:82 master-interface=none name=cap3 radio-mac=\
- A8:54:B2:71:D4:82 radio-name=A854B271D482
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- /ip pool
- add name=dhcp_pool0 ranges=10.10.10.2-10.10.10.254
- add name=dhcp_pool1 ranges=10.10.20.2-10.10.20.254
- /ip dhcp-server
- add address-pool=dhcp_pool0 disabled=no interface=AP1 name=dhcp1
- add address-pool=dhcp_pool1 disabled=no interface=AP2 name=dhcp2
- /caps-man manager
- set enabled=yes
- /caps-man manager interface
- add disabled=no forbid=yes interface=ether3
- /caps-man provisioning
- add action=create-enabled master-configuration=AP1 radio-mac=D4:CA:6D:A2:EE:BD
- add action=create-enabled master-configuration=AP2 radio-mac=00:0C:42:06:F2:82
- /interface bridge port
- add bridge=AP1 interface=vlan10-ether4
- add bridge=AP2 interface=vlan20-ether4
- /ip address
- add address=10.10.10.1/24 interface=AP1 network=10.10.10.0
- add address=10.10.20.1/24 interface=AP2 network=10.10.20.0
- /ip dhcp-client
- add dhcp-options=hostname,clientid disabled=no interface=ether3
- /ip dhcp-server network
- add address=10.10.10.0/24 gateway=10.10.10.1
- add address=10.10.20.0/24 gateway=10.10.20.1
- /ip firewall nat
- add action=masquerade chain=srcnat comment=AP1 out-interface=ether3 \
- src-address=10.10.10.0/24
- add action=masquerade chain=srcnat comment=AP2 out-interface=ether3 \
- src-address=10.10.20.0/24
- /ip ssh
- set allow-none-crypto=yes forwarding-enabled=remote
- /system identity
- set name=CAPsMAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement