当前位置:网站首页>Make static routing accessible to the whole network through ENSP
Make static routing accessible to the whole network through ENSP
2022-07-27 02:30:00 【m0_ seventy-two million five hundred and eighty-six thousand an】
One 、 How routers work
How routers work : When a packet is accepted by the router , The router will first check the packet destination ip Address ( The package target ip Shorthand for A), Then check the local data table of the router . If the local data table has been previously sent to the target ip Address A The record of , Then the server accepts the packet and forwards it according to the record ; If there is nothing about the target in the local data table ip Address A The record of , The packet will be rejected by the server , That is, the server discards the packet .
Two 、ensp Topology Environment Planning
In order to make static routing accessible throughout the network , Designed a ensp The network topology environment is convenient for everyone to understand .
The ensp Network topology environment : Three routers 、 Three stations pc Main engine composition .
The topology environment is shown in the following figure

3、 ... and 、 Router gateway port configuration
Normally , We need to give a gateway to each port of each router , It is convenient to realize data transmission in different broadcast domains .
For each router
AR1:
<Huawei>system-view
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.1
AR2:
<Huawei>system-view
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.2.2
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.3.1
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]ip address 192.168.4.2
AR3:
<Huawei>system-view
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.5.1
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.4.1
In this way, each router port has a gateway belonging to the broadcast domain .
Four 、 Manually add unknown network segments and PC in ipv4 Configuration of
For the newly configured router AR, There is no record of the next non directly connected broadcast domain , So we will be in AR Manually add the non direct network segment in the router data table , That is, unknown network segment .
With AR1 For example ,AR1 The data table is shown in the figure below 
thus it can be seen , The AR1 Router data table does not 192.168.3.0、192.168.4.0 and 192.168.5.0 Network segment record , So we add these three network segments .
To add 192.168.3.0 Network segment as an example :
Input :
[Huawei]ip route-static 192.168.3.0 24 192.168.2.2
![]()
192.168.3.0 For the unknown network segment you want to add ;
24 Mask for subnet , namely 255.255.255.0;
192.168.2.2 For the next entry interface of traffic ip Address ( Short for next jump );
At this time , We are already in AR1 Router data table added 192.168.3.0 This unknown network segment , We can check .
Input :
[Huawei]display ip routing-table

stay Proto In this column , We can see a different English word Static, This line represents what we added 192.168.3.0 Network segment .
After inspection , Because there is no server allocation in this topology environment DHCP, To make static routing accessible throughout the network ,PC Terminal IPV4 Configuration should not be forgotten ;
With PC1 For example :
IP Address :192.168.1.2-192.168.1.254 All can ;
Subnet mask :255.255.255.0/24;
gateway :192.168.1.1( The traffic finally leaves the end of the broadcast domain ip Address );
here , The port configuration of the router in this topology environment 、 Static configuration of router 、PC Terminal IPV4 The configuration is complete , We use each PC Terminal go ping Different broadcast domains PC Terminal ip, If each ping All actions can succeed , Then the static routing of this environment has achieved the whole network reachability ;

notes : Need each PC Terminal go ping Through any broadcast domain PC terminal ip;
As mentioned above , The topology environment realizes static routing, and the whole network can reach ;
边栏推荐
猜你喜欢
随机推荐
The problem of storing elements in TreeSet collection
东北证券股票网上开户,手机上开户安全吗
js中的数组方法和循环
今天浅讲一下转义字符【萌新版】
Educational Codeforces Round 132 (Rated for Div. 2), problem: (D) Rorororobot
TCP三次握手、四次断开
指针得真正奥义!!!
MGRE、PPP、HDLC综合实验
有趣的C语言
Codeforces Round #810 (Div. 2), problem: (B) Party
How to judge whether a number is odd or even?
数字集成电路:MOS管器件章(一)
HCIP oSPF知识总结
【你了解Cache吗——全面理解高速缓冲存储器】
Find a specific number in an ordered array
Wechat applet: user wechat login process (attached: flow chart + source code)
全连MGRE与星型拓扑MGRE
go语言慢速入门——go运算符
创业3年,现在鹅厂,年收入百万+,作为软件测试前辈的一些建议....
【用C语言绘制谢尔宾斯基三角形】









