nmcli configure network

1
2
3
4
5
6
7
# 修改配置文件
[root@localhost ~ ] # nmcli connection add type bond ifname bond1 mode 1
# 临时配置,不写入配置文件
[root@localhost ~ ] # nmcli connection add type bond ifname bond1 mode 1 ip4 192.168.10.215/24 gw4 192.168.0.1

[root@localhost ~ ] # nmcli connection add type bond-slave ifname eth0 master bond1
[root@localhost ~ ] # nmcli connection add type bond-slave ifname eth1 master bond1