mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
578 B
Plaintext
30 lines
578 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ifconfig
|
|
|
|
> Network Interface Configurator.
|
|
> More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.
|
|
|
|
- View network settings of an interface:
|
|
|
|
`ifconfig {{interface_name}}`
|
|
|
|
- Display details of all interfaces, including disabled interfaces:
|
|
|
|
`ifconfig -a`
|
|
|
|
- Disable an interface:
|
|
|
|
`ifconfig {{interface_name}} down`
|
|
|
|
- Enable an interface:
|
|
|
|
`ifconfig {{interface_name}} up`
|
|
|
|
- Assign an IP address to an interface:
|
|
|
|
`ifconfig {{interface_name}} {{ip_address}}`
|