Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Huawei Network-static Route

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Requirement description

1. Static routes need to be configured on the three routers to achieve interworking between network segments

two。 In order to achieve network-wide interconnection, it must be clear that the following two problem packets are forwarded or discarded by the router, depending on whether the entry corresponding to the destination address of the packet can be found in the routing table. The router can automatically generate routing entries for all directly connected network segments, and for those non-directly connected network segments, they need to be specified through static routes.

3. Therefore, in order to achieve network-wide interworking, each router must be assigned routing entries for all non-directly connected network segments.

Experimental environment

The three routers R1, R2 and R3 are interconnected in pairs, and each router is equipped with Loopback addresses to simulate the network environment.

Step 1: configure the R1 router system-v / / enter the system view from the user view [Huawei] sysname R1 / / set the router name [R1] int g0and0 / enter the port [R1-GigabitEthernet0/0/0] ip add 12.0.0.1 24 [R1-GigabitEthernet0/0/0] Q / / return from the system view to the User view [R1] int g0amp 0Acer 1 [R1-GigabitEthernet0/0/1] ip add 13.0.0.1 24 [R1-GigabitEthernet0/0/1] Q [R1] int loo 0 / / enter the loopback Nic interface [R1-LoopBack0] ip add 1.1.1.1 32 [R1-LoopBack0] Q [R1] dis ip int b / / View the interface status Interface IP Address/Mask Physical ProtocolGigabitEthernet0/0/0 12.0.0.1 up up GigabitEthernet0/0/1 24 up up LoopBack0 13.0.0.1 ip route- 32 up up (s) [R1] ip route- Static 3.3.3.3 32 13.0.0.3 [R1] ip route-static 3.3.3.3 32 12.0.0.2 [R1] ip route-static 2.2.2.2 32 13.0.0.3 [R1] ip route-static 2.2.2.2 32 12.0.0.2 A / configure a routing static route [R1] display ip routing-table / / View routing table Route Flags: r-relay D-download to fib----Routing Tables: Public Destinations: 9 Routes: 11 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0 2.2.2.2/32 Static 60 0 RD 13.0.0.3 GigabitEthernet0/0/1 Static 60 0 RD 12.0.0.2 GigabitEthernet0/0/0 3.3.3.3/32 Static 60 0 RD 13.0.0.3 GigabitEthernet0/0/1 Static 60 0 RD 12.0.0.2 GigabitEthernet0/0/0 12.0.0.0/24 Direct 0 0 D 12.0.0.1 GigabitEthernet0/0/0 12.0.0.1/32 Direct 0 0 D 127.0 . 0.1 GigabitEthernet0/0/0 13.0.0.0/24 Direct 0 0 D 13.0.0.1 GigabitEthernet0/0/1 13.0.0.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1 InLoopBack0 32 Direct 0 0 D 127.0.0.1 step 2: configure the R2 router system- v [Huawei] sysname R2 [R2] int g0 * R2-GigabitEthernet0/0/2] q[R2] int loo 0 [R2-LoopBack0] ip add 2.2.2.2 32 [R2-LoopBack0] q[R2] ip route-static 1.1.1.1 32 12.0.0.1[R2] ip route-static 1.1.1.1 32 23.0.0.3[R2] ip route-static 3.3.3.3 32 12.0.0.1 [R2] ip route-static 3.3.3.3 32 23.0 . 0.3 [R2] dis ip int b Interface IP Address/Mask Physical ProtocolGigabitEthernet0/0/0 12.0.0.2/24 up upGigabitEthernet0/0/2 23.0.0.2/24 up up LoopBack0 2.2.2.2 up up 32 (s) [R2] display ip routing-tableRoute Flags: r-relay D-download to fib----Routing Tables: Public Destinations: 9 Routes: 11 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.1/32 Static 60 0 RD 12.0.0.1 GigabitEthernet0/0/0 Static 60 0 RD 23.0.0.3 GigabitEthernet0/0/2 2.2.2.2/32 Direct 0 0 D 127.0.0.1 LoopBack0 3.3.3.3/32 Static 60 0 RD 12.0.0.1 GigabitEthernet0/0/0 Static 60 0 RD 23.0.0.3 GigabitEthernet0/0/2 12.0.0.0/24 Direct 0 0 D 12.0.0.2 GigabitEthernet0/0/0 12.0.0.2/32 Direct 0 0 D 127.0 . 0.1 GigabitEthernet0/0/0 23.0.0.0/24 Direct 0 0 D 23.0.0.2 GigabitEthernet0/0/2 23.0.0.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/2 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1 InLoopBack0 32 Direct 0 0 D 127.0.0.1 step 3: configure the R3 router system- v [Huawei] sysname R3 [R3] int g0 * R3-GigabitEthernet0/0/2] q[R3] int loo 0 [R3-LoopBack0] ip add 3.3.3.3 32 [R3-LoopBack0] q[R3] dis ip int bInterface IP Address/Mask Physical ProtocolGigabitEthernet0/0/1 13.0.0.3/24 up up GigabitEthernet0/0/2 23.0.0.3/24 Up up LoopBack0 3.3.3.3 up up LoopBack0 32 up up (s) [R3] display ip routing-tableRoute Flags: r-relay D-download to fib----Routing Tables: Public Destinations: 7 Routes: 7 Destination/Mask Proto Pre Cost Flags NextHop Interface 3.3.3.3/32 Direct 0 0 D 127.0.0.1 LoopBack0 13.0.0.0/24 Direct 0 0 D 13.0.0.3 GigabitEthernet0/0/1 13.0.0.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1 23.0.0.0 / 24 Direct 0 0 D 23.0.0.3 GigabitEthernet0/0/2 23.0.0.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/2 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 step 4: test the interconnection of the whole network

1. Test the interconnection between R2 and R1

[R2] ping-a 2.2.2.2 1.1.1.1PING 1.1.1.1: 56data bytes Press CTRL C to breakReply from 1.1.1.1tt1=255time= bytesfolk 56Sequence= 1 tt1=255time=120 msReply from 1.1.1.1:bytes=56Sequence=2 tt1=255time=15 msReply from 1.1.1.1.1Partition bytesfolk 56Sequence= 3 tt1=255time=15 msReply from 1.1.1.1Verbytesfolk 56Sequence= 4 tt1=255time= 30 Sequence1.1.1.1.1Rich bytesfolk 56Sequence= 5 tt1=255time= 20 ms1.1.1.1 ping statistics-5 packet (s) tr ansmi tted5 packet (s) received0.00%packet 1083round-trip min/ avg/max = 2054lash 120 ms

two。 Test the interconnection between R2 and R3

[R2] ping-a 2.2.2.2 3.3.3.3PING 3.3.3.3: 56data bytes Press CTRL c to breakReply from 3.3.3.3:bytes=56 Sequence=1 tt1=255 time-30 msReply from 3.3.3.3:bytes=56 Sequence=2 tt1=255 time=40msReply from 3.3.3.3:bytes=56 Sequence=3 tt1=255 time=50 msReply from 3.3.3.3:bytes=56 Sequence=4 tt1=255 time=30 msReply from 3.3.3.3:bytes=56 Sequence=5 tt1=255 time=30 ms 3.3.3.3 ping statistics5 packet (s) tr ansmi tted5 packet (s) received0.00%packet 1083 ms-trip min/ avg/max = 30 / 36 plus 50 ms

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report