Community discussions

MikroTik App
 
tru5kava
just joined
Topic Author
Posts: 2
Joined: Thu Dec 25, 2014 10:53 am

Help in configuration needed

Thu Dec 25, 2014 11:02 am

Hi guys, I'm new here, but my adventure with mikrotik not started from today, I've got a little problem with configuration and I hope, that anyone can help me.

I use Mikrotik RB711 as Internet AP, which is connected to Mikrotik RB951Ui-2HnD and I would like to configure few things in it:

- Two Mikrotik devices should be in the same network (for example RB711 has 192.168.1.1 IP Address, and 951 should have ....1.2)
- I would like to have two DHCP Servers - one for WLAN, one for ETHERNET devices
- I need to have backup connection from USB, but I don't know how to configure it

Now the question is, how to configure it?

My configuration:
# dec/13/2014 20:59:54 by RouterOS 6.23
# software id = BVHK-DCQN
#
/interface bridge
add admin-mac=4C:5E:0C:74:36:4E auto-mac=no mtu=1500 name=bridge-all-ports
/interface ethernet
set [ find default-name=ether1 ] name=ether1-gateway
set [ find default-name=ether2 ] name=ether2-master-local
set [ find default-name=ether3 ] master-port=ether2-master-local name=\
ether3-slave-local
set [ find default-name=ether4 ] master-port=ether2-master-local name=\
ether4-slave-local
set [ find default-name=ether5 ] master-port=ether2-master-local name=\
ether5-slave-local
/ip neighbor discovery
set ether1-gateway discover=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk eap-methods="" management-protection=\
allowed mode=dynamic-keys name=pass1 supplicant-identity="" \
wpa-pre-shared-key=chui809 wpa2-pre-shared-key=chui809
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-ht-below \
country=poland disabled=no distance=indoors frequency=2452 frequency-mode=\
superchannel l2mtu=2290 mode=ap-bridge security-profile=pass1 ssid=Internet
/ip pool
add name=default-dhcp ranges=192.168.1.10-192.168.1.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge-all-ports name=\
default
/port
set 0 name=usb1
/interface ppp-client
add add-default-route=yes allow=pap,chap,mschap1,mschap2 apn=internet \
data-channel=0 default-route-distance=1 dial-command=ATDT dial-on-demand=yes \
disabled=yes info-channel=1 keepalive-timeout=30 max-mru=1500 max-mtu=1500 \
modem-init="" mrru=disabled name=ppp-out1 null-modem=no password="" phone="" \
pin="" port=usb1 profile=default use-peer-dns=yes user=""
/system logging action
set 3 src-address=0.0.0.0
/interface bridge port
add bridge=bridge-all-ports interface=ether2-master-local
add bridge=bridge-all-ports interface=wlan1
add bridge=bridge-all-ports interface=ether1-gateway
/interface wireless access-list
add interface=wlan1 mac-address=2C:8A:72:8D:91:2D
/interface wireless connect-list
add interface=wlan1 mac-address=2C:8A:72:8D:91:2D security-profile=default
/ip address
add address=192.168.1.2/24 comment="default configuration" interface=\
bridge-all-ports network=192.168.1.0
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid disabled=no \
interface=ether1-gateway
/ip dhcp-server network
add address=192.168.1.0/24 comment="default configuration" dns-server=\
192.168.1.1 gateway=192.168.1.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add chain=input comment="access from outside" dst-port=8291 protocol=tcp
/ip firewall nat
# in/out-interface matcher not possible when interface (ether1-gateway) is slave -
se master instead (bridge-all-ports)
add action=masquerade chain=srcnat comment="default configuration" \
out-interface=ether1-gateway to-addresses=0.0.0.0
/ip smb
set domain=Workgroup enabled=yes
/ip smb shares
set [ find default=yes ] directory=/disk1 disabled=yes
add directory=/disk1 name=share1
/ip smb users
add name=root password=root read-only=no
/ip tftp
add ip-addresses=192.168.1.2
/system clock
set time-zone-name=Europe/Warsaw
/system identity
set name=Router
/system leds
set 0 interface=wlan1
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=ether5-slave-local
add interface=wlan1
add interface=bridge-all-ports
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=ether5-slave-local
add interface=wlan1
add interface=bridge-all-ports
 
User avatar
gabak
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Fri Sep 01, 2006 7:10 am

Re: Help in configuration needed

Sat Dec 27, 2014 7:51 pm

here i made a full class about mikrotik, theory + practice i hope you find it useful
you will find how to set it up from scratch and basic concept.
https://www.youtube.com/watch?v=Gmoa2jhNuws
 
tru5kava
just joined
Topic Author
Posts: 2
Joined: Thu Dec 25, 2014 10:53 am

Re: Help in configuration needed

Fri Jan 02, 2015 12:02 pm

Sorry but it doesn't helps me :(

Who is online

Users browsing this forum: East2, fusionstream, oatis and 44 guests