日期:2014-05-16 浏览次数:20821 次
若要实现IP别名或者多网卡绑定,需要将此禁用
[root@localhost ~]# service NetworkManager stop 停止 NetworkManager 守护进程: [确定] [root@localhost ~]# chkconfig NetworkManager off [root@localhost ~]# service NetworkManager status NetworkManager is stopped
[root@localhost ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:0C:29:5E:10:AB inet addr:192.168.1.112 Bcast:255.255.255.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1 RX packets:520 errors:0 dropped:0 overruns:0 frame:0 TX packets:287 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:82430 (80.4 KiB) TX bytes:35734 (34.8 KiB) [root@localhost ~]# ip addr add 192.168.1.200/24 dev eth0 label eth0:0 [root@localhost ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:5E:10:AB inet addr:192.168.1.112 Bcast:255.255.255.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1 RX packets:700 errors:0 dropped:0 overruns:0 frame:0 TX packets:395 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:105711 (103.2 KiB) TX bytes:48168 (47.0 KiB) eth0:0 Link encap:Ethernet HWaddr 00:0C:29:5E:10:AB inet addr:192.168.1.200 Bcast:0.0.0.0 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1