1. on Linux, set the IP address and other information on the ifcfg-eth0
The detailed configuration information is as follows:
[Root @ rac01 Desktop] # more/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE = eth0 BOOTPROTO = none NM_CONTROLLED = yes ONBOOT = no TYPE = Ethernet UUID = 3d5f18d5-73e0-48db-acbb-67d3ee8b332f IPADDR = 192.168.171.150 PREFIX = 24 |
2. invalid IP Address
(1) ifconfig: View eth0 Nic information and find that the IP address does not take effect
[Root @ rac01 Desktop] # ifconfig eth0 Eth0 Link encap: Ethernet HWaddr 00: 0C: 29: 84: F2: 24 Inet6 addr: fe80: 20c: 29ff: fe84: f224/64 Scope: Link Up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 6 errors: 0 dropped: 0 overruns: 0 carrier: 0 Collisions: 0 FIG: 1000 RX bytes: 0 (0.0 B) TX bytes: 468 (468.0 B) |
The problem is strange, clearly in the ifcfg-eth0 file set IP address 192.168.171.150, why is the system can not get the IP address.
(2) ping another IP address and report the following error:
[Root @ rac01Desktop] # ping 192.168.171.180
Connect: Network is unreachable
(3) the network service restarts and the system prompts that the NIC is not active.
[Root @ rac01 network-scripts] # service network restart Shutting down interface eth0: Error: Device 'eth0' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active [FAILED] Shutting down loopback interface: [OK] Bringing up loopback interface: [OK] |
3. Problem Analysis
Judging from the three points in section 2nd, it is basically determined that the NIC is not started.
4. Handling and solving
[Root @ rac01 Desktop] # ifup ifcfg-eth0 Active connection state: activated Active connection path:/org/freedesktop/NetworkManager/ActiveConnection/1 [Root @ rac01 Desktop] # ifconfig eth0 Eth0 Link encap: Ethernet HWaddr 00: 0C: 29: 84: F2: 24 Inet addr: 192.168.171.150 Bcast: 192.168.171.255 Mask: 255.255.255.0 Inet6 addr: fe80: 20c: 29ff: fe84: f224/64 Scope: Link Up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 1 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 44 errors: 0 dropped: 0 overruns: 0 carrier: 0 Collisions: 0 FIG: 1000 RX bytes: 82 (82.0 B) TX bytes: 7277 (7.1 KiB) |
At this point, the NIC is working properly.
Author: Click
Join the system performance optimization professional group to discuss performance optimization technologies. GROUP: 258187244