1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ifconfig.md

25 lines
485 B
Markdown
Raw Normal View History

2015-12-28 19:49:50 +05:30
# ifconfig
> Network Interface Configurator.
> More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.
2015-12-28 19:49:50 +05:30
- View network settings of an interface:
2015-12-28 19:49:50 +05:30
`ifconfig {{interface_name}}`
2015-12-28 19:49:50 +05:30
- Display details of all interfaces, including disabled interfaces:
2015-12-28 19:49:50 +05:30
`ifconfig -a`
- Disable an interface:
2015-12-28 19:49:50 +05:30
`ifconfig {{interface_name}} down`
2015-12-28 19:49:50 +05:30
- Enable an interface:
2015-12-28 19:49:50 +05:30
`ifconfig {{interface_name}} up`
2015-12-28 19:49:50 +05:30
- Assign an IP address to an interface:
2015-12-28 19:49:50 +05:30
`ifconfig {{interface_name}} {{ip_address}}`