How to create docker network with gateway ip is not in the subnet range?

Hi there,

is there a way to create a docker network, where the gateway is not in the range of the subnet?

docker network create -d macvlan \
  --subnet= \
  --gateway= \
  -o parent=eth0 \
  -o macvlan_mode=bridge \

When trying this, I will get the error ‘no matching subnet for gateway’ because the gateway ip address is not inside the subnet range.

Tanks a lot.