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
Last revision Both sides next revision
ifup [2016/04/27 13:30]
steve
ifup [2016/04/27 14:04]
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
 +</​code>​
 +
 +Finally, bring it back online using ''​interfaces''​ config:
 +
 +<​code>​
 +ifup eth0
 +</​code>​