Router configuration practice teaches you how to communicate with each other on three hosts in Linux in two network segments

Source: Internet
Author: User
Tags uuid

Hello, everyone. I am your holy Grail.

It's time for you to explain to everyone in the Holy Grail.

Today, I'm taking you on a big project, you believe it or not.

If you accidentally open this document, I hope you'll be able to read this post for two days, so please respect my labor and pretend to finish it. Crossing, thank you.

First, you are welcome to Watch the operation steps

We're officially starting.

Topic:

Routing Configuration Practices:

The network information of the server needs to be configured according to the topology

the Linux Server needs to be accessible to Linux servers. To access

transforms a Linux server into a single router

To implement the test methods that linux01 and linux03 can access each other, the traceroute proves that the hosts are interoperable

Description: Implement the Route Configuration project practice According to the route command above

Let's look at this chart first get the following information

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/03/D4/wKiom1mhOPDQL-_bAAEH4b9renY179.png "title=" 1.png "alt=" Wkiom1mhopdql-_baaeh4b9reny179.png "/>

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

do the problem. The first idea is

Process the source host first We need a little white machine . to avoid conflicts such as Macs if you directly clone your current machine you will be in the Clone Computer Configuration network card Restart when the mac error specific errors you can try

do three of ABC three virtual machines connect clones here

Modify virtual network for VMS

separately for Network of ABC

make a xshell connection

Renamed

to test processing

a : Processing the source host

Before cloning in

Use the following command

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

deleted in Mak Address and UUID these two lines

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A2/85/wKioL1mhOPjw_QgxAAAnZtP7MX0082.png-wh_500x0-wm_ 3-wmp_4-s_1337578614.png "title=" 2.png "alt=" Wkiol1mhopjw_qgxaaanztp7mx0082.png-wh_50 "/>


The effect after deletion

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

immediately after emptying the file to execute the above command It's right without an error.

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 theVmthe processing1now we're cloning .

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

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/A2/85/wKioL1mhOSOTo8lfAAAeT1_YYag156.png-wh_500x0-wm_ 3-wmp_4-s_3290025049.png "title=" 3.png "alt=" Wkiol1mhosoto8lfaaaet1_yyag156.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/A2/85/wKioL1mhOTGBMigkAAAtn9HCOAM460.png-wh_500x0-wm_ 3-wmp_4-s_3597944081.png "title=" 4.png "alt=" Wkiol1mhotgbmigkaaatn9hcoam460.png-wh_50 "/>

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/03/D4/wKiom1mhOVGxtjsXAAAlwVdk29g707.png-wh_500x0-wm_ 3-wmp_4-s_2129815875.png "title=" 5.png "alt=" Wkiom1mhovgxtjsxaaalwvdk29g707.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/03/D4/wKiom1mhOWPT38r8AAAWKJAY4uw559.png-wh_500x0-wm_ 3-wmp_4-s_1472042538.png "title=" 6.png "alt=" Wkiom1mhowpt38r8aaawkjay4uw559.png-wh_50 "/>


2operations on the Virtual network editor

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/03/D4/wKiom1mhO-njfwSFAADC0WhH6qM189.jpg-wh_500x0-wm_ 3-wmp_4-s_2131767700.jpg "title=" 7.jpg "alt=" Wkiom1mho-njfwsfaadc0whh6qm189.jpg-wh_50 "/>

The arrows are not the same place please follow my instructions.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/A2/85/wKioL1mhO-eQoPtrAAAxnRokZVs168.png-wh_500x0-wm_ 3-wmp_4-s_4161787130.png "title=" 8.png "alt=" Wkiol1mho-eqoptraaaxnrokzvs168.png-wh_50 "/>

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/A2/85/wKioL1mhO_eB1cQRAADYFdPofwA228.jpg-wh_500x0-wm_ 3-wmp_4-s_3445806006.jpg "title=" 9.jpg "alt=" Wkiol1mho_eb1cqraadyfdpofwa228.jpg-wh_50 "/>

the operation of B

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/A2/85/wKioL1mhPC2QarFnAABhZG4dcSM090.png-wh_500x0-wm_ 3-wmp_4-s_599324339.png "title=" 10.png "alt=" Wkiol1mhpc2qarfnaabhzg4dcsm090.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/03/D4/wKiom1mhPEqQMtwoAAArgM0Rpww073.png-wh_500x0-wm_ 3-wmp_4-s_3857002878.png "title=" 11.png "alt=" Wkiom1mhpeqqmtwoaaargm0rpww073.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/03/D4/wKiom1mhPGCiH9cEAABptjhASZo779.png-wh_500x0-wm_ 3-wmp_4-s_3185106318.png "title=" 13.png "alt=" Wkiom1mhpgcih9ceaabptjhaszo779.png-wh_50 "/>

