little fixes

This commit is contained in:
2023-12-26 04:34:28 +06:00
parent 502633a0d5
commit 299a17db96
25 changed files with 113 additions and 49 deletions

View File

@ -4,25 +4,30 @@ date: 2022-11-25T19:17:00+05:00
description: Команда ip в Linux
tags: [linux]
---
## Показать все интерфейсы
```shell
```bash
ip a
ip l
```
## Показать информацию по конкретному интерфейсу
```shell
```bash
ip a show <interface>
ip l show <interface>
```
## Изменить статус сетевого интерфейса
```shell
ip l set <interface> down
ip l set <interface> up
```
## Добавить или удалить адрес
```shell
ip a add <ip-address/mask> dev <interface>
ip a add brd <ip-address/mask> dev <interface>