Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize centos replication and Clone to change Network Card

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to achieve centos replication and cloning to change the network card". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to achieve centos replication and cloning to change the network card".

1. Backup etc/udev/rules.d/70-persistent-net.rules

[root@SRD999 /] # cd etc/udev/rules.d/

[root@SRD999 rules.d] # ls

60-fprint-autosuspend.rules 70-persistent-net.rules 98-kexec.rules

60-pcmcia.rules 90-alsa.rules 99-fuse.rules

60-raw.rules 90-hal.rules

70-persistent-cd.rules 97-bluetooth-serial.rules

[root@SRD999 rules.d] # cp 70-persistent-net.rules 70-persistent-net.rules.bak

two。 Modify the configuration file

[root@SRD999 rules.d] # vi 70-persistent-net.rules

Delete the eth0 line.

Change eth2 to eth0

Before modification

After modification

Delete the eth0 line.

Change eth2 to eth0

Modify etc/sysconfig/network-scripts/ifcfg-eth0 to change HWADDR to the above information, that is, MAC address, and configure IP address and other information.

[root@SRD999 /] # vi etc/sysconfig/network-scripts/ifcfg-eth0

Before Chan

After Chan

Restart the network card

[root@SRD999 /] # service network restart

Shutting down loopback interface: [OK]

Bringing up loopback interface: [OK]

Bringing up interface eth0: Active connection state: activated

Active connection path: / org/freedesktop/NetworkManager/ActiveConnection/1

[OK]

[root@SRD999 /] #

Install telnet

[root@SRD999 /] # yum-y install telnet*

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirrors.opencas.cn

* extras: mirrors.zju.edu.cn

* updates: mirrors.zju.edu.cn

Setting up Install Process

Resolving Dependencies

-> Running transaction check

-> Package telnet.x86_64 1RU 0.17-48.el6 will be installed

-> Package telnet-server.x86_64 1RU 0.17-48.el6 will be installed

-- > Processing Dependency: xinetd for package: 1:telnet-server-0.17-48.el6.x86_64

-> Running transaction check

...

[root@SRD999 /] # cd etc/xinetd.d

[root@SRD999 xinetd.d] # ls

Chargen-dgram daytime-stream echo-dgram tcpmux-server time-stream

Chargen-stream discard-dgram echo-stream telnet

Daytime-dgram discard-stream rsync time-dgram

[root@SRD999 xinetd.d] # cp telnet telnet.bak backup

[root@SRD999 xinetd.d] # vi telnet

[root@SRD999 xinetd.d] #

Change disable to no

Before modification

After modification

Restart the service

[root@SRD999 /] # service xinetd restart

Stopping xinetd: [FAILED]

Starting xinetd: [OK]

[root@SRD999 /] # service xinetd restart

Stopping xinetd: [OK]

Starting xinetd: [OK]

[root@SRD999 /] #

After opening the firewall, you can log in to the system through telnet.

Thank you for your reading, the above is the content of "how to achieve centos replication and cloning to change the network card". After the study of this article, I believe you have a deeper understanding of how to achieve centos replication and cloning to change the network card, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report