[Linux配置]Linux配置ip
1 vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 HWADDR=00:0C:29:1C:A1:3B TYPE=Ethernet ONBOOT=yes BOOTPROTO=static DNS1=192.168.139.2 IPADDR=192.168.139.131 NETMASK=255.255.255.0 GATEWAY=192.168.139.2
1 vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 HWADDR=00:0C:29:1C:A1:3B TYPE=Ethernet ONBOOT=yes BOOTPROTO=static DNS1=192.168.139.2 IPADDR=192.168.139.131 NETMASK=255.255.255.0 GATEWAY=192.168.139.2