First, open/etc/udev/rules.d/70-persistent-net.rules, as shown in the following example:
vim /etc/udev/rules.d/70-persistent-net.rules
Record the mac address 00:15:5d:00:03:01 of the eth1 NIC
Next, open theĀ /etc/sysconfig/network-scripts/ifcfg-eth0
vim /etc/sysconfig/network-scripts/ifcfg-eth0
Change device = eth0 “to device = eth1”,
change hwaddr = 00:15:5d:00:03:01 “to MAC address hwaddr = 00:15:5d:00:04:01”
Finally, restart the network
service network restart
Done!
Similar Posts:
- [How to Solve] Device eth0 does not seem to be present
- Job for network.service failed because the control process exited with error code [How to Solve]
- Bringing up interface eth0: Error: No suitable device found: no device found for connection ‘System eth0’. [FAILED]
- CentOS 7 network could not retrieve error [Solved]
- CentOS7 Failed to start LSB: Bring up/down networking. [How to Solve]
- Solve the IP assignment prompt error, some other host already use address
- Linux: CentOS 7 executes service network restart error [Solved]
- CentOS7 Failed to start LSB: Bring up/down [How to Solve]
- [Solved] VMware Modify network.service Error: LSB: Bring up/down networking
- Solve the problem of could not retrieve mirrorlist in centos7 yum