ifconfig
Submitted by Stephen Crawley on Sat, 05/10/2008 - 14:20.
ifconfig
| Synopsis | ||
| ifconfig | List IP address assignments for all network devices | |
| ifconfig | <device> | List IP address assignments for one network device |
| ifconfig | <device> <ipAddress> [ <subnetMask> ] | Assign an IP address to a network device |
|
Details | ||
|
The ifconfig command is used for assigning IP addresses to network devices, and printing network address bindings.
The first form prints the MAC address, assigned IP address(es) and MTU for all network devices. You should see the "loopback" device in addition to devices corresponding to each of your machine's ethernet cards. The second form prints the assigned IP address(es) for the given <device>. The final form assigns the supplied IP address and associated subnet mask to the given <device>. |
||
|
Bugs | ||
|
Only IPv4 addresses are currently supported.
When you attempt to bind an address, the output shows the address as "null", irrespective of the actual outcome. Run "ifconfig <device>" to check that it succeeded |
||



Recent comments
3 hours 35 min ago
1 day 19 hours ago
1 day 21 hours ago
2 days 3 hours ago
2 days 14 hours ago
3 days 2 hours ago
3 days 3 hours ago
3 days 5 hours ago
3 days 16 hours ago
3 days 20 hours ago