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 Both sides next revision
ifup [2016/04/27 13:30]
steve
ifup [2016/04/27 14:03]
steve
Line 36: Line 36:
   * **-l** or **--list** - list all interfaces   * **-l** or **--list** - list all interfaces
   * **--state** device - dump the state of the interfaces; all if no device specified   * **--state** device - dump the state of the interfaces; all if no device specified
 +
 +=== Scenarios ===
 +
 +If you want to force reset an interface completely, so that you can restart from scratch using the configuration in ''​interfaces'',​ here's how:
 +
 +First, remove the IP address from the interface:
 +
 +<​code>​
 +ifconfig eth0 0
 +</​code>​
 +
 +Then, force the device to not be considered as up by ''​ifup'',​ ''​ifdown''​ or ''​ifquery'':​
 +
 +<​code>​
 +ifdown --force eth0
 +ifup eth0
 +</​code>​