Uplink via 4G / LTE / Mobile: No IPv6 gateway (IPv6-PD)

Hey,
in Germany, providers often use the CG-NAT / IPv6-PD. The router can send and receive packages via the IPv6 connection.
However, the gateway on the router is not available on network.
Only the IPv4-gateway is usable.
I will only use IPv4 for the LAN-devices.

Sometimes one of the two providers only provide a IPv6-address. So I have to reconnect my modem a few times with Watchcat to get reconnected to the internet with valide IPv4- and IPv6-addresses at the same time.
IPv6 is only available on the OpenWRT-router for ping and the most other stuff.

  1. How the IPv6-gateway will be possible to declare in OpenWRT-router by default?
    Network > Interfaces > Interfaces

Create a new interface

I use the ModemManager with these options:


  1. How it will possible to get a IPv6-gateway for all Interfaces on the OpenWRT-router?
  2. How IPv6-gateway will be usable for a network device like a notebook.

Kind regards

Note the "ipv6-PD: /64" in your screenshot on the WAN interface.

this means your OpenWRT router gets a single prefix, which is the smallest possible standard-allowed ipv6 subnet.

Such a /64 subnet cannot be subdivided into smaller subnets, which means, the LAN interface cannot be assigned a (smaller) subnet from this range and therefore cannot hand out routable ipv6 addresses to LAN clients.

According to your experience, sometimes it works. Probably sometimes your provider hands out a /56 or /60 or /62 prefix to your router. Then LAN can obtain a subnet for handing out routable ipv6 addresses.

1 Like

Hey @Pico,

is there a workaround on OpenWRT to set a virtual device as a gateway?

Is this the right place where to change the settings for IPv6 for the mobile-GW-device?
Network > Interfaces > Interface > gw_{ PROVIDER_NAME} > Advanced Settings

I change the settings, but I only receive a /64 address from the provider.

what this setting is for: if the provider offers you a larger prefix, you can choose to request a smaller prefix, but you cannot exceed the size that the provider offers.

A viable workaround is "ipv6 relay mode", it relays the WAN subnet to 1 single defined LAN segment https://openwrt.org/docs/guide-user/network/ipv6/configuration#ipv6_relay
the forum has a few threads discussing it.

Another less viable and ugly one is ipv6 NAT, but i would stay away from it.