RHEL7/CentOS7配置接口IP信息

Linux技术 技术 最近更新

nmcli device

nmcli connection

nmcli connection modify eth0 ipv4.addresses 172.24.8.10/24 ipv4.gateway 172.24.6.254 ipv4.dns 172.24.8.254 ipv4.dns-search group8.example.com ipv4.method manual connection.autoconnect yes connection.interface-name eth0

nmcli connection reload

nmcli connection down eth0
nmcli connection up eth0

ping