Redhat 6.2, 2 Ethernet interface,2 IP addresses.
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:6A:47:AA
inet addr:192.168.1.162 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6a:47aa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1901 errors:0 dropped:0 overruns:0 frame:0
TX packets:798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:143990 (140.6 KiB) TX bytes:78270 (76.4 KiB)
eth2 Link encap:Ethernet HWaddr 00:50:56:37:70:21
inet addr:172.24.40.1 Bcast:172.24.40.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe37:7021/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:199 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18960 (18.5 KiB) TX bytes:1730 (1.6 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:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4836 (4.7 KiB) TX bytes:4836 (4.7 KiB)
After the command "service network restart", eth0 get the IP address for eth2, no IP address for eth2.
From the message log, we can see:
Dec 8 23:19:48 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 8 -> 3 (reason 39)
Dec 8 23:19:48 RHEL6-64 NetworkManager[1956]: (eth0): deactivating device (reason: 39).
Dec 8 23:19:48 RHEL6-64 NetworkManager[1956]: (eth2): device state change: 8 -> 3 (reason 39)
Dec 8 23:19:48 RHEL6-64 NetworkManager[1956]: (eth2): deactivating device (reason: 39).
Dec 8 23:19:48 RHEL6-64 NET[2474]: /etc/sysconfig/network-scripts/ifdown-post : updated /etc/resolv.conf
Dec 8 23:19:49 RHEL6-64 kernel: lo: Disabled Privacy Extensions
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) starting connection 'System eth0'
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 3 -> 4 (reason 0)
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 4 -> 5 (reason 0)
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 2 of 5 (Device Configure) successful.
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 5 -> 7 (reason 0)
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) started...
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) complete.
Dec 8 23:19:49 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) started...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 7 -> 8 (reason 0)
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Policy set 'System eth0' (eth0) as default for IPv4 routing and DNS.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) successful, device activated.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 8 -> 3 (reason 0)
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: (eth0): deactivating device (reason: 0).
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) starting connection 'System eth2'
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 3 -> 4 (reason 0)
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 4 -> 5 (reason 0)
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 2 of 5 (Device Configure) successful.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 5 -> 7 (reason 0)
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) started...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 4 of 5 (IP4 Configure Get) complete.
Dec 8 23:19:50 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) started...
Dec 8 23:19:51 RHEL6-64 NetworkManager[1956]: (eth0): device state change: 7 -> 8 (reason 0)
Dec 8 23:19:51 RHEL6-64 NetworkManager[1956]: Activation (eth0) successful, device activated.
Dec 8 23:19:51 RHEL6-64 NetworkManager[1956]: Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.
Reason:
A. Install desktop and NetworkManager
B. Edit the IP configuration via configuration file ifcfg-eth0 and ifcfg-eth2
Soluton:
Stop and disable service "NetworkManager".
chkconfig NetworkManager off
service NetworkManager stop
service network restart
Disadvantage:
Cannot edit network configuration via GUI.
More information:
)
阅读(991) | 评论(0) | 转发(0) |