OpenWrt Forum Archive

Topic: [SOLVED] TL-MR3020 Lan/Wan IP address after basic configuration

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello

This is a total NOOB question. I managed to flash OpenWRT on my TP-Link TL-MR3020. It works fine.

Router Model    TP-Link TL-MR3020 v1
Firmware Version     OpenWrt Attitude Adjustment 12.09 / LuCI 0.11.1 Release (0.11.1)
Kernel Version    3.3.8

I followed all the steps, telnet, passwd, ssh, enable wifi, enable WPA2, etc.

Currently it is operating in Bridged AP mode. When I connect the WAN/LAN port to our local LAN, I am able to connect to the internet over Wi-Fi.

My problem is that now I am not able to find the IP address of the router to use SSH access to the router. Or the Luci interface for that matter.

I tried using arping on the MAC address, but there is no response. Of course I can access it by connecting it directly to my computer and using the default 192.168.1.1 address, but it sort of defeats the purpose.

So the question is how can I find the IP address of the router to connect to it once it is connected to the LAN? What information do you need to help?

Thanks in advance!

(Last edited by abhay on 21 Jan 2014, 23:53)

hi abhay,

Do you have another router sitting between the TL-MR3020 and your internet connection.
I'm guessing you do because. If so, why not try to figure out which IP addresses have been assigned to what devices using their MAC?

The wifi bridge (is it set up via WDS?) should be acting like a dhcp client receiving an IP from the main AP and the main AP should have been set up as an authoritative DHCP server.

Hi

The problem is that I don't have access to the main router.

I'm trying to understand the mechanism. Am I using the wrong MAC address? Why is there no response to the ARP-ping?

The MR3020 has only one RJ-45 jack that functions as WAN/LAN port depending on the mode it's in.

So essentially there is one interface eth0 and one wlan0 what is bridged together to as br-lan. But when I run ifconfig, they all show the same MAC address.

you need to change the default ip to something in the "main router" network subnet.. possibly out of DHCP server range, to avoid ip conflicts..

I don't understand what you mean. Why would there be an IP conflict? Our LAN DHCP server allocates the IP address without problem. The bridged WiFi network also works without problem. IP address are correctly allocated to connected clients. I just want to find the IP address allocated to the LAN interface.

Normally, when I know the MAC address of an interface and want to lookup the IP address, I use the arping command like this:

arping -i eth0 -c 5 <MAC Addr>

All interfaces here are on the same LAN, so ideally it should not be a problem.

But in this case, there is no response to my ARPs from the interface LAN (bridge) interface. Is there any chance that ARPs are disabled/suppressed?

(Last edited by abhay on 21 Jan 2014, 01:22)

i don't think arping works like you think xD

anyway.. usually you set the lan ip of the router to static, and if it's really a bridged ap, not routed ap, you should choose an ip that the dhcp server of the main router will never assign.
i guess you disabled the dhcp server on the 3020?

(Last edited by nebbia88 on 21 Jan 2014, 07:27)

I may not know how ARP works, but for sure I've been using arping to find IP addresses for a long time. man arping:

arping -c 3 00:11:85:4c:01:01
       ARPING 00:11:85:4c:01:01
       60 bytes from 88.1.180.225 (00:11:85:4c:01:01): icmp_seq=0 time=13.367 msec
       60 bytes from 88.1.180.225 (00:11:85:4c:01:01): icmp_seq=1 time=13.929 msec
       60 bytes from 88.1.180.225 (00:11:85:4c:01:01): icmp_seq=2 time=13.929 msec

       --- 00:11:85:4c:01:01 statistics ---
       3 packets transmitted, 3 packets received,   0% unanswered

Moreover, I can easily get replies using the arping-scan-net script:

$ sudo ./arping-scan-net.sh 14:10:9f:e3:49:b5
Got answer with address: 172.16.31.168

My router is working fine. I just want to find be able to access it using ssh so I want to find the IP address allocated to it.

Anyway, let me try assigning a static IP just to test it.

So mystery solved ... (partially)

(1) The default bridged configuration works out of the box, but the LAN interface is never allocated an IP address by the main DHCP server on the network. I still don't understand how this mode works. It is almost like a "pass-through" or a transparent "bridge" between the wired and wireless worlds. Maybe that is what bridged mode means?

(2) So I configured the router as AP following the excellent tutorial here: http://www.clarenceho.net/blog/article … th-openwrt.

And voila!

$ sudo ./arping-scan-net.sh 90:F6:52:D6:E8:05
Got answer with address: 172.16.31.209

So I finally found the IP address of the LAN/WAN port ... but, now I couldn't ssh into it or see the LuCI UI on that address.

It needs a small change in the firewall rules as documented here: https://forum.openwrt.org/viewtopic.php … 01#p166701.

I'm not sure if it is necessary, but I also added a forwarding rule from wan/lan zone to wifi zone.

Now I am able to ssh into the router from both the wired and wireless networks. Works like a charm!

I have some more questions but those will go into another post.

Thank you everyone.

The discussion might have continued from here.