The latest development version of this page may be more current than this released 1.14.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 if’s and menus.)

Defaults

No defaults. Implicitly defaults to the empty string.

Kconfig definition

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

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:24subsys/net/Kconfig:84subsys/net/lib/Kconfig:27

Menu path: (top menu) → Networking → Network Libraries → Set network settings for applications

config NET_CONFIG_MY_IPV4_GW
    string
    prompt "My IPv4 gateway" if NET_IPV4 && NET_CONFIG_SETTINGS && NETWORKING
    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.

(Definitions include propagated dependencies, including from if’s and menus.)