静态路由综合实验

R1的配置:

Please press enter to start cmd line!

<Huawei>sys    
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 192.168.1.33 28
[R1-LoopBack0]int lo 1
[R1-LoopBack1]ip address 192.168.1.49 28
[R1-LoopBack1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.5 30
Jan 11 2022 22:13:47-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]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.1.1 30
Jan 11 2022 22:14:06-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R1-GigabitEthernet0/0/1]q
[R1]ip route-static 0.0.0.0 0 192.168.1.2
[R1]ip route-static 0.0.0.0 0 192.168.1.6
[R1]ip route-static 192.168.1.64 27 192.168.1.2
[R1]ip route-static 192.168.1.8 30 192.168.1.2
[R1]ip route-static 192.168.1.96 27 192.168.1.6
[R1]ip route-static 192.168.1.12 30 192.168.1.2

[R1]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 22       Routes : 23       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/1
                    Static  60   0          RD   192.168.1.6     GigabitEthernet
0/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
    192.168.1.0/30  Direct  0    0           D   192.168.1.1     GigabitEthernet
0/0/1
    192.168.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
    192.168.1.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
    192.168.1.4/30  Direct  0    0           D   192.168.1.5     GigabitEthernet
0/0/0
    192.168.1.5/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    192.168.1.7/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    192.168.1.8/30  Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/1
   192.168.1.12/30  Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/1
   192.168.1.16/30  Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/1
   192.168.1.32/28  Direct  0    0           D   192.168.1.33    LoopBack0
   192.168.1.33/32  Direct  0    0           D   127.0.0.1       LoopBack0
   192.168.1.47/32  Direct  0    0           D   127.0.0.1       LoopBack0
   192.168.1.48/28  Direct  0    0           D   192.168.1.49    LoopBack1
   192.168.1.49/32  Direct  0    0           D   127.0.0.1       LoopBack1
   192.168.1.63/32  Direct  0    0           D   127.0.0.1       LoopBack1
   192.168.1.64/27  Static  60   0          RD   192.168.1.2     GigabitEthernet
0/0/1
   192.168.1.96/27  Static  60   0          RD   192.168.1.6     GigabitEthernet
0/0/0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
[R1]undo ip route-static 192.168.1.12 30
[R1]ip route-static 192.168.1.12 30 192.168.1.6
[R1]ip route-static 192.168.1.32 27 NULL 0
[R1]aaa
[R1-aaa]local-user wdj privilege level 15 password cipher 123456

Info: Add a new user.

[R1-aaa]q
[R1]user-interface vt    
[R1]user-interface vty 0
[R1-ui-vty0]au    
[R1-ui-vty0]authentication-mode aaa
[R1-ui-vty0]q

R2的配置:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname R2
[R2]int lo 0
[R2-LoopBack0]ip address 192.168.1.65 28
[R2-LoopBack0]int lo 1

[R2-LoopBack1]ip address 192.168.1.81 28
[R2-LoopBack1]

  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>sys
Enter system view, return user view with Ctrl+Z.
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
Jan 11 2022 22:15:45-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]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.1.9 30
Jan 11 2022 22:16:01-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]

  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>sys
