标签:inux ifcfg prot name div none sysconf uid script
Linux网络配置
使用DHCP自动获取IP
终端中执行:
vim /etc/sysconfig/network-scripts/ifcfg-ens33
修改
TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=dhcp DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=ens33 UUID=2c627524-cd5b-4a84-9294-c35421840fca DEVICE=ens33 ONBOOT=yes
保存,重启网络服务,终端中执行:
service network restart
标签:inux ifcfg prot name div none sysconf uid script
原文地址:https://www.cnblogs.com/mrma/p/12843047.html