静态路由试验

 

一,分析题目

1.2分配IP地址和环回地址

3.缺省路由

4.尽量汇总;写空接口,避免环路

5,浮动静态

二,划分网段

 

根据拓扑图可以划分1个骨干链路和4个支干链路

192.168.1.00000000/24划分

192.168.1.000 00000 --- 192.168.1.0/27 --- 骨干链路

192.168.1.001 00000 --- 192.168.1.32/27 

192.168.1.010 00000 --- 192.168.1.64/27

192.168.1.011 00000 --- 192.168.1.96/27

192.168.1.100 00000 --- 192.168.1.128/27

网段:

192.168.1.000 000 00/27 --- 骨干链路 --- 划分

192.168.1.000 000 00/30 --- 192.168.1.0/30

192.168.1.000 001 00/30 --- 192.168.1.4/30

192.168.1.000 010 00/30 --- 192.168.1.8/30

192.168.1.000 011 00/30 --- 192.168.1.12/30

192.168.1.000 100 00/30 --- 192.168.1.16/30

192.168.1.000 101 00/30 --- 192.168.1.20/30

三,分配环回地址

R1:

192.168.1.001 00000 --- 192.168.1.32/27 --- 划分

192.168.1.001 0 0000 --- 192.168.1.32/28

192.168.1.001 1 0000 --- 192.168.1.48/28

R2:

192.168.1.010 00000 --- 192.168.1.64/27 --- 划分

192.168.1.010 0 0000 --- 192.168.1.64/28

192.168.1.010 1 0000 --- 192.168.1.80/28

R3:

192.168.1.011 00000 --- 192.168.1.96/27 --- 划分

192.168.1.011 0 0000 --- 192.168.1.96/28

192.168.1.011 1 0000 --- 192.168.1.112/28

R4:

192.168.1.100 00000 --- 192.168.1.128/27 --- 划分

192.168.1.100 0 0000 --- 192.168.1.128/28

192.168.1.100 1 0000 --- 192.168.1.144/28

四,配置IP地址,环回地址

R1:

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 30
Jan  7 2023 20:29:15-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]q
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.1.5 30
Jan  7 2023 20:29:53-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]int l0
[R1-LoopBack0]ip add 192.168.1.33 28
[R1-LoopBack0]q
[R1]int l1
[R1-LoopBack1]ip add 192.168.1.49 28
[R1-LoopBack1]q
[R1]dis    
[R1]display ip in    
[R1]display ip interface b    
[R1]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.1/30       up         up        
GigabitEthernet0/0/1              192.168.1.5/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.33/28      up         up(s)     
LoopBack1                         192.168.1.49/28      up         up(s)     
NULL0                             unassigned           up         up(s)     
 

R2:

<Huawei>SYS
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
Jan  7 2023 20:35:46-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]q
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.1.9 30
Jan  7 2023 20:36:25-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]q
[R2]int l0
[R2-LoopBack0]ip add 192.168.1.65 28
[R2-LoopBack0]int l1
[R2-LoopBack1]ip add 192.168.1.81 28
[R2-LoopBack1]q
[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 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.2/30       up         up        
GigabitEthernet0/0/1              192.168.1.9/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.65/28      up         up(s)     
LoopBack1                         192.168.1.81/28      up         up(s)     
NULL0                             unassigned           up         up(s)     

R3:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R3
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.1.6 30
Jan  7 2023 20:40:09-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]q
[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.1.13 30
[R3-GigabitEthernet0/0/1]
Jan  7 2023 20:40:48-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]q
[R3]int l0
[R3-LoopBack0]ip add 192.168.1.97 28
[R3-LoopBack0]int l1
[R3-LoopBack1]ip add 192.168.1.113 28
[R3-LoopBack1]q
[R3]dis    
[R3]display ip in    
[R3]display ip interface b    
[R3]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.6/30       up         up        
GigabitEthernet0/0/1              192.168.1.13/30      up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.97/28      up         up(s)     
LoopBack1                         192.168.1.113/28     up         up(s)     
NULL0          

