linux网卡配置

331 阅读1分钟

修改/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
ONBOOT=yes