Simulation experiment of three-route Unicom

Source: Internet
Author: User

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/> Topology map 650) this.width=650; "Src=" Https://s3.51cto.com/wyfs02/M01/8E/FB/wKioL1jQzfaifhKoAAAqZsnsI5g178.png "title=" 1.png "width=" height= "228" Border= "0" hspace= "0" vspace= "0" style= "width:700px;height:228px;" alt= "Wkiol1jqzfaifhkoaaaqzsnsi5g178.png"/>

Operation Steps

One: Configure IP

A:ifconfig Ens33 172.100.0.100/16

Route add default GW 172.100.0.1

R1:ifconfig eth0 172.100.0.1/16

Ifconfig eth1 14.0.0.1/8

R2:ifconfig eth0 14.0.0.2/8

Ifconfig eth1 10.0.0.1/8

R3:ifconfig eth0 10.0.0.2/8

Ifconfig eth1192.168.0.1/24

B:ifconfig Ens33 192.168.0.100/24

Route add default GW 192.168.0.1

Two: Shut down the firewall of all machines

Iptables-f

Three: Open the R1 R2 machine routing function

Echo 1 >/PROC/SYS/NET/IPV4/IP_FORWD

Four: Add Route records

R1:route add-net 192.168.0.0/24 GW 14.0.0.2

Route add-net 10.0.0.0/8 GW 14.0.0.2

R2:route add-net 172.100.0.0/16 GW 14.0.0.2

Route add-net 192.168.0.1/24 GW 10.0.0.2

R3:route add-net 172.100.0.1/16 GW 10.0.0.1

Route add-net 14.0.0.0/8 GW 10.0.0.1

Note: Ifconfig added IP address may be lost, after the experiment if aping do not pass B please pingR1 R2 R3 each port, query the problem.

The case of AB Unicom

Route table for a

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= " Https://s2.51cto.com/wyfs02/M00/8E/FA/wKioL1jQzbuDE5nVAAAcCW519BQ707.png-wh_500x0-wm_3-wmp_4-s_1428882410.png " Title= "2.png" alt= "Wkiol1jqzbude5nvaaaccw519bq707.png-wh_50"/>

R1

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= " Https://s4.51cto.com/wyfs02/M01/8E/FB/wKioL1jQzciRSllPAAAlUgXvjbo494.png-wh_500x0-wm_3-wmp_4-s_1267182288.png " Title= "3.png" alt= "Wkiol1jqzcirsllpaaalugxvjbo494.png-wh_50"/>

R2

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= " Https://s4.51cto.com/wyfs02/M00/8E/FB/wKioL1jQzeSxECZVAAAVb_VgRj8307.png "title=" 4.png "alt=" Wkiol1jqzesxeczvaaavb_vgrj8307.png "/>

R3

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" try to remove unwanted route records "style=" Background:url ("/e/ U261/lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;"/>650) this.width=650; "Src=" Https://s2.51cto.com/wyfs02/M02/8E/FB/wKioL1jQzj3Qi6HvAAAMhoOmpz4517.png-wh_500x0-wm_3-wmp_4-s_3027574322.png " Title= "5.png" alt= "Wkiol1jqzj3qi6hvaaamhoompz4517.png-wh_50"/>

B

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8E/FD/wKiom1jQzk6R3mOCAAAXAmJvwWc854.png "title=" 6.png "alt=" Wkiom1jqzk6r3mocaaaxamjvwwc854.png "/>


After everything is OK, a can ping B.

This article is from the "12726013" blog, please be sure to keep this source http://12736013.blog.51cto.com/12726013/1908805

Simulation experiment of three-route Unicom

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.