您好,登录后才能下订单哦!
这篇文章主要讲解了“如何实现centos复制克隆改网卡”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“如何实现centos复制克隆改网卡”吧!
1.备份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
2.修改配置文件
[root@SRD999 rules.d]# vi 70-persistent-net.rules
删掉eth0那行
将eth2改成eth0
修改前
修改后
删掉eth0那行
将eth2改成eth0
修改etc/sysconfig/network-scripts/ifcfg-eth0 将HWADDR改成上面那个信息,就是MAC地址,并配置IP地址等信息
[root@SRD999 /]#vi etc/sysconfig/network-scripts/ifcfg-eth0
更改前
更改后
重启网卡
[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 /]#
安装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 1:0.17-48.el6 will be installed
---> Package telnet-server.x86_64 1: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 备份
[root@SRD999 xinetd.d]# vi telnet
[root@SRD999 xinetd.d]#
将disable改成no
修改前
修改后
重启服务
[root@SRD999 /]#service xinetd restart
Stopping xinetd: [FAILED]
Starting xinetd: [ OK ]
[root@SRD999 /]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@SRD999 /]#
开放防火墙后就可以通过telnet登录系统了
感谢各位的阅读,以上就是“如何实现centos复制克隆改网卡”的内容了,经过本文的学习后,相信大家对如何实现centos复制克隆改网卡这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。