标签:
[root@hadoop03 gongice]# ifconfig eth0 192.168.153.11 [root@hadoop03 gongice]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:2C:DF:3D inet addr:192.168.153.11 Bcast:192.168.153.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe2c:df3d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:869 errors:0 dropped:0 overruns:0 frame:0 TX packets:54 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:73397 (71.6 KiB) TX bytes:6589 (6.4 KiB) 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:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 b) TX bytes:480 (480.0 b) [root@hadoop03 gongice]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 TYPE=Ethernet UUID=cf758f2c-c53c-4b40-a63e-6bf9cebe39ca ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0" HWADDR=00:0C:29:2C:DF:3D IPADDR=192.168.153.11 PREFIX=24 GATEWAY=192.168.153.2 [root@hadoop03 gongice]# service network restart [root@hadoop03 gongice]# /etc/init.d/network restart
标签:
原文地址:http://www.cnblogs.com/gongice/p/4337379.html