R4:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R4
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.1.14 30
Jan  7 2023 20:45:20-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]q
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 192.168.1.10 30
Jan  7 2023 20:45:40-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]q
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 192.168.1.17 30
Jan  7 2023 20:46:03-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]q
[R4]int g4/0/0
[R4-GigabitEthernet4/0/0]ip add 192.168.1.21 30
[R4-GigabitEthernet4/0/0]
Jan  7 2023 20:46:35-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]q
[R4]int l0
[R4-LoopBack0]ip add 192.168.1.129 28
[R4-LoopBack0]int l1
[R4-LoopBack1]ip add 192.168.1.145 28
[R4-LoopBack1]q
[R4]dis    
[R4]display ip in    
[R4]display ip interface b    
[R4]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 7
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 7
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.14/30      up         up        
GigabitEthernet0/0/1              192.168.1.10/30      up         up        
GigabitEthernet0/0/2              192.168.1.17/30      up         up        
GigabitEthernet4/0/0              192.168.1.21/30      up         up        
LoopBack0                         192.168.1.129/28     up         up(s)     
LoopBack1                         192.168.1.145/28     up         up(s)     
NULL0                             unassigned           up         up(s)     
 

R5:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R5
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 192.168.1.18 30
Jan  7 2023 20:49:33-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]q
[R5]int g0/0/1
[R5-GigabitEthernet0/0/1]ip add 192.168.1.22 30
Jan  7 2023 20:49:57-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]q
[R5]int l0
[R5-LoopBack0]ip add 5.5.5.1 24
[R5-LoopBack0]q
[R5]dis    
[R5]display ip in    
[R5]display ip interface b    
[R5]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              192.168.1.18/30      up         up        
GigabitEthernet0/0/1              192.168.1.22/30      up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         5.5.5.1/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
 

五,配置静态路由

R1:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.64 27 192.168.1.2
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.96 27 192.168.1.6
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.128 27 192.168.1.2
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.128 27 192.168.1.6
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.8 30 192.168.1.2
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.12 30 192.168.1.6
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.16 30 192.168.1.2
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.16 30 192.168.1.6

R2:

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.32 27 192.168.1.1
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.128 27 192.168.1.10
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.96 27 192.168.1.1
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.96 27 192.168.1.10
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.4 30 192.168.1.1
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.12 30 192.168.1.10
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.16 30 192.168.1.10

R3:

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.32 27 192.168.1.5
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.128 27 192.168.1.14
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.64 27 192.168.1.5
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.64 27 192.168.1.14
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.0 30 192.168.1.5
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.8 30 192.168.1.14
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.16 30 192.168.1.14

R4:

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip ro    
[R4]ip route-st    
[R4]ip route-static 192.168.1.64 27 192.168.1.9
[R4]ip ro    
[R4]ip route-st    
[R4]ip route-static 192.168.1.96 27 192.168.1.13
[R4]ip ro    
[R4]ip route-st    
[R4]ip route-static 192.168.1.32 27 192.168.1.9
[R4]ip ro    
[R4]ip route-static 192.168.1.32 27 192.168.1.13
[R4]ip ro    
[R4]ip route-st    
[R4]ip route-static 192.168.1.0 30 192.168.1.9
[R4]ip ro    
[R4]ip route-st    
[R4]ip route-static 192.168.1.4 30 192.168.1.13

R5:

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.128 27 192.168.1.17
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.64 27 192.168.1.17
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.96 27 192.168.1.1
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.32 27 192.168.1.17
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.8 30 192.168.1.17
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.12 30 192.168.1.17
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.0 30 192.168.1.17
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.4 30 192.168.1.1

六,配置缺省

R1:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 0.0.0.0 0 192.168.1.2
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 0.0.0.0 0 192.168.1.6

R2:


<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 0.0.0.0 0 192.168.1.10

R3:


<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 0.0.0.0 0 192.168.1.14

R4:

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip ro    
[R4]ip route-st    
[R4]ip route-static 0.0.0.0 0 192.168.1.18
 

配置空接口

R1:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.32 27 null0

R2:

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.64 27 null0

R3:


<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.96 27 null0

R4:

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip ro    
[R4]ip route-st    
[R4]ip route-static 192.168.1.128 27 null0

九,浮动静态路由

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.20 30 192.168.1.2
[R1]ip ro    
[R1]ip route-st    
[R1]ip route-static 192.168.1.20 30 192.168.1.6

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip ro    
[R2]ip route-st    
[R2]ip route-static 192.168.1.20 30 192.168.1.10

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip ro    
[R3]ip route-st    
[R3]ip route-static 192.168.1.20 30 192.168.1.14

