路由器相关程序图

 R1

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z. 
[Huawei]sysname R1
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 12.1.1.2 24
Jan 13 2022 17:32:23-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]quit 
[R1]int    
[R1]interface g0/0/2   
[R1-GigabitEthernet0/0/2]ip address 21.1.1.2 24
Jan 13 2022 17:33:10-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R1-GigabitEthernet0/0/2]quit 
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 24.1.1.1 24
[R1-GigabitEthernet0/0/1]
Jan 13 2022 17:33:38-08:00 R1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state.  
[R1-GigabitEthernet0/0/1]quit 

<R1>sy    
<R1>system-view 
Enter system view, return user view with Ctrl+Z.
[R1]ip ro    
[R1]ip route
[R1]ip route-static 192.168.0.0 22 24.1.1.2


<R1>system-view 
Enter system view, return user view with Ctrl+Z. 
[R1]interface LoopBack 0
[R1-LoopBack0]ip ad    
[R1-LoopBack0]ip address 1.1.1.1 32
[R1-LoopBack0]quit 
[R1]rip 1
[R1-rip-1]version 1   
[R1-rip-1]network 1.0.0.0 
[R1-rip-1]network 16.0.0.0
[R1-rip-1]network 67.0.0.0
[R1-rip-1]network 172.16.0.0  
[R1-rip-1]quit 
[R1]undo rip 1
Warning: The RIP process will be deleted. Continue?[Y/N]y
[R1]rip 1
[R1-rip-1]verify-source
[R1-rip-1]version 1
[R1-rip-1]network 24.0.0.0
[R1-rip-1]network 1.0.0.0
<R1>system-view 
Enter system view, return user view with Ctrl+Z.
[R1]ip route-static 0.0.0.0 0 12.1.1.1
[R1]ip route-static 0.0.0.0 0 21.1.1.1
[R1]display current-configuration | in static
ip route-static 0.0.0.0 0.0.0.0 12.1.1.1
ip route-static 0.0.0.0 0.0.0.0 21.1.1.1
ip route-static 192.168.0.0 255.255.252.0 24.1.1.2
 

R2

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.  
[Huawei]sysname R2     
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ip address 16.1.1.2 24
Jan 13 2022 17:34:51-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]qu    
[R2-GigabitEthernet0/0/0]quit    
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]ip address 12.1.1.1 24
[R2-GigabitEthernet0/0/1]
Jan 13 2022 17:35:14-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state.   
[R2-GigabitEthernet0/0/1]quit 
[R2]int    
[R2]interface g4/0/0 
[R2-GigabitEthernet4/0/0]ip address 21.1.1.1 24
[R2-GigabitEthernet4/0/0]
Jan 13 2022 17:35:44-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state.  
[R2-GigabitEthernet4/0/0]quit 
[R2]interface g0/0/2
[R2-GigabitEthernet0/0/2]ip address 13.1.1.1 24
[R2-GigabitEthernet0/0/2]
Jan 13 2022 17:37:57-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R2-GigabitEthernet0/0/2]quit 
[R2]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on   
<R2>system-view 
Enter system view, return user view with Ctrl+Z.
[R2]ip route-static 192.168.0.0 22 12.1.1.2 
[R2]ip route-static 192.168.0.0 22 21.1.1.2 preference 61
[R2]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on  
<R2>system-view 
Enter system view, return user view with Ctrl+Z.
[R2]ip route-static 172.16.1.0 24 16.1.1.1
[R2]interface LoopBack  0
[R2-LoopBack0]ip address 2.2.2.2 32
[R2-LoopBack0]quit 
[R2]rip 1
[R2-rip-1]version 1  
[R2-rip-1]network 12.0.0.0
[R2-rip-1]network 21.0.0.0
[R2-rip-1]network 13.0.0.0

