您的当前位置:首页 --> CentOS入门 |
centos7网络修改命令 |
浏览次数:1970 关键词 ( 命令 网络 ) |
1.修改主机名命令#hostnamectl set-hostname localhostname 2.修改配置文件/etc/hostname 3.图形方式修改IP地址命令#nm-connection-editor 4.直接命令修改 #nmcli connection modify eth0 ipv4.addresses "192.168.100.20/24" #nmcli connection modify eth0 ipv4.gateway "192.168.100.1" #nmcli connection modify eth0 ipv4.dns1 "8.8.8.8" 5.配置文件修改#vim /etc/sysconfig/networking-scripts/ifcfg-eth0在文件后添加
IPADDR=192.168.163.128 |
下一条 centos系统中网络配置相关 上一条 centos7忘记root密码重置 |
数千企业与站长的选择,7*24小时稳定运行
了解更多套餐详细