Skip to content

Commit ea3b79d

Browse files
committed
doc: Add notes about the dhcp and autoip configuration modes
1 parent 9d5afae commit ea3b79d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/library/network.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,24 @@ parameter should be `id`.
122122

123123
nic.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
124124

125+
.. method:: AbstractNIC.ifconfig('dhcp')
126+
127+
Request network IP address configuration from a DHCP server on the network.
128+
129+
As implemented, this method will block until an address is successfully
130+
leased from the DHCP server and will raise OSError if a timeout occurs.
131+
132+
.. method:: AbstractNIC.ifconfig('autoip')
133+
134+
Request stateless network IP address autoconfiguration. For IPv4, the
135+
adapter will choose a random address in the 169.254.0.0/16 subnet and
136+
verify it does not conflict with an existing address on the network.
137+
138+
This is currently implemented only for the LWIP software IP stack.
139+
140+
As implemented, autoconfiguration will run in the background. Use a wait
141+
loop before running code requring the autoconfigured address.
142+
125143
.. method:: AbstractNIC.config('param')
126144
AbstractNIC.config(param=value, ...)
127145

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy