2015-12-28 14:19:50 +00:00
|
|
|
# ifconfig
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Ifconfig - Interface Configurator, used to configure network interfaces.
|
2015-12-28 14:19:50 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- View network settings of an ethernet adapter:
|
2015-12-28 14:19:50 +00:00
|
|
|
|
|
|
|
`ifconfig eth0`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display details of all interfaces, including disabled interfaces:
|
2015-12-28 14:19:50 +00:00
|
|
|
|
|
|
|
`ifconfig -a`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Disable eth0 interface:
|
2015-12-28 14:19:50 +00:00
|
|
|
|
|
|
|
`ifconfig eth0 down`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Enable eth0 interface:
|
2015-12-28 14:19:50 +00:00
|
|
|
|
|
|
|
`ifconfig eth0 up`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Assign IP address to eth0 interface:
|
2015-12-28 14:19:50 +00:00
|
|
|
|
|
|
|
`ifconfig eth0 {{ip_address}}`
|