Linux Fundamentals (network management, configuring virtual machines, and configuring Yum sources)

Source: Internet
Author: User

First, the Linux Network Foundation

1. Change IP
Nm-connection-editor Modifying IP



2. Querying IP
Ifconfig eth0 view virtual machine IP

IP addr Show br0 view real IP


3. Configure the host as a router
Ping 172.25.254.111 to see if they can communicate
What is a router
is NAT
NAT is a network address translation, which is divided into source address translation and destination address translation
Data that the gateway uses to receive Internet access
(1) Turn on the firewall
Because the firewall conflicts with Libvirtd.service, you must first close LIBVIRTD, then turn on the firewall, and then open the Libvirtd.service, add the Firewall Spoofing Service (masquerade)

Systemctl Stop Libvirtd.service-close Libvirtd.service
Systemctl Restart Firewalld-restart firewall
Systemctl Stop Libvirtd.service--open Libvirtd.service
Firewall-cmd--add-masquerade--Add camouflage
Firewall-cmd--list-all-query masquerading is turned on, yes is on
(2) Configuring the Virtual machine gateway
Go to Network working directory

Modify the network configuration file '

Save exit
Restart Network

Nboot when network activation is
Bootproto NIC is static mode

Second, configure the virtual machine

(1) Open the virtual Machine Manager

(2) Select Add Virtual machine

Select Next

Mouse click Browser

Select Browserlocal

Locate the Mirror

Give memory to 8g

Name the virtual machine

Select the top one to install
Note: When this page appears, you must press the up and down keys to prevent the default installation of the second

System language selection English or Chinese

Select time zone (i.e. date&time) (China time can only select Shanghai)


Select keyboard Input language

Select Memory Partition (insatllation)
Boot to 200

Swap to 500

All the rest to the root directory


Select a graphical interface (software)

Select Start Installation

User name and password can be set at this time

To set the root user password

Complete the installation

(3) Virtual machine boot
Select language after boot

(4) Modifying the virtual machine IP
Enter the working directory of the Virtual Machine Network Service
And show all the files inside.

Configure IP (delete first, add in)


Virtual machine IP plus 100 for real machine IP
The gateway is the real machine IP
Configure DNS
DNS is a domain name resolution that resolves our well-known domain name to a complex IP address

\
\

Create two directories first: ISO and rhe17.3----mkdir/iso/rhe17.3
Find the destination file: Find/-name *.iso
Move the virtual machine image to the ISO directory: MV image file Address/iso
Mount the image file to rhe17.3:moute/iso/rhel-server-7.3x86--64-dvd.iso/rhe17.3
View image file: ls/rhe17.3
Apaqi file Sharing
~
~

Linux Fundamentals (network management, configuring virtual machines, and configuring Yum sources)

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.