I have an issue on internet connection.
I got an OpenWrt Router from our partner for our project.
I am able to access to router through ssh.
There is no issue on LAN side because I am able to ping.
However, there is no internet connection.
I connected WAN port to our internal local network for the internet.
I am not a network guy. I need your advice.
I know that WAN and LAN IP has to be in the same range.
Current setting is 192.168.1.254 / 192.168.0.254.
I attached the screenshot of the configuration.
Thank you for your advice.
The name of the Router is RG450G, and I can access to router through the only ssh.
As you suggested, I executed vi /etc/config/network as below.
If you wish to assign a valid static IP address to the WAN interface of the router (if DHCP is not available). The current 192.168.1.254 may be invalid without knowing more about your infrastructure.
You just need to add a valid 'option gateway' entry, and you probably need a 'option dns' too.
Example:
config interface 'wan'
option ifname 'eth0'
option proto 'static'
option netmask '255.255.255.0'
option gateway '10.157.8.1' # gateway address
option dns '8.8.8.8' # example DNS
option ipaddr '10.157.8.200' # example static IP address
I don't know why you think you have no access to /etc/config/network file. If you are a Windows user, you may wish to download the HH5a install guide and study section 10 for beginners advice to using 'vi' editor or 'WinSCP' to edit the file. https://openwrt.ebilan.co.uk/viewtopic.php?f=7&t=266
The Windows command 'ipconfig /all' will reveal more information btw.
Which Ethernet interface of your Windows PC is wired to your internal LAN router which provides your internet access ?
I cannot see any reference to 192.168.1.x subnet.
If it is 'Ethernet 2', the PC is obtaining IP address info using DHCP using LAN address subnet 10.157.8.x.
You therefore may wish to considering seeing if DHCP works (instead of static IP) on the openwrt router if it is to be connected to same 10.157.8.x subnet.
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
Thank you!
I followed second option with static ip address as below.
I am able to ping gateway and google public DNS server (8.8.8.8)
But not a web-page.
I have one question.
Can I update packages with this setting?
When using SSH, if 'ping 8.8.8.8' is successful but 'ping dns.google' fails, there seems to be a problem with DNS on the openrouter? I presume you tried turning router off and on
Can you try using this in 'wan interface' to see if it makes any difference?
option dns '8.8.8.8'
I can't find any info about RG450G so cannot comment on your 'update package' question, but you need to fix the DNS issue in first instance.
Did you perhaps have a Microtik RB450G? Someone much more knowledgeable may be able to answer your question.
I am also puzzled why LuCI web ui is not working if OpenWrt 18.06.0 is installed unless it is a 'custom built' image and is missing features....
I set dns as 8.8.8.8.
Before I change dns, it was possible to ping both 8.8.8.8 and www.google.com
However, it is not possible to ping with dns 8.8.8.8.
I am trying to find a way