2015-12-28 19:49:50 +05:30
|
|
|
# ifconfig
|
|
|
|
|
2016-10-12 16:58:04 +01:00
|
|
|
> Network Interface Configurator.
|
2021-07-12 14:51:22 +08:00
|
|
|
> More information: <https://net-tools.sourceforge.io/man/ifconfig.8.html>.
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2024-11-01 23:36:20 +05:30
|
|
|
- View network settings of an interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2024-11-01 23:36:20 +05:30
|
|
|
`ifconfig {{interface_name}}`
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Display details of all interfaces, including disabled interfaces:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig -a`
|
|
|
|
|
2024-11-01 23:36:20 +05:30
|
|
|
- Disable an interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2024-11-01 23:36:20 +05:30
|
|
|
`ifconfig {{interface_name}} down`
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2024-11-01 23:36:20 +05:30
|
|
|
- Enable an interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2024-11-01 23:36:20 +05:30
|
|
|
`ifconfig {{interface_name}} up`
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2024-11-01 23:36:20 +05:30
|
|
|
- Assign an IP address to an interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2024-11-01 23:36:20 +05:30
|
|
|
`ifconfig {{interface_name}} {{ip_address}}`
|