Environment: VMware System: centos-7.0-1406-x86_64-everything
First, configure the network card
vim/etc/sysconfig/network-scripts/ifcfg-eno16777736
CENTOS7 network card name with the previous CENTOS6 name has a relatively large change, the original rules of the ETH0,ETH1 name Wood has!!
It looks awkward, so it's good to use table completion when editing the NIC
2. Modify the configuration
Type=ethernet
Bootproto=static
name=eno16777736
Onboot=yes
ipaddr=192.168.110.10
netmask=255.255.255.0
IPADDR represents address netmask Subnet Mask Gateway Gateways DNS1 basically the same as the previous name
System default NIC not booting to change the onboot to Yes
3. Start the network card
Mode 1.service network Start|restart usage in CENTOS6
Way 2.systemctl Restart Network.service
4. View the network card
If you use the most basic installation, you may not have the ifconfig command to use IP addr to view the ping test final confirmation
Second, mount the disc configuration local Yum source
Mount Disc MOUNT/DEV/SR0/MNT
Cd/etc/yum.repo.d/addresses are backed up
Centos-base.repo.bak Centos-debuginfo.repo.bak Centos-sources.repo.bak Centos-vault.repo.bak such a son
Create a Yum source directory
Vim Myrepo.repo
and add the path to the Yum source
[Myrepo]
name=centos-$releasever-myrepo
Baseurl=file:///mnt
Gpgcheck=0
Enabled=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5
Installation test is yum-y install tree
Three. Modify the host name
1.vim/etc/hostname Save reboot login hostname visible Change host name
CentOS7 Configuring the network card virtual machine Mount CD set up local Yum source Modify host Name