2015-12-28 19:49:50 +05:30
|
|
|
# ifconfig
|
|
|
|
|
2016-10-12 16:58:04 +01:00
|
|
|
> Network Interface Configurator.
|
2015-12-28 19:49:50 +05:30
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- View network settings of an ethernet adapter:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig eth0`
|
|
|
|
|
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`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Disable eth0 interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig eth0 down`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Enable eth0 interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig eth0 up`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Assign IP address to eth0 interface:
|
2015-12-28 19:49:50 +05:30
|
|
|
|
|
|
|
`ifconfig eth0 {{ip_address}}`
|