Help Needed: Reverting to IPv4 Ping on OpenWRT 21.02.7 Upgrade

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?

not really openwrt related, ping -4 ?

You mean every time I ping a particular domain name I should put "-4" option? which I think is not the usual thing.

Do you want to disable IPv6 entirely? Just for ICMP? Just for the PING requests that you send? ...?

I just Disabled the IPV6 and its all done. Thanks to who given their valuable comments! :slight_smile:

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:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
1 Like

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.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.