mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-06-26 13:03:59 +03:00
shell
This commit is contained in:
@ -5,25 +5,25 @@ description: Команда ip в Linux
|
||||
tags: [linux]
|
||||
---
|
||||
## Показать все интерфейсы
|
||||
```bash
|
||||
```shell
|
||||
ip a
|
||||
ip l
|
||||
```
|
||||
|
||||
## Показать информацию по конкретному интерфейсу
|
||||
```bash
|
||||
```shell
|
||||
ip a show <interface>
|
||||
ip l show <interface>
|
||||
```
|
||||
|
||||
## Изменить статус сетевого интерфейса
|
||||
```bash
|
||||
```shell
|
||||
ip l set <interface> down
|
||||
ip l set <interface> up
|
||||
```
|
||||
|
||||
## Добавить или удалить адрес
|
||||
```bash
|
||||
```shell
|
||||
ip a add <ip-address/mask> dev <interface>
|
||||
ip a add brd <ip-address/mask> dev <interface>
|
||||
ip a del <ip-address> dev <interface>
|
||||
|
Reference in New Issue
Block a user