How does lxc set the container ip to the same network segment as the host ip (static ip)?

  docker, question

When lxc is equipped with nat network segment, all kinds of behaviors are normal. If you want to set the ip of lxc to be on the same network segment as the host host (i.e., static ip), although the bridge can be created normally and host can ping the bridge, the inside of the container cannot ping the bridge, let alone the host and other hosts.

For example, my host ip is, in veth mode, lxcbr0 ip is, and container ip is at this time, I can ping on host, in container, or any host on the same network segment. If lxcbr0 and its dhcp network segment and container ip are changed to 10.0.3.x, they can all ping each other.

There are many experts here, I hereby ask for advice!