Differences
This shows you the differences between two versions of the page.
— | ifup [2016/04/27 20:05] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ifup / ifdown / ifquery ====== | ||
+ | * [[Networking]] | ||
+ | * [[Ubuntu Networking]] | ||
+ | * [[ifconfig]] | ||
+ | * [[ifenslave]] | ||
+ | * [[ip]] | ||
+ | |||
+ | * **ifup** - bring a network interface up | ||
+ | * **ifdown** - take a network interface down | ||
+ | * **ifquery** - parse interface configuration\ | ||
+ | |||
+ | '' | ||
+ | |||
+ | The state of the interfaces is located in ''/ | ||
+ | |||
+ | For example, if you brought an interface up (or down) using another program, and '' | ||
+ | |||
+ | === ifup === | ||
+ | |||
+ | * **-a** - load configuration for all devices marked '' | ||
+ | * **--force** - force configuration | ||
+ | * **-i** - read configuration from '' | ||
+ | * **-o** option: | ||
+ | * **-v** - verbose output | ||
+ | |||
+ | === ifdown === | ||
+ | |||
+ | * **-a** - brings down all devices configured in the '' | ||
+ | * **--force** - force configuration | ||
+ | * **-i** - read configuration from '' | ||
+ | * **-o** option: | ||
+ | * **-v** - verbose output | ||
+ | |||
+ | === ifquery === | ||
+ | |||
+ | * **-l** or **--list** - list all interfaces | ||
+ | * **--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 '' | ||
+ | |||
+ | First, remove the IP address from the interface: | ||
+ | |||
+ | < | ||
+ | ifconfig eth0 0 | ||
+ | </ | ||
+ | |||
+ | Then, force the device to not be considered as up by '' | ||
+ | |||
+ | < | ||
+ | ifdown --force eth0 | ||
+ | </ | ||
+ | |||
+ | Finally, bring it back online using '' | ||
+ | |||
+ | < | ||
+ | ifup eth0 | ||
+ | </ |