Enter system view, return user view with Ctrl+Z.
[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>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip ro    
[R2]ip route-    
[R2]ip route-static  0.0.0.0 0 192.168.1.10
[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>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip rou    
[R2]ip route-     
[R2]ip route-static 192.168.1.32 27 192.168.1.1
[R2]ip route-static 192.168.1.4 30 192.168.1.1
[R2]ip route-static 192.168.1.96 27 192.168.1.1
[R2]ip route-static 192.168.1.96 27 192.168.1.10
[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>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip rou    
[R2]ip route-    
[R2]ip route-static 192.168.1.64 27 n    
[R2]ip route-static 192.168.1.64 27 NULL 0
[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
 

R3的配置:

Please press enter to start cmd line!

<Huawei>
Jan 11 2022 21:52:15-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>
Jan 11 2022 21:53:22-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEt
hernet0/0/2 has turned into UP state.
<Huawei>

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

  Configuration console time out, please press any key to log on

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname R3 
[R3]int lo 0
[R3-LoopBack0]ip address 192.168.1.97 27
[R3-LoopBack0]undo ip add    
[R3-LoopBack0]undo ip add
[R3-LoopBack0]int g0/0/2
[R3-GigabitEthernet0/0/2]ip add 192.168.1.97 27
Jan 11 2022 22:09:33-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R3-GigabitEthernet0/0/2]
[R3-GigabitEthernet0/0/2]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.1.6 30
Jan 11 2022 22:16:51-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]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.1.13 30
Jan 11 2022 22:17:43-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]

  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>sys
Enter system view, return user view with Ctrl+Z.
[R3]dhcp en    
[R3]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[R3]ip pool a
Info: It's successful to create an IP address pool.
[R3-ip-pool-a]net w    
[R3-ip-pool-a]net wo    
[R3-ip-pool-a]netwo    
[R3-ip-pool-a]network 192.168.1.96 mask 27
[R3-ip-pool-a]gatew    
[R3-ip-pool-a]gateway-list 192.168.1.97
[R3-ip-pool-a]dns    
[R3-ip-pool-a]dns-list 114.114.114.114 8.8.8.8
[R3-ip-pool-a]q
[R3]int g0/0/2
[R3-GigabitEthernet0/0/2]dhcp s    
[R3-GigabitEthernet0/0/2]dhcp select g    
[R3-GigabitEthernet0/0/2]dhcp select global 
[R3-GigabitEthernet0/0/2]q
[R3]ip rou    
[R3]ip route-    
[R3]ip route-static 0.0.0.0 0 192.168.1.14
[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>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip r0u    
[R3]ip rou    
[R3]ip route-    
[R3]ip route-static 192.168.1.32 27 192.168.1.5
[R3]ip route-static 192.168.1.0 30 192.168.1.5
[R3]ip route-static 192.168.1.64 27 192.168.1.5
[R3]ip route-static 192.168.1.64 27 192.168.1.14
[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

R4的配置:

Please press enter to start cmd line!
##
<Huawei>
Jan 11 2022 21:52:14-08:00 Huawei %%01IFNET/4/BOARD_ENABLE(l)[0]:Board 4 has bee
n available. 
<Huawei>
Jan 11 2022 21:52:14-08:00 Huawei %%01IFNET/4/IF_ENABLE(l)[1]:Interface GigabitE
thernet4/0/0 has been available. 
<Huawei>
Jan 11 2022 21:52:15-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[2]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>
Jan 11 2022 21:52:15-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[3]:Interface GigabitEt
hernet0/0/1 has turned into UP state.
<Huawei>
Jan 11 2022 21:52:15-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[4]:Interface GigabitEt
hernet0/0/2 has turned into UP state.
<Huawei>
Jan 11 2022 21:52:16-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[5]:Interface GigabitEt
hernet4/0/0 has turned into UP state.
<Huawei>

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

  Configuration console time out, please press any key to log on

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname R4
[R4]int lo0
[R4-LoopBack0]ip address 192.168.1.129 28
[R4-LoopBack0]int lo1
[R4-LoopBack1]ip address 192.168.1.145 28
[R4-LoopBack1]
[R4-LoopBack1]

  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>sys
Enter system view, return user view with Ctrl+Z.
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.1.10 30
Jan 11 2022 22:18:50-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]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 192.168.1.14 30
[R4-GigabitEthernet0/0/1]
Jan 11 2022 22:19:06-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]int g4/0/0
[R4-GigabitEthernet4/0/0]ip add 192.168.1.17 30
Jan 11 2022 22:19:33-08:00 R4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state. 
[R4-GigabitEthernet4/0/0]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 192.168.1.21 30
Jan 11 2022 22:20:04-08:00 R4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R4-GigabitEthernet0/0/2]q
[R4]ping 192.168.1.9
  PING 192.168.1.9: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.9: bytes=56 Sequence=1 ttl=255 time=80 ms
    Reply from 192.168.1.9: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 192.168.1.9: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.9: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 192.168.1.9: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 192.168.1.9 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/34/80 ms

[R4]ping 192.168.1.13
  PING 192.168.1.13: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.13: bytes=56 Sequence=1 ttl=255 time=70 ms
    Reply from 192.168.1.13: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 192.168.1.13: bytes=56 Sequence=3 ttl=255 time=10 ms
    Reply from 192.168.1.13: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 192.168.1.13: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 192.168.1.13 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/34/70 ms

