From a78e4a0cda07ec95c84a1eb25f12f145cc7f405d Mon Sep 17 00:00:00 2001 From: Marnm <2461590502@qq.com> Date: Sat, 19 Feb 2022 21:42:47 +0800 Subject: [PATCH] Update nmcli.md (#333) --- command/nmcli.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/command/nmcli.md b/command/nmcli.md index 6258e3a6cc..ccf4cf5bcb 100644 --- a/command/nmcli.md +++ b/command/nmcli.md @@ -53,3 +53,14 @@ nmcli con add help # 查看帮助 ``` +### 创建网络会话 +```shell +nmcli connection add con-name company ifname ens33 autoconnect no type ethernet ip4 192.168.1.2/24 gw4 192.168.1.1 +# con-name 指定会话名称, +# ifname 指定本机网卡 +# autoconnect no 是否自动连接 +# ethernet 指定网卡类型 +# ip4/ip6 +# gw4/gw5 +``` +