HCIA第三天

(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              172.16.1.1/24        up         up        
GigabitEthernet0/0/1              12.1.1.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
<r1>
<r1>
<r1>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=30 ms
    Reply from 23.1.1.2: bytes=56 Sequence=3 ttl=254 time=50 ms
    Reply from 23.1.1.2: bytes=56 Sequence=4 ttl=254 time=40 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 = 30/38/50 ms

<r1>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=30 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=30 ms
    Reply from 34.1.1.1: bytes=56 Sequence=5 ttl=254 time=40 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/30/40 ms

<r1>
<r1>ping 46.1.1.1
  PING 46.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

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

<r1>ping 46.1.1.1
  PING 46.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

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

<r1>ping 32.1.1.1
  PING 32.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 32.1.1.1: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 32.1.1.1: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 32.1.1.1: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 32.1.1.1: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 32.1.1.1: bytes=56 Sequence=5 ttl=255 time=30 ms

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

<r1>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=30 ms
    Reply from 34.1.1.1: bytes=56 Sequence=4 ttl=254 time=40 ms
    Reply from 34.1.1.1: bytes=56 Sequence=5 ttl=254 time=40 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/32/40 ms

<r1>ping 46.1.1.1
  PING 46.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

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

<r1>ping 34.1.1.2
  PING 34.1.1.2: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
<r1>dis    
<r1>display ip r    
<r1>display ip rd-filter
<r1>display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 15       Routes : 15       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       12.1.1.0/24  Direct  0    0           D   12.1.1.1        GigabitEthernet
0/0/1
       12.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
       23.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       32.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       34.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       46.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
      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
     172.16.1.0/24  Direct  0    0           D   172.16.1.1      GigabitEthernet
0/0/0
     172.16.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   172.16.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    192.168.0.0/22  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

<r1>
<r1>ping 46.1.1.1
  PING 46.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 46.1.1.1: bytes=56 Sequence=1 ttl=253 time=50 ms
    Reply from 46.1.1.1: bytes=56 Sequence=2 ttl=253 time=40 ms
    Reply from 46.1.1.1: bytes=56 Sequence=3 ttl=253 time=40 ms
    Reply from 46.1.1.1: bytes=56 Sequence=4 ttl=253 time=30 ms
    Reply from 46.1.1.1: bytes=56 Sequence=5 ttl=253 time=40 ms

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

<r1>ping 192.168.1.1
  PING 192.168.1.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=252 time=40 ms
    Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=252 time=60 ms
    Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=252 time=30 ms
    Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=252 time=40 ms
    Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=252 time=60 ms

  --- 192.168.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/46/60 ms

<r1>
<r1>
<r1>sy    
<r1>system-view 
Enter system view, return user view with Ctrl+Z.
[r1]ipcr    
[r1]ip r    
[r1]ip rd-filter
[r1]ip relay
[r1]ip route
[r1]ip route-static 32.1.1.0 24 12.1.1.2 pre    
[r1]ip route-static 32.1.1.0 24 12.1.1.2 preference 61
Info: Succeeded in modifying route.
[r1]dis    
[r1]display ip r    
[r1]display ip rd-filter
[r1]display ip routing-table
[r1]display ip rd-filter
[r1]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 15       Routes : 15       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       12.1.1.0/24  Direct  0    0           D   12.1.1.1        GigabitEthernet
0/0/1
       12.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
       23.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       32.1.1.0/24  Static  61   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       34.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       46.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
      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
     172.16.1.0/24  Direct  0    0           D   172.16.1.1      GigabitEthernet
0/0/0
     172.16.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   172.16.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    192.168.0.0/22  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0


<Huawei>sy    
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sy r2
[r2]int    
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip ad    
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
Nov 14 2022 20:12: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]int g0/0/1
[r2-GigabitEthernet0/0/1]ip ad    
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
Nov 14 2022 20:13:31-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]int g0/0/2
[r2-GigabitEthernet0/0/2]ip ad    
[r2-GigabitEthernet0/0/2]ip address 32.1.1.2 24
Nov 14 2022 20:13:59-08:00 r2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r2-GigabitEthernet0/0/2]undo ip ad    
[r2-GigabitEthernet0/0/2]undo ip address 32.1.1.2 24
Nov 14 2022 20:14:29-08:00 r2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the DOWN state. 
[r2-GigabitEthernet0/0/2]ip ad    
[r2-GigabitEthernet0/0/2]ip address 32.1.1.1 24
Nov 14 2022 20:14:44-08:00 r2 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r2-GigabitEthernet0/0/2]
[r2-GigabitEthernet0/0/2]
[r2-GigabitEthernet0/0/2]
[r2-GigabitEthernet0/0/2]qu    
[r2-GigabitEthernet0/0/2]quit 
[r2]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=110 ms
    Reply from 12.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 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=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 = 10/40/110 ms

