Achieve intercommunication between networks using Static Routing Protocols

Source: Internet
Author: User

I haven't written any text in the blog garden for more than two years. I returned to the blog garden today. Here I changed my audience from a visitor to a little white who often shared what I saw and heard about technology. For more information, see.

I learned Static Routing at school today and found that the students in the class are not very familiar with the Static Routing composed of three routes. For this reason, I specially typed the topology and detailed configuration for your reference.

Topology:

Knowledge supplement:

Three elements of Static Routing:The network number, subnet mask, and next hop of the target network.

I am not very familiar with the concept of Next Hop. Here I will explain what the meaning of "Next Hop" means.

Next Hop refers to the next vertex of the route. If the router is not directly connected to the destination network, it will have a neighbor router that provides the next hop route to transmit data to the destination.

Is it hard to understand? So let's change to a more popular example?

You are traveling abroad, for example, to Tokyo, Japan.

However, your financial strength is quite tight, and you can only purchase flights to transfer (for example, first transfer to Osaka, then transfer from Osaka to Tokyo)

Then, your complete itinerary is:Shanghai →Osaka (Japan)→ Tokyo (Japan)

According to the flight track above, Osaka is the next hop we made from Shanghai to Tokyo ". No matter how you change, the plane must pass through Osaka (unless you break the above economic strength, you can buy a direct ticket = _ =)

After understanding the next hop, we can easily configure the route. The following describes the detailed configuration of the PC and route.

Pc0:

PC1:

Router r1:

R1 # Show running-config

Building configuration...

 

Current configuration: 623 bytes

!

Version 12.4:

No service timestamps log datetime msec

No service timestamps debug datetime msec

No service password-Encryption

!

Hostname r1

!

!

!

!

!

!

!

!

!

!

!

!

No IP domain-Lookup

!

!

Spanning-tree mode pvst

!

!

!

!

Interface fastethernet0/0

IP address 192.168.1.2 255.255.255.0

Duplex auto

Speed auto

!

Interface fastethernet0/1

IP address 172.16.1.1 255.255.255.0

Duplex auto

Speed auto

!

Interface vlan1

No IP Address

Shutdown

!

IP classless

IP Route 10.27.72.0 255.255.255.0 172.16.1.2

IP Route 192.168.2.0 255.255.255.0 172.16.1.2

!

!

!

!

!

!

!

Line con 0

!

Line aux 0

!

Line vty 0 4

Login

!

!

!

End

 

Vror2 R2:

R2 # Show running-config

Building configuration...

 

Current configuration: 623 bytes

!

Version 12.4:

No service timestamps log datetime msec

No service timestamps debug datetime msec

No service password-Encryption

!

Hostname r2

!

!

!

!

!

!

!

!

!

!

!

!

No IP domain-Lookup

!

!

Spanning-tree mode pvst

!

!

!

!

Interface fastethernet0/0

IP address 172.16.1.2 255.255.255.0

Duplex auto

Speed auto

!

Interface fastethernet0/1

IP address 10.27.72.1 255.255.255.0

Duplex auto

Speed auto

!

Interface vlan1

No IP Address

Shutdown

!

IP classless

IP Route 192.168.1.0 255.255.255.0 172.16.1.1

IP Route 192.168.2.0 255.255.255.0 10.27.72.2

!

!

!

!

!

!

!

Line con 0

!

Line aux 0

!

Line vty 0 4

Login

!

!

!

End

 

Router R3:

R3 # Show running-config

Building configuration...

 

Current configuration: 623 bytes

!

Version 12.4:

No service timestamps log datetime msec

No service timestamps debug datetime msec

No service password-Encryption

!

Hostname r3

!

!

!

!

!

!

!

!

!

!

!

!

No IP domain-Lookup

!

!

Spanning-tree mode pvst

!

!

!

!

Interface fastethernet0/0

IP address 10.27.72.2 255.255.255.0

Duplex auto

Speed auto

!

Interface fastethernet0/1

IP address 192.168.2.1 255.255.255.0

Duplex auto

Speed auto

!

Interface vlan1

No IP Address

Shutdown

!

IP classless

IP Route 192.168.1.0 255.255.255.0 10.27.72.1

IP Route 172.16.1.0 255.255.255.0 10.27.72.1

!

!

!

!

!

!

!

Line con 0

!

Line aux 0

!

Line vty 0 4

Login

!

!

!

End

 

TIPS:

If you are too reluctant to view the detailed configuration of each vro, you can directly view the red bold font in the detailed configuration for this article.

 

Actual verification results:

Pc0

 

 

PC1

 

 

Achieve intercommunication between networks using Static Routing Protocols

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.