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?
Example:

docker network create -d macvlan \
  --subnet=200.150.100.128/26 \
  --gateway=200.150.100.126 \
  -o parent=eth0 \
  -o macvlan_mode=bridge \
  my-net

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

Tanks a lot.