User Tools

Site Tools


ipconfiguration

While this page is being written please refer to the Network Configuration Settings section of the iwd.network(5) manual page (git source.)

These settings are only used if IP configuration is globally enabled in IWD's main configuration file using the [General].EnableNetworkConfiguration setting, see the General Settings section of the iwd.config(5) manual page (git source.)

Example configurations

If network configuration is globally enabled, by default a DHCP request is sent immediately after IWD connects to a network. If a DHCP lease is obtained, the settings from the lease are used to configure the local interface's IP address, netmask, gateway address, local internet domain and to configure the DNS entries into the system resolver.

If the Address and Gateway settings are present in the network config file's IPv4 section, a static configuration is used instead as in the following example. The other settings are optional.

[Security]
PreSharedKey=27fd71c40ab6867885738e9ca15b21d84b0849531d92bd1f130398470080f4fb
 
[IPv4]
Address=10.0.1.20
Netmask=255.255.255.0
Gateway=10.0.1.1
DNS=1.1.1.1,8.8.8.8

Some of the optional settings can be used alone to override the values in the DHCP lease.

ipconfiguration.txt · Last modified: 2020/10/21 16:29 by Andrew Zaborowski