Environment:
CentOS6 minimal install without XWindow
To permanent change the IP, Submask, DNS etc
Step 1: Configure Hostname
cd /etc/sysconfig
vi network
# Modify HOSTNAME:
HOSTNAME=myHostname
Step 2: Configure NIC
cd /etc/sysconfig/network-scripts
# There may have different filenames in different computers.
# But the naming rule is ifcfg-*
vi ifcfg-eth0
# Add the following K/V pair
# NIC name
DEVICE=LocalNIC
IPADDR=192.168.1.200
SUBMASK=255.255.255.0
GATEWAY=192.168.1.1
HWADDR=00:0C:29:42:59:92
NM_CONTROLLED=yes
# Turn this when you need this NIC enable when system startup
# If this option is NO. That means you can not access network by this NIC.
ONBOOT=yes
Step 3 : Configure DNS
cd /etc
vi resolv.conf
# Add the following K/V pair
# You can add most 3 DNS server here.
nameserver 8.8.8.8
nameserver 8.8.4.4
Step 4 : Reboot computer and check you network
To temporary change your network configuration you can use the following commands
Set IP address
ifconfig eth0 192.168.1.2 submask 255.255.255.0
Set gateway
route add default gw 192.168.1.1
Set DNS server
Ref Step 3
****************************************************************************
If you are using VMWare. The vm's MAC addr can not be changed like above.
Or you will be
You should modify the vm's ".vmx" file.
Find out the "Your_VM_Name.vmx" file in your vm dir.
Use text editor (Notepad or vi) open that file.
Locate those line:
ethernet0.generatedAddress = "00:0c:29:ea:00:72"
uuid.location = "56 4d 8b 23 04 2e b0 64-5f cd a3 12 c3 ea 00 72"
uuid.bios = "56 4d 8b 23 04 2e b0 64-5f cd a3 12 c3 ea 00 72"
The value of "ethernet0.generatedAddress" in this format "00:0c:29:??:??:??"
DO NOT change the first 6 chars!
For "uuid.bios", you can only change the last 6 char.
Set the same value as "ethernet0.generatedAddress"
Save this vmx file and start your vm. you will find the MAC had been changed.
分享到:
相关推荐
CentOS-7.2-x86_64-DVD-1511 CentOS-7.3-x86_64-DVD-1611 CentOS-7.4-x86_64-DVD-1708 CentOS-7.5-x86_64-DVD-1804 CentOS-7.6-aarch64-Everything-1810 CentOS-7.6-x86_64-DVD-1810 CentOS-7.7-x86_64-DVD-1908 ...
# CentOS-7-x86_64-DVD-1810.iso CentOS 7.6 DVD 版 4G http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso # CentOS-7-x86_64-Everything-1810.iso CentOS 7.6 Everything版 10G ...
CentOS 7.9版本(CentOS-7-aarch64-Everything-2009)适用于ARM64 (aarch64),必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-aarch64-Everything-2009.part09.rar ... CentOS-7-aarch64-Everything-...
CentOS 7.9版本(CentOS-7-aarch64-Everything-2009)适用于ARM64 (aarch64),必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-aarch64-Everything-2009.part09.rar ... CentOS-7-aarch64-Everything-...
CentOS-7.9- x86_64版本(CentOS-7-x86_64-DVD-2009)必须集齐五个文件才能一起解压缩使用,五个文件下载地址: CentOS-7-x86_64-DVD-2009.part5.rar https://download.csdn.net/download/weixin_43800734/20388029...
CentOS 7.9版本(CentOS-7-aarch64-Everything-2009)适用于ARM64 (aarch64),必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-aarch64-Everything-2009.part09.rar ... CentOS-7-aarch64-Everything-...
CentOS 7.9版本(CentOS-7-i386-Everything-2009)适用于i386,必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-i386-Everything-2009.part09.rar ... CentOS-7-i386-Everything-2009.part08.rar ...
CentOS-7-x86_64-DVD-1708文件分割成 五个 压缩包,必须集齐 五个 文件后才能一起解压一起使用: CentOS-7-x86_64-DVD-1708.part5.rar https://download.csdn.net/download/weixin_43800734/20350438 CentOS-7-x86...
CentOS-7-x86_64-DVD-1708文件分割成 五个 压缩包,必须集齐 五个 文件后才能一起解压一起使用: CentOS-7-x86_64-DVD-1708.part5.rar https://download.csdn.net/download/weixin_43800734/20350438 CentOS-7-x86...
CentOS 7.9版本(CentOS-7-aarch64-Everything-2009)适用于ARM64 (aarch64),必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-aarch64-Everything-2009.part09.rar ... CentOS-7-aarch64-Everything-...
CentOS 7.9版本(CentOS-7-aarch64-Everything-2009)适用于ARM64 (aarch64),必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-aarch64-Everything-2009.part09.rar ... CentOS-7-aarch64-Everything-...
CentOS 7.9版本(CentOS-7-x86_64-DVD-2009)必须集齐五个文件才能一起解压缩使用,五个文件下载地址: CentOS-7-x86_64-DVD-2009.part5.rar https://download.csdn.net/download/weixin_43800734/20388029 CentOS...
CentOS-7-x86_64-DVD-1708文件分割成 五个 压缩包,必须集齐 五个 文件后才能一起解压一起使用: CentOS-7-x86_64-DVD-1708.part5.rar https://download.csdn.net/download/weixin_43800734/20350438 CentOS-7-x86...
kubernetes-1.20.0-centos-7.9-deploy(New).zip,可以修改安装目录,并且可以安装在欧拉系kubernetes-1.20.0-centos-7.9-deploy(New).zip,可以修改安装目录,并且可以安装在欧拉系kubernetes-1.20.0-centos-7.9-...
CentOS 7.9版本(CentOS-7-aarch64-Everything-2009)适用于ARM64 (aarch64),必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-aarch64-Everything-2009.part09.rar ... CentOS-7-aarch64-Everything-...
CentOS 7.9版本(CentOS-7-i386-Everything-2009)适用于i386,必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-i386-Everything-2009.part09.rar ... CentOS-7-i386-Everything-2009.part08.rar ...
CentOS 6.9版本(CentOS-6.9-x86_64-bin-DVD)适用于Linux 64位,必须集齐7个文件才能一起解压缩使用,7个文件下载地址: CentOS-6.9-x86_64-bin-DVD.part7.rar ... CentOS-6.9-x86_64-bin-DVD.part6.rar ...
CentOS 7.9版本(CentOS-7-ppc64le-Everything-2009)适用于i386,必须集齐9个文件才能一起解压缩使用,9个文件下载地址: CentOS-7-ppc64le-Everything-2009.part09.rar ... CentOS-7-ppc64le-Everything-2009.part08...
CentOS-6.1-x86_64-bin-DVD1.iso CentOS-7-x86_64-bin-DVD2.iso CentOS-8.2-x86_64-bin-DVD1.iso 除DVD版还有各个minimal等版本提供高速下载 下载地址,提供了迅雷的高速下载通道,实测速度为31M/S,
CentOS-7-x86_64-DVD-1708文件分割成 五个 压缩包,必须集齐 五个 文件后才能一起解压一起使用: CentOS-7-x86_64-DVD-1708.part5.rar https://download.csdn.net/download/weixin_43800734/20350438 CentOS-7-x86...