1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-07 17:17:45 +02:00
wiki/wiki/linux/ip.md
2021-08-09 00:27:30 +02:00

28 lines
477 B
Markdown

# IP
`ip` is a program that can edit and display the configurations of network
interfaces, routing and tunnels.
It is a replacement for the program `ifconfig`.
## List all network interfaces
You can list network interfaces by running:
```shell
ip link list
```
## Enable/disable a network interface
Assuming the interface is named `wlan0` run the following:
```shell
ip link set wlan0 up
```
Disabling works accordingly by running:
```shell
ip link set wlan0 down
```