[R2-rip-1]network 2.0.0.0
[R2-rip-1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on 
<R2>system-view 
Enter system view, return user view with Ctrl+Z.
[R2]ip route-static 0.0.0.0 0 16.1.1.1
[R2]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R2>system-view 
Enter system view, return user view with Ctrl+Z.
[R2]display current-configuration | in static
ip route-static 0.0.0.0 0.0.0.0 16.1.1.1
ip route-static 172.16.1.0 255.255.255.0 16.1.1.1
ip route-static 192.168.0.0 255.255.252.0 12.1.1.2
ip route-static 192.168.0.0 255.255.252.0 21.1.1.2 preference 61

R3

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3
[R3]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R3>system-view 
Enter system view, return user view with Ctrl+Z. 
[R3]interface g0/0/0  
[R3-GigabitEthernet0/0/0]ip address 34.1.1.1 24
Jan 13 2022 17:36:52-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]quit 
[R3]interface g0/0/1 
[R3-GigabitEthernet0/0/1]ip address 13.1.1.2 24
[R3-GigabitEthernet0/0/1]
Jan 13 2022 17:37:32-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state.   
[R3-GigabitEthernet0/0/1]quit  
[R3]interface g0/0/2  
[R3-GigabitEthernet0/0/2]ip address 43.1.1.1 24
[R3-GigabitEthernet0/0/2]
Jan 13 2022 17:38:38-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state.  
[R3-GigabitEthernet0/0/2]quit 
[R3]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R3>system-view 
Enter system view, return user view with Ctrl+Z.
[R3]ip route-static 172.16.1.0 24 13.1.1.1
[R3]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on 
<R3>system-view 
Enter system view, return user view with Ctrl+Z. 
[R3]interface LoopBack 0  
[R3-LoopBack0]ip address 3.3.3.3 32
[R3-LoopBack0]quit 
[R3]rip 1
[R3-rip-1]version 1
[R3-rip-1]network 34.0.0.0
[R3-rip-1]network 43.0.0.0 
[R3-rip-1]network 3.0.0.0
[R3-rip-1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R3>system-view 
Enter system view, return user view with Ctrl+Z.
[R3]ip route-static 0.0.0.0 0 13.1.1.1
[R3]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R3>system-view 
Enter system view, return user view with Ctrl+Z.
[R3]display current-configuration | in static
ip route-static 0.0.0.0 0.0.0.0 13.1.1.1
ip route-static 172.16.1.0 255.255.255.0 13.1.1.1
 

R4

<R4>system-view 
Enter system view, return user view with Ctrl+Z. 
[R4]interface g0/0/0
[R4-GigabitEthernet0/0/0]ip address 24.1.1.2 24
Jan 13 2022 17:39:30-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]quit 
[R4]interface g0/0/1  
[R4-GigabitEthernet0/0/1]ip address 34.1.1.2 24
Jan 13 2022 17:39:52-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]quit 
[R4]interface g0/0/2 
[R4-GigabitEthernet0/0/2]ip address 45.1.1.1 24
Jan 13 2022 17:40:15-08:00 R4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R4-GigabitEthernet0/0/2]quit  
[R4]interface g4/0/0
[R4-GigabitEthernet4/0/0]ip address 43.1.1.2 24
[R4-GigabitEthernet4/0/0]
Jan 13 2022 17:40:46-08:00 R4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state.  
[R4-GigabitEthernet4/0/0]quit 
[R4]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on 
<R4>system-view 
Enter system view, return user view with Ctrl+Z.
[R4]ip route-static 192.168.0.0 22 45.1.1.2
[R4]ip route-static 172.16.1.0 24 45.1.1.1
Error: The next-hop address is invalid.
[R4]ip route-static 172.16.1.0 24 34.1.1.1
[R4]ip route-static 172.16.1.0 24 43.1.1.1
[R4]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on 
<R4>system-view 
Enter system view, return user view with Ctrl+Z.
[R4]interface LoopBack 0
[R4-LoopBack0]ip address 4.4.4.4 32  
[R4-LoopBack0]quit 
[R4]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on  
<R4>system-view 
Enter system view, return user view with Ctrl+Z.
[R4]rip 1
[R4-rip-1]version 1
[R4-rip-1]network 4.0.0.0 
[R4-rip-1]network 45.0.0.0
[R4-rip-1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R4>system-view 
Enter system view, return user view with Ctrl+Z.
[R4]ip route-static 0.0.0.0 0 34.1.1.1
[R4]ip route-static 0.0.0.0 0 43.1.1.1
[R4]display current-configuration | in static
ip route-static 0.0.0.0 0.0.0.0 34.1.1.1
ip route-static 0.0.0.0 0.0.0.0 43.1.1.1
ip route-static 172.16.1.0 255.255.255.0 34.1.1.1
ip route-static 172.16.1.0 255.255.255.0 43.1.1.1
ip route-static 192.168.0.0 255.255.252.0 45.1.1.2

R5

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R5
[R5]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]interface g0/0/0
[R5-GigabitEthernet0/0/0]ip address 45.1.1.2 24
Jan 13 2022 17:41:36-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]quit 
[R5]interface g0/0/1
[R5-GigabitEthernet0/0/1]ip address 192.168.1.1 24
Jan 13 2022 17:42:03-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R5-GigabitEthernet0/0/1]quit  
[R5]interface g0/0/2
[R5-GigabitEthernet0/0/2]ip address 192.168.2.1 24
[R5-GigabitEthernet0/0/2]
Jan 13 2022 17:42:31-08:00 R5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R5-GigabitEthernet0/0/2]quit 
[R5]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]ip route-static 172.16.1.0 24 45.1.1.1 
[R5]ip route-static 192.168.0.0 22 NULL 0
[R5]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]interface LoopBack 0
[R5-LoopBack0]ip address 5.5.5.5 32 
[R5-LoopBack0]quit 
[R5]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]rip 1
[R5-rip-1]version 1
[R5-rip-1]network 5.0.0.0 
[R5-rip-1]network 192.168.0.0
[R5-rip-1]network 192.168.1.0
[R5-rip-1]network 192.168.2.0
[R5-rip-1]network 5.0.0.0
Error: The specified network already exists in the process.
[R5-rip-1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on 
<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]ip route-static 0.0.0.0 0 45.1.1.1
[R5]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]display current-configuration | in static
ip route-static 0.0.0.0 0.0.0.0 45.1.1.1
ip route-static 172.16.1.0 255.255.255.0 45.1.1.1
ip route-static 192.168.0.0 255.255.252.0 NULL0

