User Tools

Site Tools


ipconfiguration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ipconfiguration [2020/10/21 14:11]
Andrew Zaborowski :q
ipconfiguration [2020/11/26 18:30] (current)
Andrew Zaborowski DNS addresses are space delimited in current code
Line 1: Line 1:
-While this page is being written please refer to the Network ​ ​contents ​of the iwd.network(5) manual page or the +While this page is being written please refer to the //Network ​Configuration Settings// section ​of the **iwd.network**(5) manual page ([[https://​git.kernel.org/​pub/​scm/​network/​wireless/​iwd.git/​tree/​src/​iwd.network.rst#​n250|git source]].)
  
-https://​git.kernel.org/​pub/​scm/​network/​wireless/​iwd.git/​tree/​src/​iwd.network.rst#n250+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 ([[https://​git.kernel.org/​pub/​scm/​network/​wireless/​iwd.git/​tree/​src/​iwd.config.rst#n57|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. 
 + 
 +<code ini> 
 +[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 
 +</​code>​ 
 + 
 +Some of the optional settings can be used alone to override the values in the DHCP lease.
ipconfiguration.1603289481.txt.gz · Last modified: 2020/10/21 14:11 by Andrew Zaborowski