HCIA静态路由作业

大致完成步骤:

先给4个路由器设置永不过时:

如:

[AR2]user-in

[AR2]user-interface co

[AR2]user-interface console 0

[AR2-ui-console0]id

[AR2-ui-console0]idle-timeout 0 0

    • 给4个路由器的各个接口配置IP

如:

[AR2]int

[AR2]interface g

[AR2]interface GigabitEthernet 0/0/1

[AR2-GigabitEthernet0/0/1]ip add

[AR2-GigabitEthernet0/0/1]ip address 12.1.1.2 24

Jan 4 2023 19:55:12-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP

on the interface GigabitEthernet0/0/1 has entered the UP state.

[AR2-GigabitEthernet0/0/1]

[AR2-GigabitEthernet0/0/1]q

[AR2]interface GigabitEthernet 0/0/0

[AR2-GigabitEthernet0/0/0]ip add

[AR2-GigabitEthernet0/0/0]ip address 23.1.1.1 24

Jan 4 2023 19:57:28-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP

on the interface GigabitEthernet0/0/0 has entered the UP state.

    • 配置物理接口,连接不同网段

下一跳做法

如:

[AR3]ip route-static 12.1.1.0 255.255.255.0 23.1.1.1

[AR3]

[AR3]ip route-static 12.1.1.0 255.255.255.0 34.1.1.2

[AR3]

3.配置环回接口 loopback

如:

[AR2]

[AR2]int LoopBack 0

[AR2-LoopBack0]ip add

[AR2-LoopBack0]ip address 2.2.2.2 24

[AR2-LoopBack0]

4.静态路由连接环回接口

下一跳做法

如:

[AR1]ip route-static 4.4.4.0 24 12.1.1.2

为确保全网可通在一个路由器中将另外三个都配置一遍

在AR1中将2、3、4的环回都配置一遍

在AR2中将1、3、4的环回都配置一遍

在AR3中将2、1、4的环回都配置一遍

在AR4中将2、3、1的环回都配置一遍

5.确保全网可通信

把非直连网段都用静态路由下一跳方法都配置一遍

如:AR1:需要配置23.1.1.0/24和34.1.1.0/24网段

AR2:需要配置14.1.1.0/24和34.1.1.0/24网段

AR3:需要配置12.1.1.0/24和14.1.1.0/24网段

AR4:需要配置23.1.1.0/24和12.1.1.0/24网段

6.ping命令测试各网络的连通性

AR1


  --- 14.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/24/30 ms

[AR1]
[AR1]ping 34.1.1.1
  PING 34.1.1.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 34.1.1.1 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[AR1]ip route-static 34.1.1.0 255.255.255.0 14.1.1.1
[AR1]
[AR1]ping 34.1.1.1
  PING 34.1.1.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 34.1.1.1 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[AR1]ping 34.1.1.1
  PING 34.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 34.1.1.1: bytes=56 Sequence=1 ttl=254 time=20 ms
    Reply from 34.1.1.1: bytes=56 Sequence=2 ttl=254 time=30 ms
    Reply from 34.1.1.1: bytes=56 Sequence=3 ttl=254 time=20 ms
    Reply from 34.1.1.1: bytes=56 Sequence=4 ttl=254 time=20 ms
    Reply from 34.1.1.1: bytes=56 Sequence=5 ttl=254 time=20 ms

  --- 34.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/22/30 ms

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

  --- 34.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/18/30 ms

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

  --- 23.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/26/40 ms

[AR1]ping 14.1.1.2
  PING 14.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 14.1.1.2: bytes=56 Sequence=1 ttl=255 time=1 ms
    Reply from 14.1.1.2: bytes=56 Sequence=2 ttl=255 time=1 ms
    Reply from 14.1.1.2: bytes=56 Sequence=3 ttl=255 time=1 ms
    Reply from 14.1.1.2: bytes=56 Sequence=4 ttl=255 time=1 ms
    Reply from 14.1.1.2: bytes=56 Sequence=5 ttl=255 time=1 ms

  --- 14.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 1/1/1 ms

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

  --- 12.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/20/30 ms

[AR1]ip ro    
[AR1]ip route-static 3.3.3.0 24 12.1.1.2
Error: The route already exists.
[AR1]ip route-static 4.4.4.0 24 12.1.1.2
[AR1]ping 2.2.2.0
  PING 2.2.2.0: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 2.2.2.0 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[AR1]ip route-static 2.2.2.0 24 12.1.1.2
[AR1]
[AR1]ping 2.2.2.2
  PING 2.2.2.2: 56  data bytes, press CTRL_C to break
    Reply from 2.2.2.2: bytes=56 Sequence=1 ttl=255 time=40 ms
    Reply from 2.2.2.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 2.2.2.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 2.2.2.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 2.2.2.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/40 ms

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

  --- 3.3.3.3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/26/40 ms

