Professional Documents
Culture Documents
nz
http://blog.gowifi.co.nz/2012/08/configuring-mikrotik-router-for-home-or.html
Scenario:
Configure a MikroTik RouterBoard as a basic Router. The following guide is based on using a MikroTik RB/751U2HnD. This guide however can be used for any MikroTik Router with minor adjustments (i.e. You may have more
or less ethernet and or wireless interfaces on other Routers and therefore your configuration will be slightly
different when adding interfaces to the bridge).
Ensure you are connected to an ethernet port other than ether1 as this is in most cases configured as a WAN port
with the default RouterOS configuration and prevents Winbox access until the configuration is removed.
Login to the Router via Winbox and remove the RouterOS Default Configuration.
[admin@MikroTik] > /ip dhcp-client add interface=ether1 add-default-route=yes use-peer-dns=yes use-peerntp=yes comment=wan-ip-address disabled=no
Option 2:
Configure a WAN port with a PPPoE client (great for connecting to an uplink Draytek ADSL modem that is in
bridge mode).
Note: You will need your ISP Username and Password to continue.
Create a PPP Profile for the PPPoE Client Interface:
[admin@MikroTik] > /ppp profile add name=ppp-wan change-tcp-mss=yes
Create the PPPoE Client Interface:
Setup DNS:
[admin@MikroTik] > /ip dns set allow-remote-requests=yes
Create a bridge and add all the remaining ports / interfaces into it:
[admin@MikroTik] > /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade comment=natinternet-access disabled=no
Option 2:
NAT rule for masquerading traffic out the ppp-wan Interface (Use this rule if you have configured your WAN port
as a PPPoE Client interface Option 2).
[admin@MikroTik] > /interface wireless set wlan1 mode=ap-bridge band=2ghz-b/g/n channel-width=20/40mhz-htabove frequency=2412 ssid="My MikroTik" wireless-protocol=802.11 security-profile=wifi_security defaultauthentication=yes ht-txchains=0,1 ht-rxchains=0,1 disabled=no