mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-06-26 13:03:59 +03:00
little fixes
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user