Original: Routing configuration Practice two LAN hosts interconnect VM Linux

Source: Internet
Author: User
Tags uuid

It's time for a big holy lecture. I believe that the network is essential for every operator and developer to get in touch today, we're talking about the three virtual machines in VM virtual machines divide two LAN to realize the interconnection of different local area networks that is, the AC through the B host is communicating with each other instead of through the network. Here are the requirements and topics

Routing Configuration Practices:

01. Network Information for the server needs to be configured according to the topology

02. Need to have Linux server 01 access to Linux Server 03, via Linux server 02

Transform Linux server 02 into a single router

03. Implement test methods that linux01 and linux03 can access each other, and prove that the host is interoperable through traceroute

Description: Implement the route configuration project practice according to the route command above

Let's take a look at this diagram to get the following information

A machine: 10.0.0.10/2

Gateway: 10.0.0.254

Machine B: 10.0.0.11/24

Gateway: 10.0.0.254

10.0.1.11/24

Gateway: 10.0.1.254

C Machine: 10.0.1.11/24

Gateway: 10.0.1.254

The first idea to do this question is

First processing of the source host we need a small white machine to avoid conflicts such as Mac if you directly clone your current machine you will be in the clone of the network card after the restart to find Mac error specific errors you can try

Do three ABC three virtual machines here to connect clones

modifying virtual networks for VMS

Networks for ABC, respectively

Make a Xshell connection

Renamed

Perform test processing

One: processing the source host

Before cloning in

Use the following command

Vim/etc/sysconfig/network-scripts/ifcfg-eth0

The two lines of the MAK address and UUID are removed from the

The effect after deletion

[Email protected] ~]# >/etc/udev/rules.d/70-persistent-net.rules

Immediately after emptying this file to execute the above command without an error is correct

This is a network rule configuration file

[[email protected] ~]# echo ' >/etc/udev/rules.d/70-persistent-net.rules ' >>/etc/s ' >>/etc/rc.local

Then write this command to

This is to write the above command to boot from

[Email protected] ~]# shutdown-h now
Shutdown for cloning

The operation on the source host is here.

Two VM handling 1 we're cloning.

Right-click the server you want to clone select Manage clones

2 operations on the Virtual network editor

The arrows are not the same place please follow my instructions

Operation on B

Operation on C machine

Operations on Virtual machines 1 to a host

For b Operations

New eth1

3 to C machine

Three-to-whole network optimization

The establishment of a network segment for a host

Network segment effective

Modify B to make the second NIC effective

Here's the command.

Vim/etc/sysctl.conf

This file is changed from 9 lines 0 to 1

Let's make the changes take effect now

Set the C

If this does not set it will produce a to C send data but no reply so to set

Network segment effective

Five successes of the horn

Thank you for reading this studio's documentation for your understanding of this document please contact this studio staff

This document has a pit attentive little buddy will find so please check carefully

Here's a question for you. Whether the UUID and Mac that you just started removing will be considered in the post-generation

If you do not understand can contact me directly QQ1091156119

Original: Routing configuration Practice two LAN hosts interconnect VM Linux

Related Article

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.