首页 > 代码库 > Linux克隆如何修改ip~简单教学

Linux克隆如何修改ip~简单教学

关于克隆之后ip冲突和机器名sid冲突.如何修改?

下面为大家解惑~

或许很简单,但是不积跬步无以至千里,不积小流无以成江海!

首先作为一个专业作者,必须显示出你的专业水平,要进行查看版本.

实验开始:

实验环境

操作系统安装

[root@localhost ~]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.4 (Santiago)

 

[root@localhost ~]# uname -a

Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST                                                                                                                                                             2013 x86_64 x86_64 x86_64 GNU/Linux

 

[root@localhost ~]# cd /etc/sysconfig/network-scripts/

 

[root@localhost network-scripts]# ls

ifcfg-eth0  ifdown       ifdown-eth   ifdown-ipv6  ifdown-post  ifdown-routes  ifdown-tunnel  ifup-aliases  ifup-eth   ifup-ipv6  ifup-plip   ifup-post  ifup-routes  ifup-tunnel    init.ipv6-global  network-functions

ifcfg-lo    ifdown-bnep  ifdown-ippp  ifdown-isdn  ifdown-ppp   ifdown-sit     ifup           ifup-bnep 

 

 

[root@localhost network-scripts]# mv ifcfg-eth0 ifcfg-eth1

 

 

[root@localhost network-scripts]# vi ifcfg-eth1

DEVICE="eth1"

BOOTPROTO="static"

NM_CONTROLLED="yes"

ONBOOT="yes"

TYPE="Ethernet"

IPADDR=192.168.188.111

NETMASK=255.255.255.0

GATEWAY=192.168.188.2

 

[root@localhost network-scripts]# service network restart

Shutting down interface eth1:                              [  OK  ]

Shutting down loopback interface:                          [  OK  ]

Bringing up loopback interface:                            [  OK  ]

下面就是成功了~~

谢谢观赏~下面还有更精彩~

关注一下后续吧~

本文出自 “李景祥” 博客,请务必保留此出处http://9283898.blog.51cto.com/9273898/1548484

Linux克隆如何修改ip~简单教学