the C Machine Operation

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/03/D4/wKiom1mhPL6TE_pRAABptjhASZo629.png-wh_500x0-wm_ 3-wmp_4-s_2327564043.png "title=" 13.png "alt=" Wkiom1mhpl6te_praabptjhaszo629.png-wh_50 "/>

three operations on virtual machines1theAHost

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/A2/85/wKioL1mhPPXRWfF9AAAkqzpfWHg514.png-wh_500x0-wm_ 3-wmp_4-s_3184925845.png "title=" 14.png "alt=" Wkiol1mhppxrwff9aaakqzpfwhg514.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/03/D4/wKiom1mhPRCDTZxzAAAH-LeokhQ375.png-wh_500x0-wm_ 3-wmp_4-s_2759972208.png "title=" 15.png "alt=" Wkiom1mhprcdtzxzaaah-leokhq375.png-wh_50 "/>


650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/A2/85/wKioL1mhPSGAx3tpAAAH-LeokhQ850.png-wh_500x0-wm_ 3-wmp_4-s_1639560851.png "style=" Float:none; "title=" 15.png "alt=" Wkiol1mhpsgax3tpaaah-leokhq850.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/03/D5/wKiom1mhPS_BNWwVAAAIEFw5hug492.png-wh_500x0-wm_ 3-wmp_4-s_2657527508.png "style=" Float:none; "title=" 16.png "alt=" Wkiom1mhps_bnwwvaaaiefw5hug492.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/03/D5/wKiom1mhPTDQNEW8AAAUW-KW9AA610.png-wh_500x0-wm_ 3-wmp_4-s_2639059601.png "style=" Float:none; "title=" 17.png "alt=" Wkiom1mhptdqnew8aaauw-kw9aa610.png-wh_50 "/>

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/A2/85/wKioL1mhPSKQPyAsAAAH22I06n0375.png-wh_500x0-wm_ 3-wmp_4-s_3734065350.png "style=" Float:none; "title=" 18.png "alt=" Wkiol1mhpskqpyasaaah22i06n0375.png-wh_50 "/>

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/03/D5/wKiom1mhPTGD-jahAAAWHpdd2jE389.png-wh_500x0-wm_ 3-wmp_4-s_1710145261.png "style=" Float:none; "title=" 19.png "alt=" Wkiom1mhptgd-jahaaawhpdd2je389.png-wh_50 "/>


2 operation of the B -Machine

New eth1




650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/A2/85/wKioL1mhPVbzSU4JAAA9d5hGObs980.png-wh_500x0-wm_ 3-wmp_4-s_2001067886.png "style=" Float:none; "title=" 20.png "alt=" Wkiol1mhpvbzsu4jaaa9d5hgobs980.png-wh_50 "/>

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/03/D5/wKiom1mhPWaBZAzcAAAf5R6q_E8466.png-wh_500x0-wm_ 3-wmp_4-s_3187833349.png "style=" Float:none; "title=" 22.png "alt=" Wkiom1mhpwabzazcaaaf5r6q_e8466.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A2/85/wKioL1mhPVfBHL7sAAAcU3KoeMs009.png-wh_500x0-wm_ 3-wmp_4-s_2226195532.png "style=" Float:none; "title=" 23.png "alt=" Wkiol1mhpvfbhl7saaacu3koems009.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A2/85/wKioL1mhPVjTscAgAABbB0P6sZk021.png-wh_500x0-wm_ 3-wmp_4-s_385992572.png "style=" Float:none; "title=" 24.png "alt=" Wkiol1mhpvjtscagaabbb0p6szk021.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/03/D5/wKiom1mhPWfTgVm8AAAf0B_v0G4090.png-wh_500x0-wm_ 3-wmp_4-s_2170591371.png "style=" Float:none; "title=" 25.png "alt=" Wkiom1mhpwftgvm8aaaf0b_v0g4090.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/A2/85/wKioL1mhPVngNdbwAABaRCAv3TU134.png-wh_500x0-wm_ 3-wmp_4-s_4268788396.png "style=" Float:none; "title=" 26.png "alt=" Wkiol1mhpvngndbwaabarcav3tu134.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/03/D5/wKiom1mhPWiTF-U-AAAdwSIBA2I579.png-wh_500x0-wm_ 3-wmp_4-s_1394675154.png "style=" Float:none; "title=" 27.png "alt=" Wkiom1mhpwitf-u-aaadwsiba2i579.png-wh_50 "/>


3theCMachine




