Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ifdata [2015/08/04 12:07] steve created |
ifdata [2015/08/04 12:12] steve |
||
---|---|---|---|
Line 8: | Line 8: | ||
<code> | <code> | ||
- | ifdata eth0 | + | ifdata -pa eth0 |
</code> | </code> | ||
+ | Print yes or no if the interface exists. | ||
+ | |||
+ | <code> | ||
+ | ifdata -pe eth0 | ||
+ | </code> | ||
+ | |||
+ | Return an exit code if device exists or not: | ||
+ | |||
+ | <code> | ||
+ | ifdata -e eth0 | ||
+ | </code> | ||
+ | |||
+ | Print netmask: | ||
+ | |||
+ | <code> | ||
+ | ifdata -pn eth0 | ||
+ | </code> | ||
+ | |||
+ | Print the broadcast address: | ||
+ | |||
+ | <code> | ||
+ | ifdata -pb eth0 | ||
+ | </code> |