linux静态IP最简配置

vi /etc/sysconfig/network-scripts/ifcfg-xxx

TYPE="Ethernet"
BOOTPROTO="static"
ONBOOT="yes"
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=114.114.114.114

posted @ 2019-03-26 18:20  成宇佳  阅读(503)  评论(0编辑  收藏  举报