当前位置:网站首页>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 ;
边栏推荐
猜你喜欢

RS-485 bus communication application

动态路由配置

MGRE, PPP, HDLC comprehensive experiment

C language - characters and strings, arithmetic operators, type conversions

What is the principle of synchronized lock escalation in multithreading?

Sort the three integers from large to small (introduce various methods in detail)

求解100~200之间的素数

【降维打击,带你深度学习CPU(上)】

oSPF基础实验配置

MGRE、PPP、HDLC综合实验
随机推荐
[brother Yang takes you to play with the linear table (I) - sequence table]
Find a specific number in an ordered array
Risc-v tool chain compilation notes
HCIP-第四天-OSPF路由协议
NAT网络地址转化实验
RS-485 bus communication application
RIP路由信息协议-拓扑实验
Record the nth SQL exception
Codeforces Round #810 (Div. 2), problem: (B) Party
HCIP oSPF综合实验
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
JVM interview questions (necessary for interview)
Wechat applet: user wechat login process (attached: flow chart + source code)
求解整数的每一位
C language - value range of data type and basic data type
全网显示 IP 归属地,是怎么实现的?
go语言慢速入门——go运算符
数字芯片的面积优化:第三届“华为杯”研究生创芯大赛数字方向上机题1详解
【在Visual Studio 2019中使用SQLite3库实现学生信息管理系统】
Open the door of programming