[r2]
[r2]ip r    
[r2]ip rd-filter
[r2]ip relay
[r2]ip route
[r2]ip route-static 172.16.1.0 24 12.1.1.1
[r2]ip route-static 34.1.1.0 24 23.1.1.2
[r2]ip route-static 34.1.1.0 24 32.1.1.2
[r2]ip route-static 46.1.1.0 24 32.1.1.2
[r2]ip route-static 46.1.1.0 24 23.1.1.2
[r2]ip route-static 192.168.0.0 22 23.1.1.2
[r2]ip route-static 192.168.0.0 22 32.1.1.2
[r2]
[r2]
<r2>dis    
<r2>display ip in    
<r2>display ip interface b    
<r2>display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.1.1.2/24          up         up        
GigabitEthernet0/0/1              23.1.1.1/24          up         up        
GigabitEthernet0/0/2              32.1.1.1/24          up         up        
GigabitEthernet4/0/0              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
<r2>
<r2>
<r2>ping 46.1.1.1
  PING 46.1.1.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
<r2>
<r2>dis    
<r2>display ip r    
<r2>display ip rd-filter
<r2>display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 17       Routes : 20       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       12.1.1.0/24  Direct  0    0           D   12.1.1.2        GigabitEthernet
0/0/0
       12.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
       23.1.1.0/24  Direct  0    0           D   23.1.1.1        GigabitEthernet
0/0/1
       23.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     23.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
       32.1.1.0/24  Direct  0    0           D   32.1.1.1        GigabitEthernet
0/0/2
       32.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
     32.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
       34.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1
                    Static  60   0          RD   32.1.1.2        GigabitEthernet
0/0/2
       46.1.1.0/24  Static  60   0          RD   32.1.1.2        GigabitEthernet
0/0/2
                    Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1
      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
     172.16.1.0/24  Static  60   0          RD   12.1.1.1        GigabitEthernet
0/0/0
    192.168.0.0/22  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1
                    Static  60   0          RD   32.1.1.2        GigabitEthernet
0/0/2
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

<r2>
<r2>
<r2>ping 34.1.1.2
  PING 34.1.1.2: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
<r2>
<r2>
<r2>syq    
<r2>sy    
<r2>system-view 
Enter system view, return user view with Ctrl+Z.
[r2]ip r    
[r2]ip rd-filter
[r2]ip relay
[r2]ip route 32.1.1.0 24 32.1.1.2 pr    
[r2]ip route 32.1.1.0 24 32.1.1.2 pre    
[r2]ip r    
[r2]ip route-static 32.1.1.0 24 32.1.1.2 p    
[r2]ip route-static 32.1.1.0 24 32.1.1.2 permanent
[r2]ip route-static 32.1.1.0 24 32.1.1.2 preference 1
[r2]diis    
[r2]dis    
[r2]display ip r    
[r2]display ip rd-filter
[r2]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 17       Routes : 20       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       12.1.1.0/24  Direct  0    0           D   12.1.1.2        GigabitEthernet
0/0/0
       12.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
       23.1.1.0/24  Direct  0    0           D   23.1.1.1        GigabitEthernet
0/0/1
       23.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     23.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
       32.1.1.0/24  Direct  0    0           D   32.1.1.1        GigabitEthernet
0/0/2
       32.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
     32.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
       34.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1
                    Static  60   0          RD   32.1.1.2        GigabitEthernet
0/0/2
       46.1.1.0/24  Static  60   0          RD   32.1.1.2        GigabitEthernet
0/0/2
                    Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1
      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
     172.16.1.0/24  Static  60   0          RD   12.1.1.1        GigabitEthernet
0/0/0
    192.168.0.0/22  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1
                    Static  60   0          RD   32.1.1.2        GigabitEthernet
0/0/2
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0


<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy r3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip ad    
[r3-GigabitEthernet0/0/0]ip address 23.1.1.1 24
Nov 14 2022 20:15:46-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]
Nov 14 2022 20:15:47-08:00 r3 ARP/4/ARP_IPCONFLICT_TRAP:OID 16777216.50331648.10
0663296.16777216.67108864.16777216.3674669056.83886080.419430400.2063597568.3355
4432.100663296 ARP detects IP conflict. (IP address=1.1.1.23, Local interface=Gi
gabitEthernet0/0/0, Local MAC=00e0-fc75-205c, Local vlan=0, Local CE vlan=0, Rec
eive interface=GigabitEthernet0/0/0, Receive MAC=00e0-fcfb-4615, Receive vlan=0,
 Receive CE vlan=0, IP conflict type=Local IP conflict). 