R6

<R6>system-view 
Enter system view, return user view with Ctrl+Z.
[R6]interface g0/0/0   
[R6-GigabitEthernet0/0/0]ip address 67.1.1.1 24
Jan 13 2022 17:43:36-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state.    
[R6-GigabitEthernet0/0/0]quit 
[R6]interface g0/0/1 
[R6-GigabitEthernet0/0/1]ip address 172.16.1.1 24
Jan 13 2022 17:43:58-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state.   
[R6-GigabitEthernet0/0/1]quit 
[R6]interface g0/0/2
[R6-GigabitEthernet0/0/2]ip address 16.1.1.1 24
[R6-GigabitEthernet0/0/2]
Jan 13 2022 17:44:37-08:00 R6 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state.    
[R6-GigabitEthernet0/0/2]quit 
[R6]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R6>system-view 
Enter system view, return user view with Ctrl+Z.
[R6]ip route-static 192.168.0.0 22 16.1.1.2
[R6]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R6>system-view 
Enter system view, return user view with Ctrl+Z.
[R6]interface  LoopBack 0
[R6-LoopBack0]ip address 6.6.6.6 32
[R6-LoopBack0]quit 
[R6]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on   
<R6>system-view 
Enter system view, return user view with Ctrl+Z.
[R6]rip 1
[R6-rip-1]version 1
[R6-rip-1]network 6.0.0.0
[R6-rip-1]network 16.0.0.0
[R6-rip-1]network 67.0.0.0
[R6-rip-1]network 172.16.0.0
[R6-rip-1]quit 
[R6]ip route-static 0.0.0.0 0 67.1.1.2
[R6]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<R6>system-view 
Enter system view, return user view with Ctrl+Z.
[R6]display current-configuration | in static
ip route-static 0.0.0.0 0.0.0.0 67.1.1.2
ip route-static 192.168.0.0 255.255.252.0 16.1.1.2
 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值