tldr/pages/common/ifconfig.md

24 lines
363 B
Markdown
Raw Normal View History

2015-12-28 14:19:50 +00:00
# ifconfig
> Network Interface Configurator.
2015-12-28 14:19:50 +00:00
- View network settings of an ethernet adapter:
2015-12-28 14:19:50 +00:00
`ifconfig eth0`
- Display details of all interfaces, including disabled interfaces:
2015-12-28 14:19:50 +00:00
`ifconfig -a`
- Disable eth0 interface:
2015-12-28 14:19:50 +00:00
`ifconfig eth0 down`
- Enable eth0 interface:
2015-12-28 14:19:50 +00:00
`ifconfig eth0 up`
- Assign IP address to eth0 interface:
2015-12-28 14:19:50 +00:00
`ifconfig eth0 {{ip_address}}`