[r3-GigabitEthernet0/0/0]
Nov 14 2022 20:15:47-08:00 r3 %%01ARP/4/ARP_DUPLICATE_IPADDR(l)[1]:Received an A
RP packet with a duplicate IP address from the interface. (IpAddress=1.1.1.23, I
nterfaceName=GigabitEthernet0/0/0, MacAddress=00e0-fcfb-4615) 
[r3-GigabitEthernet0/0/0]
[r3-GigabitEthernet0/0/0]
[r3-GigabitEthernet0/0/0]
[r3-GigabitEthernet0/0/0]undo ip ad    
[r3-GigabitEthernet0/0/0]undo ip address 23.1.1.1 24
Nov 14 2022 20:16:39-08:00 r3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the DOWN state. 
[r3-GigabitEthernet0/0/0]ip ad    
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
Nov 14 2022 20:16:51-08:00 r3 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip ad    
[r3-GigabitEthernet0/0/1]ip address 32.1.1.2 24
[r3-GigabitEthernet0/0/1]
Nov 14 2022 20:17:17-08:00 r3 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r3-GigabitEthernet0/0/1]int ip ad    
[r3-GigabitEthernet0/0/1]int g0/0/2
[r3-GigabitEthernet0/0/2]ip ad    
[r3-GigabitEthernet0/0/2]ip address 34.1.1.1 24
[r3-GigabitEthernet0/0/2]
Nov 14 2022 20:17:38-08:00 r3 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r3-GigabitEthernet0/0/2]
[r3-GigabitEthernet0/0/2]
[r3-GigabitEthernet0/0/2]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=130 ms
    Reply from 23.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 23.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 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=30 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/42/130 ms

[r3-GigabitEthernet0/0/2]qu    
[r3-GigabitEthernet0/0/2]quit 
[r3]ping 32.1.1.1
  PING 32.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 32.1.1.1: bytes=56 Sequence=1 ttl=255 time=50 ms
    Reply from 32.1.1.1: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 32.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 32.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 32.1.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms

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

[r3]
<r3>sy    
<r3>system-view 
Enter system view, return user view with Ctrl+Z.
[r3]ip r    
[r3]ip rd-filter
[r3]ip relay
[r3]ip route
[r3]ip route-static 12.1.1.0 24 23.1.1.1
[r3]ip route-static 12.1.1.0 24 32.1.1.1
[r3]ip route-static 172.16.1.0 24 23.1.1.1
[r3]ip route-static 172.16.1.0 24 32.1.1.1
[r3]ip route-static 46.1.1.0 24 34.1.1.2
[r3]ip route-static 192.168.0.0 22 34.1.1.2
[r3]
<r3>dis    
<r3>display ip in    
<r3>display ip interface b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              23.1.1.2/24          up         up        
GigabitEthernet0/0/1              32.1.1.2/24          up         up        
GigabitEthernet0/0/2              34.1.1.1/24          up         up        
NULL0                             unassigned           up         up(s)     
<r3>
<r3>
<r3>
<r3>
<r3>
<r3>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=30 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=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

The device is running!

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy r4
[r4]int    
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip ad    
[r4-GigabitEthernet0/0/0]ip address 34.1.1.2 24
[r4-GigabitEthernet0/0/0]
Nov 14 2022 20:18:21-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/2
[r4-GigabitEthernet0/0/2]ip ad    
[r4-GigabitEthernet0/0/2]ip address 46.1.1.1 24
[r4-GigabitEthernet0/0/2]
Nov 14 2022 20:18:39-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]
<r4>ping 12.1.1.1
  PING 12.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

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

<r4>ping 12.1.1.1
  PING 12.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

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

<r4>ping 23.1.1.1
  PING 23.1.1.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
<r4>
<r4>192.168.1.1
    ^
Error: Unrecognized command found at '^' position.
<r4>ping 192.168.1.1
  PING 192.168.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

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

<r4>ping 192.168.1.1.1
Error: Unknown host 192.168.1.1.1.
<r4>pimg 192.168.1.1
    ^
Error: Unrecognized command found at '^' position.
<r4>ping 192.168.1.1
  PING 192.168.1.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
