Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Static route configuration to achieve network-wide interworking

Shulou Source: shulou.com Published: 2022-06-01 06:05:12 10月04日 Update

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

Tags: Configuration routing Port static entry Network Segment Router whole Network Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker macOS NVidia Huawei