2015-12-28 14:19:50 +00:00
|
|
|
# ifconfig
|
|
|
|
|
2016-10-12 16:58:04 +01:00
|
|
|
> Network Interface Configurator.
|
2021-07-12 07:51:22 +01:00
|
|
|
> More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.
|
2015-12-28 14:19:50 +00:00
|
|
|
|
2021-08-15 18:59:09 +01: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}}`
|