gateway


Description:

[ NoAccessorMethod ]
public string gateway { owned get; set; }

The gateway associated with this configuration.

This is only meaningful if addresses is also set.

Setting the gateway causes NetworkManager to configure a standard default route with the gateway as next hop. This is ignored if never_default is set. An alternative is to configure the default route explicitly with a manual route and /0 as prefix length.

Note that the gateway usually conflicts with routing that NetworkManager configures for WireGuard interfaces, so usually it should not be set in that case. See ip4_auto_default_route.