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
ifup [2016/04/27 13:30]
steve
ifup [2016/04/27 14:05]
steve
Line 5: Line 5:
   * [[ifconfig]]   * [[ifconfig]]
   * [[ifenslave]]   * [[ifenslave]]
 +  * [[ip]]
  
   * **ifup** - bring a network interface up   * **ifup** - bring a network interface up
Line 36: Line 37:
   * **-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>​