CONFIG_NET_MAX_ROUTERS

How many routers are supported

Type: int

Help

The value depends on your network needs.

Direct dependencies

!NET_RAW_MODE && NETWORKING

(Includes any dependencies from ifs and menus.)

Defaults

Kconfig definition

At subsys/net/ip/Kconfig:210

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:22subsys/net/Kconfig:80

Menu path: (Top) → Networking → Link layer and IP networking support → IP stack

config NET_MAX_ROUTERS
    int "How many routers are supported"
    range 1 254
    default 2 if NET_IPV4 && NET_IPV6
    default 1 if NET_IPV4 && !NET_IPV6
    default 1 if !NET_IPV4 && NET_IPV6
    depends on !NET_RAW_MODE && NETWORKING
    help
      The value depends on your network needs.

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