nmcliを使用して新しいインターフェイスを作成する場合は、ipv4.addressesおよびip4パラメータを使用してIPアドレスを設定できます。
これらの間に違いがありますか?
はい
nmcli con add ifname ens192 con-name ens192 type ethernet ipv4.addresses 192.168.0.10/24
そして
nmcli con add ifname ens192 con-name ens192 type ethernet ip4 192.168.0.10/24
ベストアンサー1
nmcli
マニュアルから:
Table 25. IPv4 options
┌──────┬────────────────┬────────────────────────┐
│Alias │ Property │ Note │
├──────┼────────────────┼────────────────────────┤
│ip4 │ ipv4.addresses │ The alias is │
│ │ ipv4.method │ equivalent to the │
│ │ │ +ipv4.addresses syntax │
│ │ │ and also sets │
│ │ │ ipv4.method to manual. │
│ │ │ It can be specified │
│ │ │ multiple times. │
├──────┼────────────────┼────────────────────────┤
│gw4 │ ipv4.gateway │ │
└──────┴────────────────┴────────────────────────┘