根据实验要求,正常情况走上面,异常情况走下面

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip ro    
[R4]ip route-st    
[R4]ip route-static 0.0.0.0 0 192.168.1.22 pre    
[R4]ip route-static 0.0.0.0 0 192.168.1.22 preference 61
[R4]display ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 7        Routes : 9        Configured Routes : 9

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   192.168.1.18    GigabitEthernet
0/0/2
    192.168.1.0/30  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
    192.168.1.4/30  Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
   192.168.1.32/27  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
                    Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
   192.168.1.64/27  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
   192.168.1.96/27  Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
  192.168.1.128/27  Static  60   0           D   0.0.0.0         NULL0

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  61   0          R    192.168.1.22    GigabitEthernet
4/0/0

对R5写回包路由

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]dis    
[R5]display this
[V200R003C00]
#
 sysname R5
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
ip route-static 192.168.1.0 255.255.255.252 192.168.1.17
ip route-static 192.168.1.4 255.255.255.252 192.168.1.17
ip route-static 192.168.1.8 255.255.255.252 192.168.1.17
ip route-static 192.168.1.12 255.255.255.252 192.168.1.17
ip route-static 192.168.1.32 255.255.255.224 192.168.1.17
ip route-static 192.168.1.64 255.255.255.224 192.168.1.17
ip route-static 192.168.1.96 255.255.255.224 192.168.1.17
ip route-static 192.168.1.128 255.255.255.224 192.168.1.17
#
return
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.0 255.255.255.252 192.168.1.21 pre 61
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.4 255.255.255.252 192.168.1.21 pre 61
[R5]ip route-static 192.168.1.8 255.255.255.252 192.168.1.21 pre 61
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.12 255.255.255.252 192.168.1.21 pre 61
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.32 255.255.255.224 192.168.1.21 pre 61
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.64 255.255.255.224 192.168.1.21 pre 61
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.96 255.255.255.224 192.168.1.21 pre 61
[R5]ip ro    
[R5]ip route-st    
[R5]ip route-static 192.168.1.128 255.255.255.224 192.168.1.21 pre 61

现在关闭R4的GE0/0/2端口

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]shutdown
Jan  7 2023 22:18:20-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  7 2023 22:18:20-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]
Jan  7 2023 22:18:20-08:00 R4 %%01RM/4/IPV4_DEFT_RT_CHG(l)[2]:IPV4 default Route
 is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=Unknown, 
Nexthop=192.168.1.18, Neighbour=0.0.0.0, Preference=1006632960, Label=NULL, Metr
ic=0) 

[R4-GigabitEthernet0/0/2]q
[R4]dis    
[R4]display ip ro    
[R4]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 26       Routes : 27       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  61   0          RD   192.168.1.22    GigabitEthernet
4/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  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
    192.168.1.4/30  Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
    192.168.1.8/30  Direct  0    0           D   192.168.1.10    GigabitEthernet
0/0/1
   192.168.1.10/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
   192.168.1.11/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
   192.168.1.12/30  Direct  0    0           D   192.168.1.14    GigabitEthernet
0/0/0
   192.168.1.14/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   192.168.1.15/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   192.168.1.20/30  Direct  0    0           D   192.168.1.21    GigabitEthernet
4/0/0
   192.168.1.21/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
4/0/0
   192.168.1.23/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
4/0/0
   192.168.1.32/27  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
                    Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
   192.168.1.64/27  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
   192.168.1.96/27  Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
  192.168.1.128/27  Static  60   0           D   0.0.0.0         NULL0
  192.168.1.128/28  Direct  0    0           D   192.168.1.129   LoopBack0
  192.168.1.129/32  Direct  0    0           D   127.0.0.1       LoopBack0
  192.168.1.143/32  Direct  0    0           D   127.0.0.1       LoopBack0
  192.168.1.144/28  Direct  0    0           D   192.168.1.145   LoopBack1
  192.168.1.145/32  Direct  0    0           D   127.0.0.1       LoopBack1
  192.168.1.159/32  Direct  0    0           D   127.0.0.1       LoopBack1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R4]dis    
[R4]display ip ro    
[R4]display ip routing-table pr    
[R4]display ip routing-table protocol st    
[R4]display ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 7        Routes : 9        Configured Routes : 9

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  61   0          RD   192.168.1.22    GigabitEthernet
4/0/0
    192.168.1.0/30  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
    192.168.1.4/30  Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
   192.168.1.32/27  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
                    Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
   192.168.1.64/27  Static  60   0          RD   192.168.1.9     GigabitEthernet
0/0/1
   192.168.1.96/27  Static  60   0          RD   192.168.1.13    GigabitEthernet
0/0/0
  192.168.1.128/27  Static  60   0           D   0.0.0.0         NULL0

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0               192.168.1.18    Unknown
 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值