The latest development version of this page may be more current than this released 2.3.0 version.
CONFIG_NET_CONFIG_MY_IPV4_GW

My IPv4 gateway

Type: string

Help

Static gateway to use if not overridden by DHCP. Use empty value to skip setting static value.

Direct dependencies

NET_IPV4 && NET_CONFIG_SETTINGS && NETWORKING

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to the empty string.

Kconfig definition

At subsys/net/lib/config/Kconfig:104

Included via Kconfig:8Kconfig.zephyr:34subsys/Kconfig:22subsys/net/Kconfig:89subsys/net/lib/Kconfig:28

Menu path: (Top) → Networking → Link layer and IP networking support → Network Libraries → Set network settings for applications

config NET_CONFIG_MY_IPV4_GW
    string "My IPv4 gateway"
    depends on NET_IPV4 && NET_CONFIG_SETTINGS && NETWORKING
    help
      Static gateway to use if not overridden by DHCP. Use empty value to
      skip setting static value.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)