mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 09:17:57 +01:00
24 lines
404 B
Markdown
24 lines
404 B
Markdown
|
# ifconfig
|
||
|
|
||
|
> ifconfig - Interface Configurator, used to configure network interfaces.
|
||
|
|
||
|
- 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}}`
|