[AR1]ping 4.4.4.4
  PING 4.4.4.4: 56  data bytes, press CTRL_C to break
    Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=253 time=50 ms
    Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=253 time=30 ms
    Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=253 time=30 ms
    Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=253 time=30 ms
    Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=253 time=30 ms

  --- 4.4.4.4 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/34/50 ms

[AR1]dis ip routing-table protocol static
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 6        Routes : 7        Configured Routes : 7

Static routing table status : <Active>
         Destinations : 5        Routes : 6

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        2.2.2.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/0
        3.3.3.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/0
        4.4.4.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/0
       23.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/0
       34.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/0
                    Static  60   0          RD   14.1.1.1        GigabitEthernet
0/0/1

Static routing table status : <Inactive>
         Destinations : 1        Routes : 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       12.1.1.0/24  Static  60   0          R    23.1.1.1        GigabitEthernet
0/0/0

[AR1]

AR2

Please press enter to start cmd line!
################################################################################
############################################
<Huawei>
Jan  4 2023 18:34:36-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>
Jan  4 2023 18:34:36-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEt
hernet0/0/1 has turned into UP state.
<Huawei>
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR2
[AR2]user-in    
[AR2]user-interface co    
[AR2]user-interface console 0
[AR2-ui-console0]id    
[AR2-ui-console0]idle-timeout 0 0
[AR2-ui-console0]q
[AR2]q
<AR2>system-view
Enter system view, return user view with Ctrl+Z.
[AR2]int    
[AR2]interface g    
[AR2]interface GigabitEthernet 0/0/1
[AR2-GigabitEthernet0/0/1]ip add    
[AR2-GigabitEthernet0/0/1]ip address 12.1.1.2 24
Jan  4 2023 19:55:12-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[AR2-GigabitEthernet0/0/1]
[AR2-GigabitEthernet0/0/1]q
[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]ip add    
[AR2-GigabitEthernet0/0/0]ip address 23.1.1.1 24
Jan  4 2023 19:57:28-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR2-GigabitEthernet0/0/0]
[AR2-GigabitEthernet0/0/0]dis ip int bri
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              23.1.1.1/24          up         up        
GigabitEthernet0/0/1              12.1.1.2/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[AR2-GigabitEthernet0/0/0]ping 23.1.1.2
  PING 23.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 23.1.1.2: bytes=56 Sequence=1 ttl=255 time=60 ms
    Reply from 23.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 23.1.1.2: bytes=56 Sequence=3 ttl=255 time=10 ms
    Reply from 23.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 23.1.1.2: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 23.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/26/60 ms

[AR2-GigabitEthernet0/0/0]
[AR2-GigabitEthernet0/0/0]q
[AR2]
[AR2]int LoopBack 0
[AR2-LoopBack0]ip add    
[AR2-LoopBack0]ip address 2.2.2.2/24
                          ^
Error: Wrong parameter found at '^' position.
[AR2-LoopBack0]ip add    
[AR2-LoopBack0]ip address 2.2.2.2 24
[AR2-LoopBack0]
[AR2-LoopBack0]ip route-static 34.1.1.0 255.255.255.0 23.1.1.2
[AR2]
[AR2]ip route-static 14.1.1.0 255.255.255.0 23.1.1.2
[AR2]ip route-static 34.1.1.0 255.255.255.0 23.1.1.2
Error: The route already exists.
[AR2]ping 23.1.1.2
  PING 23.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 23.1.1.2: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 23.1.1.2: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 23.1.1.2: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 23.1.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 23.1.1.2: bytes=56 Sequence=5 ttl=255 time=10 ms

  --- 23.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/24/30 ms

[AR2]ping 34.1.1.2
  PING 34.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 34.1.1.2: bytes=56 Sequence=1 ttl=254 time=30 ms
    Reply from 34.1.1.2: bytes=56 Sequence=2 ttl=254 time=30 ms
    Reply from 34.1.1.2: bytes=56 Sequence=3 ttl=254 time=20 ms
    Reply from 34.1.1.2: bytes=56 Sequence=4 ttl=254 time=20 ms
    Reply from 34.1.1.2: bytes=56 Sequence=5 ttl=254 time=20 ms

  --- 34.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/24/30 ms

[AR2]ping
          ^
Error:Incomplete command found at '^' position.
[AR2]ping 14.1.1.2
  PING 14.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 14.1.1.2: bytes=56 Sequence=1 ttl=255 time=40 ms
    Reply from 14.1.1.2: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 14.1.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 14.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 14.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms

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

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

  --- 12.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/22/30 ms

