I have been an avid OpenWRT user since 2015. Recently, I upgraded my old device (Ubiquiti EdgeRouter X) from OpenWRT Version 18 to OpenWRT Version 21.02.7. Over the past week, I have been observing its performance, and it has been working well.
However, I noticed that when I execute a ping command (e.g., ping google.com), the IPv6 address of Google is being pinged, rather than the usual IPv4 address of the domain name. As the Philippines predominantly uses IPv4 and IPv6 is not yet widely adopted in our country, I am aware that IPv6 is slowly being integrated, especially into new devices.
My question is: How can I configure the router to revert to using IPv4 of a domain name when executing the ping command?
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Config migrates only one version. What you have is incompatible files in flash. Boot to failsafe and reset config (mount_root , sysupgrade -b /tmp/my.tar.gz, download file, reboot to failsafe and do firstboot -y ; reboot or sysupgrafe -n to 23.05.4)
IPv6 when working properly usually results in a better Internet user experience, so you should not disable it.
This hardware has plenty of memory to be compatible with the latest version, which is what you should be running. Upgrading past version 21 will require major changes to /etc/config/network due to the kernel now using DSA to control the Ethernet switch hardware. There have also been changes to other configurations to the point that old /etc/config files should not simply be imported. Starting from a default configuration then making any changes necessary for your use case is strongly recommended.