[R4]ping 192.168.1.18
  PING 192.168.1.18: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.18: bytes=56 Sequence=1 ttl=255 time=90 ms
    Reply from 192.168.1.18: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 192.168.1.18: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.18: bytes=56 Sequence=4 ttl=255 time=10 ms
    Reply from 192.168.1.18: bytes=56 Sequence=5 ttl=255 time=40 ms

  --- 192.168.1.18 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/38/90 ms

[R4]ping 192.168.1.22
  PING 192.168.1.22: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.22: bytes=56 Sequence=1 ttl=255 time=50 ms
    Reply from 192.168.1.22: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 192.168.1.22: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.22: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 192.168.1.22: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 192.168.1.22 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/28/50 ms

[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>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip ro    
[R4]ip route-s    
[R4]ip route-static 0.0.0.0 0 192.168.1.18
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]shu    
[R4-GigabitEthernet0/0/2]shutdown 
Jan 11 2022 22:34:57-08:00 R4 %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthern
et0/0/2 has turned into DOWN state.
[R4-GigabitEthernet0/0/2]
[R4-GigabitEthernet0/0/2]
Jan 11 2022 22:34:57-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the DOWN state. 
[R4-GigabitEthernet0/0/2]

  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>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip rou    
[R4]ip route-    
[R4]ip route-static 192.168.1.64 27 192.168.1.9
[R4]ip route-static 192.168.1.0 30 192.168.1.9
[R4]ip route-static 192.168.1.4 30 192.168.1.13
[R4]ip route-static 192.168.1.96 27 192.168.1.13
[R4]ip route-static 192.168.1.32 27 192.168.1.13
[R4]ip route-static 192.168.1.32 27 192.168.1.9
[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>sys
Enter system view, return user view with Ctrl+Z.
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]undo shu    
[R4-GigabitEthernet0/0/2]undo shutdown 
[R4-GigabitEthernet0/0/2]
Jan 11 2022 22:59:01-08:00 R4 %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthern
et0/0/2 has turned into UP state.
[R4-GigabitEthernet0/0/2]
Jan 11 2022 22:59:01-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R4-GigabitEthernet0/0/2]q
[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>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip tou    
[R4]ip rou    
[R4]ip route-    
[R4]ip route-static 192.168.128 27 n    
[R4]ip route-static 192.168.1.            
[R4]ip route-static 192.168.1.128 27 n    
[R4]ip route-static 192.168.1.128 27 NULL 0
[R4]te    
[R4]twl    
[R4]tel    
[R4]telnet 192.168.1.1
           ^
Error: Unrecognized command found at '^' position.
[R4]tel    
[R4]telnet 192.168.1.1
           ^
Error: Unrecognized command found at '^' position.
[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

R5的配置:

Please press enter to start cmd line!

<Huawei>
Jan 11 2022 21:52:15-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/2 has turned into UP state.
<Huawei>
Jan 11 2022 21:52:16-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>
Jan 11 2022 21:52:31-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[2]:Interface GigabitEt
hernet0/0/1 has turned into UP state.
<Huawei>

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

  Configuration console time out, please press any key to log on

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname R5
[R5]int lo0
[R5-LoopBack0]ip add 192.168.161 27
                     ^
Error: Wrong parameter found at '^' position.
[R5-LoopBack0]ip add 192.168.1.161 27
[R5-LoopBack0]
[R5-LoopBack0]

  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>sys
Enter system view, return user view with Ctrl+Z.
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 192.168.1.18 30
Jan 11 2022 22:20:53-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]int g0/0/2
[R5-GigabitEthernet0/0/2]ip add 192.168.1.22 30
Jan 11 2022 22:21:05-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R5-GigabitEthernet0/0/2]int g0/0/1
[R5-GigabitEthernet0/0/1]ip add 56.1.1.1 24
[R5-GigabitEthernet0/0/1]
Jan 11 2022 22:21:32-08:00 R5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R5-GigabitEthernet0/0/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>sys
Enter system view, return user view with Ctrl+Z.
[R5]ip r    
[R5]ip ro    
[R5]ip route-static 0.0.0.0 0 56.1.1.2
[R5]
Jan 11 2022 22:34:58-08:00 R5 %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthern
et0/0/2 has turned into DOWN state.
[R5]
Jan 11 2022 22:34:58-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the DOWN state. 
[R5]
Jan 11 2022 22:34:59-08:00 R5 %%01IFPDT/4/IF_STATE(l)[2]:Interface GigabitEthern
et0/0/2 has turned into UP state.
[R5]
Jan 11 2022 22:34:59-08:00 R5 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R5]
Jan 11 2022 22:35:03-08:00 R5 %%01IFPDT/4/IF_STATE(l)[4]:Interface GigabitEthern
et0/0/2 has turned into DOWN state.
[R5]
Jan 11 2022 22:35:03-08:00 R5 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the DOWN state. 
[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>sys
Enter system view, return user view with Ctrl+Z.
[R5]ip ro    
[R5]ip route-    
[R5]ip route-static 192.168.1.32 27 192.168.1.17
[R5]ip route-static 192.168.1.64 27 192.168.1.17
[R5]ip route-static 192.168.1.96 27 192.168.1.17
[R5]ip route-static 192.168.1.128 27 192.168.1.17
[R5]ip route-static 192.168.1.0 30 192.168.1.17
[R5]ip route-static 192.168.1.4 30 192.168.1.17
[R5]ip route-static 192.168.1.8 30 192.168.1.17
[R5]ip route-static 192.168.1.12 30 192.168.1.17
[R5]
Jan 11 2022 22:59:01-08:00 R5 %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthern
et0/0/2 has turned into UP state.
[R5]
Jan 11 2022 22:59:01-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R5]ip route-static 192.168.1.32 27 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.64 27 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.96 27 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.128 27 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.0 30 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.4 30 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.8 30 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.12 30 192.168.1.21 pr 61
[R5]acl 2000
[R5-acl-basic-2000]ru    
[R5-acl-basic-2000]rule per    
[R5-acl-basic-2000]rule permit s    
[R5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[R5-acl-basic-2000]q
[R5]int g0/0/1
[R5-GigabitEthernet0/0/1]nat ou    
[R5-GigabitEthernet0/0/1]nat outbound 2000
[R5-GigabitEthernet0/0/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>tel    
<R5>telnet 192.168.1.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.1.1 ...
  Connected to 192.168.1.1 ...

Login authentication


Username:wdj
Password:
<R1>q

  Configuration console exit, please retry to log on

  The connection was closed by the remote host
<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]int g0/0/1
[R5-GigabitEthernet0/0/1]nat ser    
[R5-GigabitEthernet0/0/1]nat server pro    
[R5-GigabitEthernet0/0/1]nat server protocol tcp g    
[R5-GigabitEthernet0/0/1]nat server protocol tcp global c    
[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 in    

[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 ins
ide 192.168.1.1 23
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y
[R5-GigabitEthernet0/0/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

R6的配置:

Please press enter to start cmd line!
############################################################
<Huawei>
Jan 11 2022 21:52:32-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>

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

  Configuration console time out, please press any key to log on


<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R6
[R6]int lo0
[R6-LoopBack0]ip add 6.6.6.6 24
[R6-LoopBack0]
[R6-LoopBack0]

  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>sys
Enter system view, return user view with Ctrl+Z.
[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 56.1.1.2 24
Jan 11 2022 22:22:59-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]

  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>tel    
<R6>telnet 56.1.1.1
  Press CTRL_] to quit telnet mode
  Trying 56.1.1.1 ...
  Connected to 56.1.1.1 ...

Login authentication


Username:wdj
Password:
  ----------------------------------------------------------------------------- 
    
  User last login information:     
  -----------------------------------------------------------------------------
  Access Type: Telnet      
  IP-Address : 192.168.1.18     
  Time       : 2022-01-11 23:15:01-08:00     
  -----------------------------------------------------------------------------
<R1>
<R1>
<R1>
<R1>qq
    ^
Error: Unrecognized command found at '^' position.
<R1>q

  Configuration console exit, please retry to log on

  The connection was closed by the remote host
<R6>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait........
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<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
 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

初夏_learning

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值