hi,
i am new with openwrt.
i want to use 5G CPE router with OpenWrt that installed in Tp-link MR-200.
i use Jio (india) sim and this sim 4G/5G network is a 464XLAT-based network.
Current 5G CPE router ip : 192.168.0.1 and openWrt ip is: 192.168.1.1
5G router connected with port 4 of MR-200 that label is lan/wan behind router and My pc is connected to lan 1 port.
network config :
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd9c:655f:ccc5::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option defaultroute '0'
list dns '8.8.8.8'
list dns '8.8.4.4'
config device
option name 'usb0'
option macaddr '3c:46:d8:e3:cf:68'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '6t 0 1 2'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '6t 3'
option vid '2'
option description 'WAN'
config interface 'wan'
option proto 'dhcpv6'
option device 'eth0.2'
option reqaddress 'try'
option reqprefix 'auto'
You need to have the working IPv6 connectivity before proceeding with 464XLAT.
Connect your PC to your 5G CPE directly and see if you have a working Internet connection.
Assuming that 464xlat has to be handled by OpenWrt: Is the 464xlat package installed? If not, please build a custom image for your device on https://firmware-selector.openwrt.org/ including this package.
Alternatively, assuming that 464xlat is to be handled by the 5G CPE router: enable it there. Note that it may not be possible. Globe Telecom in the Philippines also experimented with 464xlat in March 2022 and forgot that a non-zero percentage of their own routers do not support this technology, thus leaving some users without connectivity at all.
If it is installed and does not work, then the real question is - are you sure that you need 464xlat? Windows supports it only on internal or USB-connected LTE modems, not on Ethernet-connected CPEs.
Can you ping 8.8.8.8 from Windows, just to confirm that you have IPv4 connectivity via IP addresses, and not just via domain names resolving to fake IPv6 addresses?
The ipconfig output is incomplete. Could you please confirm that it does not mention any IP address in the range from 192.0.0.0 to 192.0.0.7? If no such IP address exists, this would confirm that 464xlat is not in use, and you just need IPv6 relay protocol.
Problem :
when i connected with 5G CPE router and open any ipv4 address like 1.1.1.1 or any other ivp4 address then can't open or ping. but if i open google.com, youtube.com, fast.com or any other domain then work fine. this is happening in pc and other mobiles when connect via wifi.
so, i find in google about this problem. after i find one post in forum that have same problem for me. and they solve with 464XLAT and openWrt.
they tell jio is a 464XLAT-based network ipv6 only internet provider.
Check this post: https://broadband.forum/threads/sim-based-router-recommendation-for-5g-cellular-network.221760/post-1619936
OK, so with this setup 464xlat should definitely work.
The initial network config that you have posted, however, contains an incompatible option: with 464xlat, you are not allowed to use custom DNS servers, because the "normal" DNS servers will not return the AAAA record for ipv4only.arpa and thus will trick the router into believing that 464xlat is pointless. There are ways around that, but let's exclude the obvious issue.
Please remove the custom DNS from the lan and retry. If this works, we can introduce the workaround and switch back to Google DNS servers as the next step.
EDIT: there are two possible workarounds here besides switching to the ISP's automatically-obtained DNS servers.
The easiest way would be to use Google's alternative DNS servers specifically meant to be used with DNS64. See https://developers.google.com/speed/public-dns/docs/dns64, the correct IP addresses are 2001:4860:4860::6464 and 2001:4860:4860::64. Use them instead of 8.8.8.8 and 8.8.4.4.
Alternatively, you can try adding all 4 "correct" answers for ipv4only.arpa (192.0.0.170, 192.0.0.171,
64:ff9b::c000:aa, 64:ff9b::c000:ab) to Network > DHCP and DNS > Hostnames if the OpenWrt router will never connect to ISPs that don't need 464xlat.
The 5G CPE stock firmware almost certainly has an internal CLAT 464 (official name for what OpenWrt's 464xlat package does) running. The simplest thing to do then would be to make WAN a dual-stack connection to the CPE and NAT IPv4 to it as usual.
Once that is confirmed working then you can look at running your own 464xlat.