no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | ifconfig [2016/04/27 20:08] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== ifconfig ====== | ||
| + | |||
| + | * [[Networking]] | ||
| + | * [[ifenslave]] | ||
| + | * [[ifup]] | ||
| + | * [[ip]] | ||
| + | * [[route]] | ||
| + | |||
| + | Syntax: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Options: | ||
| + | |||
| + | * **-a** - display all interfaces that are available, even if down | ||
| + | * **-s [interface]** - display a short list (similar to '' | ||
| + | * **< | ||
| + | * **< | ||
| + | * **< | ||
| + | * **< | ||
| + | * **< | ||
| + | * **< | ||
| + | * **< | ||
| + | |||
| + | ** Display all interfaces that are active ** | ||
| + | |||
| + | This does not necessarily mean that an interface has any addresses attached to it. Only that it is available and able to set something. | ||
| + | |||
| + | < | ||
| + | ifconfig | ||
| + | </ | ||
| + | |||
| + | ** Bring an interface online ** | ||
| + | |||
| + | < | ||
| + | ifconfig eth0 up | ||
| + | </ | ||
| + | |||
| + | ** Display information about the interface ** | ||
| + | |||
| + | < | ||
| + | ifconfig eth0 | ||
| + | </ | ||
| + | |||
| + | ** Set the IP address of an interface ** | ||
| + | |||
| + | < | ||
| + | ifconfig eth0 192.168.1.1 | ||
| + | </ | ||
| + | |||
| + | Note that if you don't set a broadcast or netmask address when setting the ip (fex: '' | ||
| + | |||
| + | ** Remove the IP address of an interface ** | ||
| + | |||
| + | < | ||
| + | ifconfig eth0 0.0.0.0 | ||
| + | </ | ||
| + | |||
| + | You can run '' | ||
| + | |||
| + | ** Set the IP address and broadcast of an interface ** | ||
| + | |||
| + | < | ||
| + | ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 | ||
| + | </ | ||
| + | |||
| + | ** Set the IP address, broadcast and netmask of an interface ** | ||
| + | |||
| + | < | ||
| + | ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0 | ||
| + | </ | ||
| + | |||
| + | ** Set the MAC address of an interface ** | ||
| + | |||
| + | < | ||
| + | ifconfig eth0 hw ether 00: | ||
| + | </ | ||