Huawei router ensp static routing configuration example

Experimental environment: two clients and two routers.

The first step is to build the following topology diagram.

Insert image description here
The second step is to configure the following IP address on pc1.

Insert image description here
The third step is to configure the following IP address on pc2.

Insert image description here
Step 4: Configure the following commands on AR1.

int g/0/0/0
ip address 192.168.1.254 24
quit
int g0/0/1
ip address 1.1.1.1 24
quit

Step 5: Configure the following commands on AR2.

int g/0/0/1
ip address 192.168.2.254 24
quit
int g0/0/0
ip address 1.1.1.2 24
quit

Step 6: Configure static routing and configure the following command on AR1 (system mode).

ip route-static 192.168.2.0 24 1.1.1.2

Step 7: Configure static routing and configure the following command on AR2 (system mode).

ip route-static 192.168.1.0 24 1.1.1.1

Step 8, view the routing table (display ip routing-table
)
Insert image description here
Step 9, test (ping each other)

Insert image description here
Insert image description here
(Notes) The traffic between the two communicating parties comes and goes.

Guess you like

Origin blog.csdn.net/qq_51235445/article/details/125271020