2015-10-16

[SOLVED]VMWARE IMAGE CLONE WITH PROBLEM - CENTOS ONLY

20:26 27/03/2015
VMWARE IMAGE CLONE WITH PROBLEM
################################
Cấu hình địa chỉ IP cho CENTOS:
Địa chỉ IP có thể nằm trong các vị trí sau:
    /etc/sysconfig/networking/ifcfg-eth0
    /etc/sysconfig/networking/ifcfg-eth1
hoặc:
    /etc/sysconfig/network-scripts/ifcfg-eth0
    /etc/sysconfig/network-scripts/ifcfg-eth1

################################
Xac dinh new MAC:
#ip a s
    vd:
    vmnet0: 00:0C:29:0A:ED:5F | 00:0C:29:7A:A1:FC
    vmnet1: 00:0C:29:0A:ED:69 | 00:0C:29:7A:A1:06
#
Add MAC moi vao: /etc/sysconfig/networking/ifcfg-eth0 , /etc/sysconfig/networking/ifcfg-eth1
#
#
#echo "HWADDR=00:50:56:2F:9C:38" >> /etc/sysconfig/network-scripts/ifcfg-eth0
#echo "HWADDR=00:50:56:3D:AB:A2" >> /etc/sysconfig/network-scripts/ifcfg-eth1
(COMMENT HWADDR lai)
#
#Backup:
#cp /etc/udev/rules.d/70-persistent-net.rules /opt/
#nano /etc/udev/rules.d/70-persistent-net.rules
    TÌM MAC ADDR CŨ: XOÁ
    TÌM MAC ADDR MỚI: chỉnh đúng eth0, eth1
#Reboot:
reboot
####################
#cat /etc/sysconfig/networking/devices
trong thu muc [devices] co cac file tuong ung voi cac card mang;
ex: ifcfg-eth0, ifcfg-eth2, ...
AUTO:
    DEVICE=eth0
    BOOTPROTO=dhcp
    HWADDR=
    ONBOT=yes
MANUAL:
    DEVICE=eth0
    BOOTPROTO=none
    HWADDR=00:0C:29:DE:94:8B
    ONBOOT=yes
    TYPE=Ethernet
    USERCTL=no
    IPV6INIT=no
    PEERDNS=yes
    IPADDR=192.168.0.100
    NETMASK=255.255.255.0
    GATEWAY=192.168.0.1   

No comments:

Post a Comment