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

Static route configuration to achieve network-wide interworking

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

Static route configuration to achieve network-wide interworking

The configuration of the R1 router

Step 1: configure Ethernet 0 Universe 0 Universe 0 port

System-view

[Huawei] interface Ethernet 0/0/0

[Huawei-Ethernet0/0/0] ip address 192.168.1.254 255.255.255.0

[Huawei-Ethernet0/0/0] undo shutdown

[Huawei-Ethernet0/0/0] quit

Step 2: configure the GigabitEthernet 0 Universe 0 Universe 0 port

System-view

[Huawei] interface GigabitEthernet 0/0/0

[Huawei-GigabitEthernet0/0/0] ip address 192.168.2.1 255.255.255.0

[Huawei-GigabitEthernet0/0/0] undo shutdown

[Huawei-GigabitEthernet0/0/0] quit

Step 3: add a static route entry (3.0 network segment), where 192.168.2.2 is called the next hop

System-view

[Huawei] ip route-static 192.168.3.0 255.255.255.0 192.168.2.2

Configuration of the R2 router

Step 1: configure the Ethernet0/0/0 port

System-view

[Huawei-Ethernet0/0/0] ip address 192.168.3.254 255.255.255.0

[Huawei-Ethernet0/0/0] undo shutdown

[Huawei-Ethernet0/0/0] q

Two-step configuration: set GigabitEthernet0/0/0 port

System-view

[Huawei] interface GigabitEthernet 0/0/0

[Huawei-GigabitEthernet0/0/0] ip address 192.168.2.2 255.255.255.0

[Huawei-GigabitEthernet0/0/0] undo shutdown

[Huawei-GigabitEthernet0/0/0] quit

Step 3: add a static route entry (1.0 segment)

System-view

[Huawei] ip route-static 192.168.1.0 255.255.255.0 192.168.2.1

Finally, save

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

Network Security

Wechat

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

12
Report