<r4>
<r4>dis    
<r4>display ip r    
<r4>display ip rd-filter
<r4>display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 10       Routes : 10       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       34.1.1.0/24  Direct  0    0           D   34.1.1.2        GigabitEthernet
0/0/0
       34.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
     34.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
       46.1.1.0/24  Direct  0    0           D   46.1.1.1        GigabitEthernet
0/0/2
       46.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
     46.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
      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
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

<r4>ip r    
<r4>ip r
<r4>sy    
<r4>system-view 
Enter system view, return user view with Ctrl+Z.
[r4]ip r    
[r4]ip rd-filter
[r4]ip relay
[r4]ip route
[r4]ip route-static
                    ^
Error:Incomplete command found at '^' position.
[r4]ip route-static 172.16.1.0 24 34.1.1.1
[r4]ip route-static 12.1.1.0 24 24 34.1.1.1
                                ^
Error: Wrong parameter found at '^' position.
[r4]ip route-static 12.1.1.0 24  34.1.1.1
[r4]ip route-static 23.1.1.0 24 34.1.1.1
[r4]ip route-static 32.1.1.0 24 34.1.1.1
[r4]ip route-static 192.168.0.0 22 46.1.1.2
[r4]
<r4>sy    
<r4>system-view 
Enter system view, return user view with Ctrl+Z.
[r4]ip r    
[r4]ip rd-filter
[r4]ip relay
[r4]ip route
[r4]ip route-static 32.1.1.0 24 34.1.1.1
Error: The route already exists.
[r4]ip route-static 32.1.1.0 24 34.1.1.1 pr    
[r4]ip route-static 32.1.1.0 24 34.1.1.1 preference 61
Info: Succeeded in modifying route.
[r4]
<r4>

The device is running!

<Huawei>
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy r6
[r6]dh    
[r6]dhcp en    
[r6]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r6]ip pool    
[r6]ip pool 2
Info: It's successful to create an IP address pool.
[r6-ip-pool-2]net    
[r6-ip-pool-2]netbios-type
[r6-ip-pool-2]network 192.168.1.0 m    
[r6-ip-pool-2]network 192.168.1.0 mask 24
[r6-ip-pool-2]gat    
[r6-ip-pool-2]gateway-list 192.168.1.1 
[r6-ip-pool-2]dns    
[r6-ip-pool-2]dns-list 8.8.8.8 114.114.114.114
[r6-ip-pool-2]ip p    
[r6-ip-pool-2]qu    
[r6-ip-pool-2]quit 
[r6]ip po    
[r6]ip policy-based-route
[r6]ip pool 3
Info: It's successful to create an IP address pool.
[r6-ip-pool-3]net    
[r6-ip-pool-3]netbios-type
[r6-ip-pool-3]network 192.168.2.0 ma    
[r6-ip-pool-3]network 192.168.2.0 mask 
[r6-ip-pool-3]network 192.168.2.0 mask 24
[r6-ip-pool-3]gat    
[r6-ip-pool-3]gateway-list 192.168.2.1
[r6-ip-pool-3]dns    
[r6-ip-pool-3]dns-list 8.8.8.8 114.114.114.114
[r6-ip-pool-3]qu    
[r6-ip-pool-3]quit 
[r6]int    
[r6]interface g0/0/1
[r6-GigabitEthernet0/0/1]ip ad    
[r6-GigabitEthernet0/0/1]ip address 192.168.1.1 24
[r6-GigabitEthernet0/0/1]
Nov 14 2022 20:04:14-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r6-GigabitEthernet0/0/1]int g0/0/2
[r6-GigabitEthernet0/0/2]ip ad    
[r6-GigabitEthernet0/0/2]ip address 192.168.2.1
                                                ^