[AR2]
[AR2]ip route-static 3.3.3.0 24 23.1.1.2
[AR2]
[AR2]ip route-static 4.4.4.0 24 23.1.1.2
[AR2]
[AR2]ip route-static 1.1.1.0 24 23.1.1.2
[AR2]
[AR2]
[AR2]ping 1.1.1.1
  PING 1.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=255 time=40 ms
    Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 1.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/40 ms

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

  --- 3.3.3.3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/22/30 ms

[AR2]ping 4.4.4.4
  PING 4.4.4.4: 56  data bytes, press CTRL_C to break
    Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=254 time=30 ms
    Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=254 time=20 ms
    Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=254 time=20 ms
    Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=254 time=40 ms
    Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=254 time=40 ms

  --- 4.4.4.4 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/30/40 ms

[AR2]dis ip rou    
[AR2]dis ip routing-table protocol sta    
[AR2]dis ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 5        Routes : 5        Configured Routes : 5

Static routing table status : <Active>
         Destinations : 5        Routes : 5

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/0
        3.3.3.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/0
        4.4.4.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/0
       14.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/0
       34.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/0

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

[AR2]

AR3

The device is running!

<Huawei>system-vim
        ^
Error: Unrecognized command found at '^' position.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR3
[AR3]user-in
             ^
Error:Incomplete command found at '^' position.
[AR3]user-in    
[AR3]user-interface co    
[AR3]user-interface console 0
[AR3-ui-console0]id    
[AR3-ui-console0]idle-timeout 0 0
[AR3-ui-console0]q
[AR3]q
<AR3>q

  Configuration console exit, please press any key to log on

<AR3>
<AR3>system-view
Enter system view, return user view with Ctrl+Z.
[AR3]int    
[AR3]interface c    
[AR3]interface g    
[AR3]interface GigabitEthernet 0/0/1
[AR3-GigabitEthernet0/0/1]ip add    
[AR3-GigabitEthernet0/0/1]ip address 23.1.1.2 24
Jan  4 2023 20:00:05-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[AR3-GigabitEthernet0/0/1]q
[AR3]interface GigabitEthernet 0/0/0
[AR3-GigabitEthernet0/0/0]ip add    
[AR3-GigabitEthernet0/0/0]ip address 34.1.1.1 24
Jan  4 2023 20:01:26-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR3-GigabitEthernet0/0/0]
[AR3-GigabitEthernet0/0/0]dis ip int bri
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              34.1.1.1/24          up         up        
GigabitEthernet0/0/1              23.1.1.2/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[AR3-GigabitEthernet0/0/0]ping34.1.1.2
                          ^
Error: Unrecognized command found at '^' position.
[AR3-GigabitEthernet0/0/0]ping 34.1.1.2
  PING 34.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 34.1.1.2: bytes=56 Sequence=1 ttl=255 time=40 ms
    Reply from 34.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 34.1.1.2: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 34.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 34.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms

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

[AR3-GigabitEthernet0/0/0]
[AR3-GigabitEthernet0/0/0]
[AR3-GigabitEthernet0/0/0]q
[AR3]
[AR3]int LoopBack 0
[AR3-LoopBack0]
[AR3-LoopBack0]ip add    
[AR3-LoopBack0]ip address 3.3.3.3 24
[AR3-LoopBack0]
[AR3-LoopBack0]q
[AR3]
[AR3]ip ro    
[AR3]ip route-    
[AR3]ip route-static 1.1.1.0 24 23.1.1.1
[AR3]
[AR3]
[AR3]ip route-static 12.1.1.0 255.255.255.0 23.1.1.1
[AR3]
[AR3]ip route-static 12.1.1.0 255.255.255.0 34.1.1.2
[AR3]
[AR3]ip route-static 14.1.1.0 24 34.1.1.2
[AR3]
[AR3]ip route-static 12.1.1.0 24 34.1.1.2
Error: The route already exists.
[AR3]
[AR3]ping 34.1.1.2
  PING 34.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 34.1.1.2: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 34.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 34.1.1.2: bytes=56 Sequence=3 ttl=255 time=10 ms
    Reply from 34.1.1.2: bytes=56 Sequence=4 ttl=255 time=10 ms
    Reply from 34.1.1.2: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 34.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/16/20 ms

[AR3]ping 14.1.1.2
  PING 14.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 14.1.1.2: bytes=56 Sequence=1 ttl=254 time=20 ms
    Reply from 14.1.1.2: bytes=56 Sequence=2 ttl=254 time=40 ms
    Reply from 14.1.1.2: bytes=56 Sequence=3 ttl=254 time=20 ms
    Reply from 14.1.1.2: bytes=56 Sequence=4 ttl=254 time=30 ms
    Reply from 14.1.1.2: bytes=56 Sequence=5 ttl=254 time=20 ms

  --- 14.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/40 ms

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

  --- 12.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/26/40 ms

