Huawei network --- default routing configuration

Topology FIG.

Here Insert Picture Description

Experimental Procedure

Step 1: Configure router R1

<Huawei>sys 
[Huawei]sys R1  
[R1]int g0/0/1  
[R1-GigabitEthernet0/0/1]ip add 192.168.10.1 24  
[R1-GigabitEthernet0/0/1]un sh
[R1-GigabitEthernet0/0/1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.0.0.1 30
[R1-GigabitEthernet0/0/0]un sh
[R1-GigabitEthernet0/0/0]q
[R1]ip route-static 0.0.0.0 0.0.0.0 12.0.0.2  

Step Two: Configure router R2

<Huawei>sys  
[Huawei]sys R2  
[R2]int g0/0/0  
[R2-GigabitEthernet0/0/0]ip add 12.0.0.2 30 
[R2-GigabitEthernet0/0/0]un sh
[R2-GigabitEthernet0/0/0]int loo 0      
[R2-LoopBack0]ip add 2.2.2.2 32        
[R2-LoopBack0]q
[R2]ip route-static 192.168.10.0 24 12.0.0.1  

The third step is to configure the PC IP address and gateway

Here Insert Picture Description

Step four: Test the network interconnection

Here Insert Picture Description

Guess you like

Origin blog.51cto.com/14449521/2449478