mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 20:02:09 +02:00
23 lines
363 B
Markdown
23 lines
363 B
Markdown
# ifconfig
|
|
|
|
> Network Interface Configurator.
|
|
|
|
- View network settings of an ethernet adapter:
|
|
|
|
`ifconfig eth0`
|
|
|
|
- Display details of all interfaces, including disabled interfaces:
|
|
|
|
`ifconfig -a`
|
|
|
|
- Disable eth0 interface:
|
|
|
|
`ifconfig eth0 down`
|
|
|
|
- Enable eth0 interface:
|
|
|
|
`ifconfig eth0 up`
|
|
|
|
- Assign IP address to eth0 interface:
|
|
|
|
`ifconfig eth0 {{ip_address}}`
|