[AR3]ping 12.1.1.1
  PING 12.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 12.1.1.1: bytes=56 Sequence=1 ttl=254 time=30 ms
    Reply from 12.1.1.1: bytes=56 Sequence=2 ttl=254 time=20 ms
    Reply from 12.1.1.1: bytes=56 Sequence=3 ttl=254 time=20 ms
    Reply from 12.1.1.1: bytes=56 Sequence=4 ttl=254 time=30 ms
    Reply from 12.1.1.1: bytes=56 Sequence=5 ttl=254 time=30 ms

  --- 12.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/30 ms

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

  --- 23.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/16/30 ms

[AR3]ip route-static 4.4.4.0 24 34.1.1.2
[AR3]ip route-static 1.1.1.0 24 34.1.1.2
[AR3]ip route-static 2.2.2.0 24 34.1.1.2
[AR3]
[AR3]ping 4.4.4.4
  PING 4.4.4.4: 56  data bytes, press CTRL_C to break
    Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=255 time=10 ms
    Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=255 time=10 ms
    Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=255 time=10 ms

  --- 4.4.4.4 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/16/30 ms

[AR3]ping 1.1.1.1
  PING 1.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=254 time=30 ms
    Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=254 time=30 ms
    Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=254 time=40 ms
    Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=254 time=30 ms
    Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=254 time=40 ms

  --- 1.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/34/40 ms

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

  --- 2.2.2.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/30 ms

[AR3]

AR4

    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

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

  --- 3.3.3.3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/22/30 ms

[AR4]ping 2.2.2.1
  PING 2.2.2.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 2.2.2.1 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[AR4]ip route-static 2.2.2.0 24 14.1.1.2
Error: The route already exists.
[AR4]ping 2.2.2.2
  PING 2.2.2.2: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 2.2.2.2 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[AR4]dis ro    
[AR4]dis rout    
[AR4]dis routing-    
[AR4]dis routing-ta    
[AR4]dis routing-table
         ^
Error: Wrong parameter found at '^' position.
[AR4]dis    
[AR4]display ro    
[AR4]display routing-table
             ^
Error: Wrong parameter found at '^' position.
[AR4]ip route-static 2.2.2.0 24 14.1.1.0
<AR4>system-view
Enter system view, return user view with Ctrl+Z.
[AR4]dis    
[AR4]display routing-table 
             ^
Error: Wrong parameter found at '^' position.
[AR4]dis ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 5        Routes : 7        Configured Routes : 7

Static routing table status : <Active>
         Destinations : 5        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
        2.2.2.0/24  Static  60   0          RD   14.1.1.0        GigabitEthernet
0/0/0
                    Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
        3.3.3.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
       12.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/1
                    Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
       23.1.1.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

[AR4]
[AR4]undo ip route-static 2.2.2.0 24 14.1.1.0
[AR4]undo ip route-static 2.2.2.0 24 14.1.1.2
[AR4]dis ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 4        Routes : 5        Configured Routes : 5

Static routing table status : <Active>
         Destinations : 4        Routes : 5

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
        3.3.3.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
       12.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/1
                    Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
       23.1.1.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

[AR4]dis ip routing-table protocol static
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 4        Routes : 5        Configured Routes : 5

Static routing table status : <Active>
         Destinations : 4        Routes : 5

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
        3.3.3.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
       12.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/1
                    Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0
       23.1.1.0/24  Static  60   0          RD   14.1.1.2        GigabitEthernet
0/0/0

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

[AR4]ip route-static 2.2.2.0 24 14.1.1.2
[AR4]ping 2.2.2.2
  PING 2.2.2.2: 56  data bytes, press CTRL_C to break
    Reply from 2.2.2.2: bytes=56 Sequence=1 ttl=254 time=20 ms
    Reply from 2.2.2.2: bytes=56 Sequence=2 ttl=254 time=20 ms
    Reply from 2.2.2.2: bytes=56 Sequence=3 ttl=254 time=30 ms
    Reply from 2.2.2.2: bytes=56 Sequence=4 ttl=254 time=20 ms
    Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=254 time=20 ms

  --- 2.2.2.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/22/30 ms

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

  --- 14.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/24/30 ms

[AR4]ping 12.1.1.2
  PING 12.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 12.1.1.2: bytes=56 Sequence=1 ttl=254 time=30 ms
    Reply from 12.1.1.2: bytes=56 Sequence=2 ttl=254 time=20 ms
    Reply from 12.1.1.2: bytes=56 Sequence=3 ttl=254 time=20 ms
    Reply from 12.1.1.2: bytes=56 Sequence=4 ttl=254 time=20 ms
    Reply from 12.1.1.2: bytes=56 Sequence=5 ttl=254 time=20 ms

  --- 12.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/22/30 ms

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

  --- 23.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/24/30 ms

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

  --- 34.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/30 ms

[AR4]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值