mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 15:45:59 +02:00

Co-authored-by: Muhammad Falak R Wani <falakreyaz@gmail.com> Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
24 lines
439 B
Markdown
24 lines
439 B
Markdown
# ifconfig
|
|
|
|
> Network Interface Configurator.
|
|
> More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.
|
|
|
|
- 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}}`
|