File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,24 @@ parameter should be `id`.
122
122
123
123
nic.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
124
124
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
+
125
143
.. method :: AbstractNIC.config('param')
126
144
AbstractNIC.config(param=value, ...)
127
145
You can’t perform that action at this time.
0 commit comments