650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/A2/85/wKioL1mhPX3Qi7cZAAAzoXhIPEA348.png-wh_500x0-wm_ 3-wmp_4-s_282605455.png "style=" Float:none; "title=" 28.png "alt=" Wkiol1mhpx3qi7czaaazoxhipea348.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/03/D5/wKiom1mhPYzSiYAGAAAYwames4I544.png-wh_500x0-wm_ 3-wmp_4-s_1533960263.png "style=" Float:none; "title=" 29.png "alt=" Wkiom1mhpyzsiyagaaaywames4i544.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/A2/85/wKioL1mhPX-Tn3zBAAA-YOBmL58487.png-wh_500x0-wm_ 3-wmp_4-s_733280146.png "style=" Float:none; "title=" 30.png "alt=" Wkiol1mhpx-tn3zbaaa-yobml58487.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/03/D5/wKiom1mhPY7REquHAAAcJ-f3y18822.png-wh_500x0-wm_ 3-wmp_4-s_2451667966.png "style=" Float:none; "title=" 31.png "alt=" Wkiom1mhpy7requhaaacj-f3y18822.png-wh_50 "/>


three optimized for the entire network

the A host for network segment establishment

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/A2/85/wKioL1mhPZizpgWKAAAeloxnxXo984.png-wh_500x0-wm_ 3-wmp_4-s_2284442088.png "style=" Float:none; "title=" 37.png "alt=" Wkiol1mhpzizpgwkaaaeloxnxxo984.png-wh_50 "/>

Network segment effective

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/03/D5/wKiom1mhPaegEDJ8AAA0sl56uN4129.png-wh_500x0-wm_ 3-wmp_4-s_2567428256.png "style=" Float:none; "title=" 39.png "alt=" Wkiom1mhpaegedj8aaa0sl56un4129.png-wh_50 "/>

the B make changes to make the second NIC effective

Here's the command.

Vim/etc/sysctl.conf

This file is changed from 9 lines 0 to 1

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/A2/85/wKioL1mhPfbidN5KAABpfI8XjYU072.png-wh_500x0-wm_ 3-wmp_4-s_2488141724.png "style=" Float:none; "title=" 35.png "alt=" Wkiol1mhpfbidn5kaabpfi8xjyu072.png-wh_50 "/>

Let's make the changes take effect now

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/A2/85/wKioL1mhPfeDGsC8AABRB0iU-u8652.png-wh_500x0-wm_ 3-wmp_4-s_2379794352.png "style=" Float:none; "title=" 36.png "alt=" Wkiol1mhpfedgsc8aabrb0iu-u8652.png-wh_50 "/>

set the C

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/03/D5/wKiom1mhPinT74axAAAeloxnxXo995.png-wh_500x0-wm_ 3-wmp_4-s_2742524730.png "title=" 37.png "alt=" Wkiom1mhpint74axaaaeloxnxxo995.png-wh_50 "/>

If this is not set it will produce A to C send data but no reply so to set

Network segment effective

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/A2/85/wKioL1mhPizC5T2ZAAA0sl56uN4303.png-wh_500x0-wm_ 3-wmp_4-s_248664261.png "title=" 39.png "alt=" Wkiol1mhpizc5t2zaaa0sl56un4303.png-wh_50 "/>

Five the Horn of success

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/A2/85/wKioL1mhPkCCsYMQAABlxfiKS2s431.png-wh_500x0-wm_ 3-wmp_4-s_3130963638.png "style=" Float:none; "title=" 40.png "alt=" Wkiol1mhpkccsymqaablxfiks2s431.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/03/D5/wKiom1mhPk-yZrW9AABL2d3ppmw219.png-wh_500x0-wm_ 3-wmp_4-s_990297040.png "style=" Float:none; "title=" 41.png "alt=" Wkiom1mhpk-yzrw9aabl2d3ppmw219.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/A2/85/wKioL1mhPkKjncsoAABlxfiKS2s785.png-wh_500x0-wm_ 3-wmp_4-s_3165789045.png "style=" Float:none; "title=" 43.png "alt=" Wkiol1mhpkkjncsoaablxfiks2s785.png-wh_50 "/>

Thank you for looking at my technical blog

This document has a pit a careful little partner will find so please check carefully

I can't find it, and it doesn't affect your operation. Please don't be afraid of this. Friendship reminds the pit is related to the number 200.

leave a question for you here. just beginning to delete the Whether UUID and mac will be generated in the post-generation think about


This article is from the "13029592" blog, please be sure to keep this source http://13039592.blog.51cto.com/13029592/1959569

Router configuration practice teaches you how to communicate with each other on three hosts in Linux in two network segments

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.