Hi,
I have installed my OpenWrt Router (TP-LinK TR-WR1043ND - Version 19.07.7-ath79) successfully.
My Internet configuration runs with a Huawei Stick E8372.
But here is my problem. I can not login to the GUI Luci with the IP 192.168.1.1. Either with cable or Wifi.
Only when I remove the Huawei Stick, log in with LAN cable and reboot 1 or more times the Router. Than I can log to the Web interface only buy LAN but not with Wifi.
What did I wrong?
What are the correct settings in the Menu> Interfaces for log in with Wifi to the Router or if necessary with cable?
Or is the Problem the Firewall?
Here are my settings: Interfaces:
Huawei - (IPv4 add=192.168.1.2 netmask 255.255.255.0; IPv4 gateway 192.168.1.2) Physical Settings (eth1 + wlan0); - Firewall wwan: huawei: lan: raspi:)
One more question, to understand the problem!
What did you mean, change the lan IP before you connect the huawei stick.
What are the right steps?
Login in the Router per ssh
make the command
2.1. Can I copy and execute the entire command ?
When I move the lan-IP address what happens?
Does the change mean that I can now log on to the surface with the IP via WiFi and LAN cable?
Insert the huawei stick finish The login in IP is now 192.168.100.1 to the Webinterface!
What happens to the Raspi device? Can I still hope that the device is connected to the Internet by the bridge?
After the change, the fixed IP is still available for the raspi as well as for the huawei stick?
If I understand correctly, is the change only necessary for logging into the router?, because I have an IP conflict.
You'll get disconnected. Do a dhcp renew on the PC to acquire the new IP. It should be 192.168.100.100 if the rest is left to defaults.
Now you can connect to the new IP .100.1 of OpenWrt from your PC. Do a browser restart if it doesn't work.
If it is connected to the lan part of the WR-1043ND, you'd have to change it's IP address too, in case it is static. If it is dynamic from dhcp, pull out the cable, count to 10, and plug it back in.
So, Update...
I can connect to the IP 192.168.100.1 but....
I can not connect to the WiFi, to my raspi or to the Mobile Stick.
What is the problem, with the IP?
I need the static address for the raspi. What happens, when I changed the huawei address? It's that the Problem?
My raspi has the IP = 192.168.1.3 and the gateway *huawei=192.168.1.2 it connected to OpenWrt.
My WWAN = WiFi gets the IP over DHCP.
Every other device gets the IP over WiFI and goes to the Internet over huawei 192.168.1.2 . That's why I make the bride for raspi (physical settings wlan0, eth0, eth1=huawei)
And the other bridge LAN ( 192.168.1.1. an gateway and huawei 192.168.1.2).
When I change the IP than I can't use my raspi, and my laptop to connect to the internet.
I can change the IP for the huawei stick for example 192.168.8.1
Than can I change the gateway for all interfaces. Can this help me?
LAN IP static 192.168.1.1
raspi static 192.168.1.3
huawei 192.168.8.1
Again same mistake, you have an ip conflict because two different networks share the same subnet. I can also notice that almost everything is bridged, that huawei interface is considered part of the lan, and that there is a wwan interface without clear purpose.
Do you have alternative internet uplinks?
Why did you create all these interfaces?
Is there a reason that the raspi is not in the lan interface?
Do you have alternative internet uplinks?
No I have not. It,s a garden House without any Internet uplinks.
Why did you create all these interfaces?
To connect to the Internet I need the Huawei-Stick.
I thought all my devices should have connection to the internet from WiFi.
laptop
raspi
The huawei stick is for the connection to the internet.
Is there a reason that the raspi is not in the lan interface?
No really, the raspi 4 has WiFi and I wanted to use the Wifi - without cable.
Without the raspi bridge I had not Internet connection ! That's why I had make the raspi bridge installed.
Is that the mistake?
If I connected to the OpenWrt router with cabel to my raspi, do you think it will be work?
If I understand it correct, when I connected with my raspi to the OpenWrt router with cable it will get internet connection over LAN bridge ?
I can use 192.168.1.1. for my router, an 192.168.1.2 for raspi / gateway. Or is there again a IP conflict?
My idea was everything connected to the WiFi get internet connection. How is that to install?
I think it would be best to reset the router to defaults and try again from a clean configuration.
By default you'll have a lan interface, covering the lan ports of the router and the wifi (which is disabled by default, but you can enable it). Change the lan IP again to 192.168.100.1.
The wan interface will be covering the wan port, but you can repurpose it to be the interface for the dongle.
Don't change anything else in firewall or dhcp, it should be enough to work.
Ok, I will try iit. But first I have to know what to do.
What did you mean with: The wan interface will be covering the wan port, but you can repurpose it to be the interface for the dongle.
I have to install the usb driver an connect the dongle to the router. After that I install the eth1 interface, correct? or how can I connect to the internet?
Is there a way to give my raspi the IP 192.168.1.3 ?
When I look to my interfaces, I have a LAN Interface and a Interface for the huawei stick or not?
I do not need the bridge for raspi?
Thank you for help
After you install the usb module and enable it, go to the network configuration and either change the ifname of wan interface from eth0.2 to the physical interface the huawei has, or create a new interface for huawei and add it under wan zone in firewall.
I don't know how you will connect to the internet before you install the module. One solution is to connect the RPi on an existing connection. In that case if the existing network is 192.168.1.X, you can give .1.3, provided no other device is using it. But you'll need to switch off first the dhcp server of OpenWrt. (Network-Interfaces-Edit LAN-DHCP server-Ignore interface).
Yes, you should have a lan and a huawei.
You can have the bridge over ethernet and wifi of RPi. The huawei should be routed.
You only need two networks here, wan and lan. These two networks are installed by default.
The wan "physical setting" is the dongle's "eth" or "usb" virtual port. This is the path to the Internet. Generally the dongle or the ISP will issue an IP address via DHCP, so use protocol DHCP on wan.
The Pi and other lan devices will be in the lan network bridge. You do not have to individually identify them in the router. If they hold an IP in the lan range and have a physical link to the lan bridge (ethernet or wifi), they are automatically participants in the lan network.
Generally you should run a DHCP server on lan and have the devices be DHCP clients. If you want a device to have a specific IP address, set up a DHCP reservation for it.
So, I reset and have a question.
Now I can login to the OpneWrt Router to 192.168.11.
I can login to the dongle. 192.168.1.2
and I can login to my raspi.
But there are two problem's:
A) I can not update my openwrt router because no internet connection.
B) The internet connection with my laptop has no connection too, but I change the settings , then it function.
Is there a better solution?
In which settings (LAN or WAN) is a mistake?
Why can I not connect to the internet with the router and must set a manual IP addr.
Incidentally, the connection to the Internet with the raspi is perfect.
That are my LAN settings:
Sorry, I just can upload one picture:
I have these settings for LAN:
physical settings: Bridge interfaces, Inerface: eth0.1, eth1, wlan0
firewall: lan: wwan:
For the dongle:
dhcp client
physical settings: no bridge and only eth1
firewall: lan: wwan:
This is wrong.
eth1 must not be bridged under lan.
wwan must be in wan firewall zone.
lan ip address must be in different subnet, since dongle is in 192.168.1.0/24
To update my openwrt router I make another Wifi connection at home: wlan_home
gern: dhcp client
phys.: no bridge + wlan_home
fire:lan: wwam: wlan_home
Important: I have to deactivate the wlan_home!
I used the router in my garden. There I can connect to openwrt router, can connect to the raspi as well and to the dongle. I can connect with my laptop to the internet.
The only part that not function so good, is the connection for the updates to the openwrt at the garden.
But I can bring the router to my home an switch on the wifi an the I update everthing.
If there's an easy way to connect to the internet in the garden, that's fine.
If someone has an idea without changing my general settings again, I don't want to configure it again.
Don't bridge the 4G dongle into LAN. When using Internet via 4G, it is your wan device. If the dongle DHCP issues IP addresses in the 192.168.1.0 range, you need to change the OpenWrt lan to a different range.
Don't have any "gateway" settings, it will be configured automatically to be the dongle when the dongle DHCP is complete. Or if you use house wifi for WAN the house router DHCP will advertise itself as the gateway, and OpenWrt will install that as long as you don't try to force it to something else.
In general here staying close to a default configuration is best. Less is really more. Don't just add stuff without understanding what it does. Don't make additional networks: you only need lan and wan for this situation. To meet this use case, you're going to change the wan physical device to be something other than Ethernet (either house wifi or 4G dongle)-- and watch out for IP conflict. Changing the lan to something really strange (maybe 192.168.85.1) and leaving it there would work.