Manually specify a route exit that points to a specific next-routing or gateway, which is a routing information that is manually configured by the user or network administrator. When the topology of the network or the state of the link changes, the network administrator needs to manually modify the relevant static routing information in the routing table. Static routing information is private by default and is not passed to other routers. Of course, the network administrator can also be shared by setting up the router. Static routing is generally suitable for a relatively simple network environment, in which the network administrator is easy to understand the topology of the network, easy to set up the correct routing information.
Let's do a little experiment and simply demonstrate how to statically configure the routing table on a Linux system
Before the experiment begins, let's start with a simple topology diagram,
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/87/F8/wKioL1fl0I6xqzLCAAAyb0jFXj4857.png "title=" Design diagram. png "alt=" Wkiol1fl0i6xqzlcaaayb0jfxj4857.png "/>
The first step is to configure the R1 and R2 network cards first
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/87/FC/wKiom1fl0PiCMT15AAC3UhRZWp0276.png "style=" float: none; "Title=" 1r1 NIC configuration. png "alt=" Wkiom1fl0picmt15aac3uhrzwp0276.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/87/F8/wKioL1fl0PnDJylbAAA8nA3zbRc460.png "style=" float: none; "Title=" 2r2 NIC configuration. png "alt=" Wkiol1fl0pndjylbaaa8na3zbrc460.png "/>
When the routing table is not configured at this time, R11 cannot reach R20
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/87/F8/wKioL1fl0PmBU45YAAAbUnDuYtY474.png "style=" float: none; "Title=" 3 Not Configured routing table R11 cannot reach R20.png "alt=" Wkiol1fl0pmbu45yaaabunduyty474.png "/>
Configure R1 Routing and view
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/87/FC/wKiom1fl0PnhlbAwAABlNnsiR_Q672.png "style=" float: none; "title=" 4 Configure R1 Routing and view. png "alt=" Wkiom1fl0pnhlbawaablnnsir_q672.png "/>
Configure R2 Routing and view
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/87/FC/wKiom1fl0PrDf6CgAAAerMtOSqM440.png "style=" float: none; "title=" 5 Configure R2 Routing and view. png "alt=" Wkiom1fl0prdf6cgaaaermtosqm440.png "/>
In this case, the adjacent route is connected
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/87/F8/wKioL1fl0PrhvTkcAACKI1Iv7Ds450.png "style=" float: none; "title=" 6 adjacent routes unicom. png "alt=" Wkiol1fl0prhvtkcaacki1iv7ds450.png "/>
Enable the R1 routing feature
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/87/FC/wKiom1fl0PuQ706_AABFxVPw3n0905.png "style=" float: none; "Title=" 7r1 enable the routing feature. png "alt=" Wkiom1fl0puq706_aabfxvpw3n0905.png "/>
Enable the R2 routing feature
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/87/F8/wKioL1fl0Pvz4ZdbAAAPCzU1DJE255.png "style=" float: none; "title=" 8 enables the R2 routing feature. png "alt=" Wkiol1fl0pvz4zdbaaapczu1dje255.png "/>
Temporarily empty the R2 firewall
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/87/F8/wKioL1fl0PviCRvrAAAtJjmzo94154.png "style=" float: none; "Title=" 9 temporarily empties the R2 firewall. png "alt=" Wkiol1fl0pvicrvraaatjjmzo94154.png "/>
Temporarily empty the R1 firewall
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/87/FC/wKiom1fl0PyBPidUAAEGuA-8ulc691.png "style=" float: none; "Title=" 10 temporarily empties the R1 firewall. png "alt=" Wkiom1fl0pybpiduaaegua-8ulc691.png "/>
View native IP
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/87/FC/wKiom1fl0PyhrjKWAAAdwEM2Ei8718.png "style=" float: none; "Title=" 12 View native Ip.png "alt=" Wkiom1fl0pyhrjkwaaadwem2ei8718.png "/>
Temporarily modify the native IP and add the gateway and view
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/87/F8/wKioL1fl0P3yrmGtAAAUfhRE400383.png "style=" float: none; "title=" 13 temporarily modifies the IP and adds a gateway and views the. png "alt=" Wkiol1fl0p3yrmgtaaaufhre400383.png "/>
Modified IP
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/87/F8/wKioL1fl0P3y0LfdAAAYbMxgr_U966.png "style=" float: none; "Title=" 14 modified ip.png "alt=" Wkiol1fl0p3y0lfdaaaybmxgr_u966.png "/>
Experimental success
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/87/FC/wKiom1fl0P7DC-guAABMb2qmHQg591.png "style=" float: none; the "title=" 15 experiment succeeded. png "alt=" Wkiom1fl0p7dc-guaabmb2qmhqg591.png "/>
This article is from the "11798474" blog, please be sure to keep this source http://11808474.blog.51cto.com/11798474/1856001
Statically configured routing tables on Linux systems