Need help configure the Xiaomi Mi R3G

Hello, I have the R3G since some month, now with 18.06.04.
When I tried to configure it the time I bought it, I gave up after some days. (I'm not that network pro)
I started this week again, but did not come any further....

What I'd like to have:
One of the LAN-Ports (preferably the blue, WAN Port) should be the "Input" wired to my LAN-Switch.
The DHCP is allready in my LAN, so no DHCP active in the R3G.
The two others should be "outputs" to be connected to users. So there should be local LAN and internet.
Also I like to have both radios (2.4GHZ & 5GHZ) to be connected to the LAN and internet.
Then I want the configuration IP (LuCI) to be on my local LAN, not on 192.168.1.1
I had parts of it allready (Input via WAN, output via radio), (LuCI on static IP whitin my LAN, configured by editing via SSH) but not everything in combination.

Can anybody point me in the right direction, please? Or has a backup with a configuration similar to what I need?

Thanks in advance,
Ingo

Hello, according to your description I think this will help you.
https://openwrt.org/docs/guide-user/network/wifi/dumbap

However, there are more experienced people here who will surely help you.

1 Like

Hello eduardo,
I allready read this artikel. But when I follow this, I don't get LuCI on my LAN. It is only accesseble via cable.

pls send
cat /etc/config/network

O.K., I did all again, reset (10s) the R3G and followed the steps under:
https://openwrt.org/docs/guide-user/network/wifi/dumbap
The tutorial is a bit different than what I see under 18.06.04, but I think it is because of it's age.
When I change the LAN-IP, and "save&apply", it does not get changed, but comes up with the save IP (192.168.1.1) again.
But the WAN-Port has a local adress now (DHCP-Client), and I can get LuCI via this WAN-Port over it's IP.

I went on.....
Now it's like this:
R3G (LuCI) is reachable via it's radio and via my local net (192.168.133.x) with the local IP the WAN-Port got via DHCP-client from my main router.
So far, so good!
But I don't get the LAN-Port configured that it is "brigded" to the WAN-Port (my local net). It should send DHCP-questions from a connected PC via WAN-Port to my main router.
Also, all other trafic. As far as I understand, that would be a "bridge" to the WAN-Port. How do I have to configure that?
Here ist the /etc/config/network:

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd4d:75f5:6f9c::/48'

config interface 'lan'
        option proto 'static'
        option ipaddr '192.168.133.2'
        option netmask '255.255.255.0'
        option gateway '192.168.133.1'
        option dns '192.168.133.1'
        option type 'bridge'
        option ifname 'eth0 eth0.1'

config device 'lan_dev'
        option name 'eth0.1'
        option macaddr '50:64:2b:ab:4a:f8'

config interface 'wan'
        option proto 'dhcp'
        option type 'bridge'
        option ifname 'eth0 eth0.1 eth0.2'

config interface 'wan6'
        option ifname 'eth0.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '2 3 6t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '1 6t'

Thanks,
Ingo

I test in my R3G your config. I change some things.

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd4d:75f5:6f9c::/48'

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0.1'
	option proto 'static'
	option ipaddr '192.168.133.2'
	option netmask '255.255.255.0'
	option gateway '192.168.133.1'
	option dns '192.168.133.1'

config device 'lan_dev'
	option name 'eth0.1'
	option macaddr '50:64:2b:ab:4a:f8'

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option vid '1'
	option ports '6t 3 2 1'

i change switch. i change wan port to another lan.

I tried to implement your suggestions. But when I powered the R3G on again, I don't get access to LuCI.
Something is totaly wrong here. But I am too tired now, I will have look this week. I will get back to you.
Thanks,
Ingo

I agree, something is escaping us.
If possible later send:

cat /etc/config/firewall
cat /etc/config/uhttpd
opkg list