Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ifup [2016/04/27 09:19] steve |
ifup [2016/04/27 14:05] steve |
||
---|---|---|---|
Line 3: | Line 3: | ||
* [[Networking]] | * [[Networking]] | ||
* [[Ubuntu Networking]] | * [[Ubuntu Networking]] | ||
+ | * [[ifconfig]] | ||
* [[ifenslave]] | * [[ifenslave]] | ||
+ | * [[ip]] | ||
* **ifup** - bring a network interface up | * **ifup** - bring a network interface up | ||
Line 35: | 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> |