2015-12-28 19:49:50 +05:30
|
|
|
# ifconfig
|
|
|
|
|
2016-10-12 16:58:04 +01:00
|
|
|
> Network Interface Configurator.
|
2021-07-12 14:51:22 +08:00
|
|
|
> More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
- View network settings of an Ethernet adapter:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig eth0`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Display details of all interfaces, including disabled interfaces:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig -a`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Disable eth0 interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig eth0 down`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Enable eth0 interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig eth0 up`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Assign IP address to eth0 interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig eth0 {{ip_address}}`
|