RHEL7.0 网络环境配置
### 系统环境:
RHEL7.0 x86_64
### 用户: root
### Mail: 470597995@qq.com
查看所有 connection
# nmcli connection show
设置ipv4 地址、子网掩码、网关
# nmcli connection modify "System eth0" ipv4.addresses '148.20.51.196/24 148.20.51.254'
设置ipv4 的DNS
# nmcli connection modify "System eth0" ipv4.dns 148.20.23.5
设置为 manual 模式
# nmcli connection modify "System eth0" ipv4.method manual
启动 System eth0 服务
# nmcli connection up "System eth0"
查看网络配置
# ifconfig