CentOS7 Configuring the network card virtual machine Mount CD set up local Yum source Modify host Name

Source: Internet
Author: User

Environment: VMware System: centos-7.0-1406-x86_64-everything

First, configure the network card

    1. 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

  1. Mount Disc MOUNT/DEV/SR0/MNT

  2. 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

  3. 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

  4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.