IP配置
[root@eegooserver3 ~]# ifconfig
lo??????? Link encap:Local Loopback?
????????? inet addr:127.0.0.1? Mask:255.0.0.0
????????? inet6 addr: ::1/128 Scope:Host
????????? UP LOOPBACK RUNNING? MTU:16436? Metric:1
????????? RX packets:0 errors:0 dropped:0 overruns:0 frame:0
????????? TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
????????? collisions:0 txqueuelen:0
????????? RX bytes:0 (0.0 b)? TX bytes:0 (0.0 b)
?
/etc/sysconfig/network-scripts/ifcfg-em1原始配置
[root@eegooserver3 ~]# vi /opt/network-scripts/ifcfg-em1
DEVICE="em1"
BOOTPROTO="dhcp"
HWADDR="D4:BE:D9:AF:ED:B1"
NM_CONTROLLED="yes"
ONBOOT="no"
TYPE="Ethernet"
UUID="2864b3f3-0a34-4c48-b3a2-a49df5f1a14d"
~
~
~
[root@eegooserver3 ~]# vi /etc/sysconfig/network-scripts/ifcfg-em1
DEVICE="em1"
BOOTPROTO="static"
HWADDR="D4:BE:D9:AF:ED:B1"
NM_CONTROLLED="yes"
ONBOOT="yes"
IPADDR="172.16.19.9"
NETMASK="255.255.0.0"
GATEWAY="172.16.19.254"
TYPE="Ethernet"
UUID="2864b3f3-0a34-4c48-b3a2-a49df5f1a14d"
~