I am new to networking and I want to configure my Mikrotik Router OS for sharing internet. Actually, I have a wireless PPPoE internet connection and when I directly plug the antenna cable to my pc I am able to connect to internet by putting the user id and password provided by my ISP.
But when I try to share the internet through D-link (DIR-803) router I was not able to connect to the internet. I have tried all the possible configuration in Mikrotik through Winbox like its router mode and bridge mode but still, I fail to establish a proper connection between Mikrotik and D-link.
Below is the screenshot of default configuration through which I was able to connect to internet directly from my pc but with this default configuration, I was not able to connect D-Link router to the internet. The network status in D-link router is always busy.
This is the screenshot of the status tab in D-link router
not sure why the D-link won’t connect. Not a lot the Mikrotik can do if it’s not getting Internet access through the D-Link
However the Mikrotik SXT Lite5 should be able to configure it as router, set up PPPoE client on it’s ethernet port and then you just use it as an Access Point (so the WLAN will be the LAN side)
I have configured the PPPoE Client on Mikrotik SXT Lite5 and the configuration looks something like this.
Now, what should be the connection type in D-Link. If I am selecting the connection type to be Dynamic IP (DHCP) then what should be the Primary DNS Server and Secondary DNS Server
it’s good that you have the PPPoE connected on the Mikrotik. confirm you have got internet access by opening New Terminal in Winbox, typing in ping 8.8.8.8
you should see the ping go through.
I am not sure how you have configured you LAN side of the Mikroitk and not sure where the D-Link is physically connected to at the moment. I am assuming it’s ISP → Mikrotik SXT → wireless clients.
Please provide more info on how you want to use the D-Link
Actually, the connection is ISP → Mikrotik SXT → D-Link Router → PC (through LAN from D-Link)
I got a wireless internet connection and Mikrotik SXT antenna cable directly plugs into D-link. Although for the configuration I just plug out the cable from D-link and connect it to my pc and from there I just open the Winbox for any changes and configuration.
I just want D-Link to act as a router switch from where I can access the internet on my PC through LAN as it got 4 LAN ports and also I want to access the internet for other devices over WiFi as D-link got two dual antenna for WiFi.
And here’s the output of the command - export hide-sensitive
[admin@MikroTik] > export hide-sensitive
# may/03/2018 19:35:55 by RouterOS 6.42.1
# software id = 1YIV-C63P
#
# model = SXT 5nD r2
# serial number = 5E9A05D08391
/interface bridge
add name=bridge1
/interface wireless
set [ find default-name=wlan1 ] band=5ghz-a/n channel-width=20/40mhz-Ce disabled=no frequency=auto mode=station-bridge ssid="Quick Air Network-M"
/interface pppoe-client
add add-default-route=yes disabled=no interface=wlan1 name=pppoe-out1 user=od.qan.priti
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk group-ciphers=tkip,aes-ccm mode=dynamic-keys supplicant-identity=MikroTik unicast-ciphers=\
tkip,aes-ccm
/ip pool
add name=dhcp ranges=100.74.39.33-100.74.39.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge1 name=defconf
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 disabled=yes interface=wlan1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=ether1 list=LAN
add comment=defconf interface=wlan1 list=WAN
add interface=pppoe-out1 list=WAN
add interface=bridge1 list=LAN
/ip address
add address=100.74.39.32/24 comment=defconf interface=ether1 network=100.74.39.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid interface=wlan1
/ip dhcp-server network
add address=100.74.39.0/24 comment=defconf gateway=100.74.39.32 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=100.74.39.32 name=router.lan
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat out-interface-list=WAN
/system clock
set time-zone-name=Asia/Kolkata
/system routerboard settings
set silent-boot=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
[admin@MikroTik] >
OK now I get you. Your Mikrotik SXT looks fine. it’s got internet access, and your PC, when it connect to the Ethernet port of the SXT, it should have Internet access.
Now the D-Link. you can but you don’t have to use it as a router. set it as a switch then you simply have 4 LAN ports and WiFi. all connected device should have IP address in 100.74.39.1-100.74.39.254 range. If there is no option to configure it as a switch, you can disable the DHCP server on the D-Link, plug the Mikrotik SXT to one of the 4 LAN ports, your PCs connect to another LAN ports, it should have access to the Mikrotik as well as the Internet. Same for the WiFi client. because all LAN ports of D-Link and Wifi Interface should be on the same bridge and have connectivity between them.
you can , however still use D-Link as router. connect the WAN port of D-Link to the SXT, use DHCP option, it should pick up an address from the SXT, again.
then DNS can be 8.8.8.8 only. PC on LAN port would likely to be on 192.168.1.2-192.168.1.254 range.
Edit: what’s your WAN IP when Mikrotik connected via PPPoE? (don’t post it here). it cannot be 100.74.39.xx. which is your LAN IP range. Very strange how you end up with this for LAN
Thank you for your reply @CZFan - I have already tried the configuration but it’s not working.
OK, I have tried all the possible configuration as suggested by @solar77 but still, I fail to establish a connection between Mikrotik and D’Link. As suggested I have first tried the switch configuration and didn’t find any option for turning the D’link (Dir - 803) into switch or access point so I just put the IP in between the range of 100.74.39.1-100.74.39.254 in DHCP mode and primary DNS to be 8.8.8.8 and for the first time everything works fine, I successfully got connected to the internet but after restarting everything the link in D’link (Dir - 803) went off and after that it doesn’t connect to internet but upon checking the connection in Mikrotik (i.e PPPoE configuration), it is connected to internet and from the terminal I can ping to any websites.
Below is the screenshot of configuration when I successfully got connected to the internet.
Even I tried to disable the DHCP but didn’t find any option for disabling it. I tried different trial and hit method but nothing works.
I tried to plug the Mikrotik SXT cable directly to my PC LAN port to check if I am able to connect to the internet or not. I found that the network is connected with internet access on ipv4 but no internet on ipv6, So I just tried to ping some website through cmd but nothing works. Maybe I am doing something wrong hope you can guide me to resolve my issue.
and the WAN IP when Mikrotik is connected via PPPoE is 10.150.X.XXX. I am not sharing the actual IP just the class of the IP.
NOTE - In meanwhile as suggested by @CZFan I am seeking for another router so that I can configure it according to the above instructions.
I already forgot the details (it’s been a while since I was using D-Link routers), but to follow @solar77 advice, you have to disable DHCP server on D-Link. I guess you should be able to find that setting somewhere in Setup->Network Settings.
What is quite obvious from screenshots is that both D-Link and PC were using same IP address (10.74.39.254) at time of taking screenshots … if those screenshots were taken recently close together this could indicate address clash and would explain non-working status of your setup.
If OP received IP address of 100.74.39.254 on PC via DHCP, It might then be that D-Link is possibly in “Bridge” mode and not “Router” mode, then DHCP must be disabled on D-Link and use DHCP from Mikrotik SXT as the D-Link will just be a dumb switch
I tried to plug the Mikrotik SXT cable directly to my PC LAN port to check if I am able to connect to the internet or not. I found that the network is connected with internet access on ipv4 but no internet on ipv6, So I just tried to ping some website through cmd but nothing works.
we already know the Mikrotik has got Internet access, as it can ping 8.8.8.8
your pc, when it connected to the Mikrotik, has got the correct IP address from Mikrotik. Can you PC ping 8.8.8.8 ? it should be able to . before you work on anything beyond this point., make sure the PC / laptop can get internet access when plugged directly into the Mikrotik.
@solar77
Now I can access the internet from PC and I can ping to 8.8.8.8, but still, I am not able to configure the D’link, I tried calling the technical support team of D’link but till now I was not able to connect to them, mostly there line is busy.
@mkx
I am still trying all the configuration suggested by @solar77 but still, I am unable to configure the D’link router in router or switch mode. And about IP conflict I am not sure would you mind explaining in details. Maybe your reason for IP conflict is correct as I am following some random articles on the internet and also following the Mikrotik wiki.
@CZFan
I am not sure about this, as far as I know, I have set the D’link in router mode and till now I am not able to disable the DHCP mode. But I have noticed one peculiar thing in my D’Link router. When I reset the router and try to plug the SXT cable in D’link than it is working as a switch. I am having no problem. But to secure the wifi when I am trying to configure the wifi on D’link with a key than again I am facing the same problem. I am totally confused and don’t know what to do.
factory default the D-Link. it should work as a standard router straight out of box. here is how it should physically connect together:
plug the mikrotik’s to D-Link’s WAN port.
when you pc connect to the LAN port of D-link, you should get an IP of 192.168.1.x or 192.168.0.x,
don’t connect the Mikrotik to the LAN Port of D-Link, because you will then have 2 DHCP servers on the same network which is why it worked for a while (one it’s getting DHCP from the Mikrotik) and stopped working (when it get DHCP from D-Link).
it the D-link’s WAN port is connected to the Mikroitk (known working) when the above screen is shown, then the D-Link is faulty. it’s DHCP client is not picking up address from the Mikrotik when it should be able to.
You are right I think I should change this router after so many attempts its not working anyway thanks a lot @solar77. I have learned a lot of things during this process and that’s because of you. At least now I can troubleshoot some basic problems that arise in my Mikrotik. Once again thanks a lot.