N
N
ne555n2014-01-18 22:38:36
linux
ne555n, 2014-01-18 22:38:36

Setting up a router with OpenWrt

Given: a router with OpenWrt on board (TP-Link MR3020); An ADSL modem that distributes the Internet via Wi-Fi - in fact, raises the WLAN.
Task: Configure the router as a client with a static ip both via cable and via Wi-Fi.
Issues: Configs below. Everything works via Ethernet. But there is a problem with connecting to WLAN. Wi-Fi rises on the router, ifconfig says that the correct address has been assigned to the device (the one that I wrote in the config). But here on a network behind this address nothing responds/responds. In the web face of the modem, in the list of devices connected to the WLAN, my router appears (the MAC address is the same), but for some reason with ip 0.0.0.0
What's the matter?
Configs (partially):
network:
config interface 'wlan'
option proto 'static'
option ifname 'wlan0'
option netmask '255.255.255.0'
option ipaddr '192.168.1.6'
option gateway '192.168.1.1'
option dns '192.168.1.1'
wireless:
config wifi-iface
option device 'radio0'
option network 'wlan'
option mode 'sta'
option ssid 'home network name'
option encryption 'psk'
option key 'home network password'
192.168.1.1 - address of the modem distributing Wi-Fi
192.168.1.6 - preferred address for the router
Interesting:
If you configure the router as a dhcp client over Wi-Fi, but assign a static ip over the cable, the router receives ip from the modem, but does not respond / ping for this address.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Somov, 2014-06-20
@DarkDemon

There are several modes of operation as a wi-fi client
Description of openwrt modes
, not everything does not work in all, for example
"Bridged client mode only works on brcm-2.4 all other platforms need non-standard patches or other workarounds"
TP-Link MR3020 = Atheros
Solution via luci

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question