Error:Incomplete command found at '^' position.
[r6-GigabitEthernet0/0/2]ip ad    
[r6-GigabitEthernet0/0/2]ip address 192.168.2.1 24
Nov 14 2022 20:04:35-08:00 r6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r6-GigabitEthernet0/0/2]dh    
[r6-GigabitEthernet0/0/2]dhcp s    
[r6-GigabitEthernet0/0/2]dhcp select g    
[r6-GigabitEthernet0/0/2]dhcp select global 
[r6-GigabitEthernet0/0/2]int g0/0/1
[r6-GigabitEthernet0/0/1]dh    
[r6-GigabitEthernet0/0/1]dhcp  s    
[r6-GigabitEthernet0/0/1]dhcp  select g    
[r6-GigabitEthernet0/0/1]dhcp  select global 
[r6-GigabitEthernet0/0/1]undo dh    
[r6-GigabitEthernet0/0/1]undo dhcp  s    
[r6-GigabitEthernet0/0/1]undo dhcp  select g    
[r6-GigabitEthernet0/0/1]undo dhcp  select global 
[r6-GigabitEthernet0/0/1]int    
[r6-GigabitEthernet0/0/1]int g0/0/2
[r6-GigabitEthernet0/0/2]undo dh    
[r6-GigabitEthernet0/0/2]undo dhcp  s    
[r6-GigabitEthernet0/0/2]undo dhcp  select g    
[r6-GigabitEthernet0/0/2]undo dhcp  select global 
[r6-GigabitEthernet0/0/2]qu    
[r6-GigabitEthernet0/0/2]quit 
[r6]ip p    
[r6]ip policy-based-route
[r6]ip pool 2
[r6-ip-pool-2]e    
[r6-ip-pool-2]excluded-ip-address 192.168.1.250 192.168.1.254
[r6-ip-pool-2]qu    
[r6-ip-pool-2]quit 
[r6]ex    
[r6]ip p    
[r6]ip pool 3
[r6-ip-pool-3]ex    
[r6-ip-pool-3]excluded-ip-address 192.168.2.250 192.168.2.254
[r6-ip-pool-3]qu    
[r6-ip-pool-3]quit 
[r6]int g0/0/1
[r6-GigabitEthernet0/0/1]d    
[r6-GigabitEthernet0/0/1]ddns
[r6-GigabitEthernet0/0/1]description
[r6-GigabitEthernet0/0/1]dhcp s    
[r6-GigabitEthernet0/0/1]dhcp select g    
[r6-GigabitEthernet0/0/1]dhcp select global 
[r6-GigabitEthernet0/0/1]int    
[r6-GigabitEthernet0/0/1]int g0/0/2
[r6-GigabitEthernet0/0/2]dh    
[r6-GigabitEthernet0/0/2]dhcp s    
[r6-GigabitEthernet0/0/2]dhcp selectg    
[r6-GigabitEthernet0/0/2]dhcp select g    
[r6-GigabitEthernet0/0/2]dhcp select global 
[r6-GigabitEthernet0/0/2]qu    
[r6-GigabitEthernet0/0/2]quit 
[r6]
<r6>sy
Enter system view, return user view with Ctrl+Z.
[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]ip ad    
[r6-GigabitEthernet0/0/0]ip address 46.1.1.2 24
Nov 14 2022 20:19:26-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]
[r6-GigabitEthernet0/0/0]
[r6-GigabitEthernet0/0/0]qu    
[r6-GigabitEthernet0/0/0]quit 
[r6]ping 46.1.1.1
  PING 46.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 46.1.1.1: bytes=56 Sequence=1 ttl=255 time=150 ms
    Reply from 46.1.1.1: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 46.1.1.1: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 46.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 46.1.1.1: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 46.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/52/150 ms

[r6]
<r6>sy
Enter system view, return user view with Ctrl+Z.
[r6]172.16.1.0 24 46.1.11
    ^
Error: Unrecognized command found at '^' position.
[r6]ip r    
[r6]ip rd-filter
[r6]ip relay
[r6]ip route
[r6]ip route-static 172.16.1.0 24 46.1.1.1
[r6]ip route-static 12.1.1.0 24 46.1.1.1
[r6]ip route-static 23.1.1.0 24 46.1.1.1
[r6]ip route-static 32.1.1.0 24 46.1.1.1
[r6]ip route-static 34.1.1.0 24 46.1.1.1
[r6]
<r6>ping 192.168.1.1
  PING 192.168.1.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=1 ms
    Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms
    Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=255 time=1 ms
    Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=255 time=1 ms
    Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=255 time=1 ms

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

<r6>
<r6>
<r6>ping 46.1.1.1
  PING 46.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 46.1.1.1: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 46.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 46.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 46.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 46.1.1.1: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 46.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

<r6>
<r6>sy    
<r6>system-view 
Enter system view, return user view with Ctrl+Z.
[r6]ip r    
[r6]ip rd-filter
[r6]ip relay
[r6]ip route
[r6]ip route-static
[r6]ip rpf-route-static
[r6]ip rd-filter
[r6]ip relay
[r6]ip route
[r6]ip route-static 32.1.1.0 24 46.1.1.1 pr    
[r6]ip route-static 32.1.1.0 24 46.1.1.1 preference 61
Info: Succeeded in modifying route.
[r6]
<r6>

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值