理论+实操:华为 ospf 与rip协议间路由重分发

理论+实操:华为 ospf 与rip协议间路由重分发_第1张图片

理论+实操:华为 ospf 与rip协议间路由重分发_第2张图片

实验:

理论+实操:华为 ospf 与rip协议间路由重分发_第3张图片

末梢区域优化的是asbr的外部协议信息,使其变成默认路由

完全末梢:配置在asbr,使该区域外的所有路由都变成默认路由

area1是nssa区域,使协议外的路由信息变成了nssa,还增加了一条默认路由

1.配置接口IP地址,宣告自身所在区域

  • R1
The device is running!
system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname R1
[R1]int loo 0
[R1-LoopBack0]ip add 1.1.1.1 32
[R1-LoopBack0]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip add  16.0.0.1 24
[R1-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]int g 0/0/1
[R1-GigabitEthernet0/0/1]ip add 12.0.0.1 24
[R1-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R1-GigabitEthernet0/0/1]q
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]network 12.0.0.0 0.0.0.255	
[R1-ospf-1-area-0.0.0.1]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.1]q
[R1-ospf-1]q
[R1]rip 1
[R1-rip-1]version 2	
[R1-rip-1]undo summary 
[R1-rip-1]network 16.0.0.0
[R1-rip-1]q
  • R2
The device is running!
system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname R2
[R2]int loo 0
[R2-LoopBack0]ip add 2.2.2.2 32
[R2-LoopBack0]int g 0/0/1
[R2-GigabitEthernet0/0/1]ip add 12.0.0.2 24
[R2-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R2-GigabitEthernet0/0/1]int g 0/0/2
[R2-GigabitEthernet0/0/2]ip add 23.0.0.2 24
[R2-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R2-GigabitEthernet0/0/2]q
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 1
[R2-ospf-1-area-0.0.0.1]network 12.0.0.0 0.0.0.255
[R2-ospf-1-area-0.0.0.1]network 23.0.0.0 0.0.0.255
[R2-ospf-1-area-0.0.0.1]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.1]
  • R3
The device is running!
system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname R3
[R3]int loo 0
[R3-LoopBack0]ip add 3.3.3.3 32
[R3-LoopBack0]int g 0/0/2
[R3-GigabitEthernet0/0/2]ip add 23.0.0.3 24
[R3-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R3-GigabitEthernet0/0/2]int g 0/0/3
[R3-GigabitEthernet0/0/3]ip add 34.0.0.3 24
[R3-GigabitEthernet0/0/3]un sh
Info: Interface GigabitEthernet0/0/3 is not shutdown.
[R3-GigabitEthernet0/0/3]q
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 1
[R3-ospf-1-area-0.0.0.1]network 23.0.0.0 0.0.0.255
[R3-ospf-1-area-0.0.0.1]q
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 34.0.0.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]q
  • R4
The device is running!
system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname R4
[R4]int loo 0
[R4-LoopBack0]ip add 4.4.4.4 32
[R4-LoopBack0]int g 0/0/3
[R4-GigabitEthernet0/0/3]ip add 34.0.0.4 24
[R4-GigabitEthernet0/0/3]un sh
Info: Interface GigabitEthernet0/0/3 is not shutdown.
[R4-GigabitEthernet0/0/3]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip add 45.0.0.4 24
[R4-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R4-GigabitEthernet0/0/0]q
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 34.0.0.0 0.0.0.255
[R4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-1-area-0.0.0.0]q
[R4-ospf-1]area 2
[R4-ospf-1-area-0.0.0.2]network 45.0.0.0 0.0.0.255
[R4-ospf-1-area-0.0.0.2]
  • R5
The device is running!
system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname R5
[R5]int loo 0
[R5-LoopBack0]ip add 5.5.5.5 32
[R5-LoopBack0]int g 0/0/0
[R5-GigabitEthernet0/0/0]ip add 45.0.0.5 24
[R5-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R5-GigabitEthernet0/0/0]q
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 2
[R5-ospf-1-area-0.0.0.2]network 45.0.0.0 0.0.0.255
[R5-ospf-1-area-0.0.0.2]network 5.5.5.5 0.0.0.0
[R5-ospf-1-area-0.0.0.2]
  • R6
The device is running!
system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sysname R6
[R6]int loo 0
[R6-LoopBack0]ip add 6.6.6.6 32
[R6-LoopBack0]int g 0/0/0
[R6-GigabitEthernet0/0/0]ip add 16.0.0.6 24
[R6-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R6-GigabitEthernet0/0/0]q
[R6]rip 1	
[R6-rip-1]version 2
[R6-rip-1]network 16.0.0.0
[R6-rip-1]network 6.0.0.0	
[R6-rip-1]undo summary 
[R6-rip-1]

2. 此时查看路由表

  • R1
[R1]dis 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

        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
        2.2.2.2/32  OSPF    10   1           D   12.0.0.2        GigabitEthernet0/0/1
        3.3.3.3/32  OSPF    10   2           D   12.0.0.2        GigabitEthernet0/0/1
        4.4.4.4/32  OSPF    10   3           D   12.0.0.2        GigabitEthernet0/0/1
        5.5.5.5/32  OSPF    10   4           D   12.0.0.2        GigabitEthernet0/0/1
        6.6.6.6/32  RIP     100  1           D   16.0.0.6        GigabitEthernet0/0/0
       12.0.0.0/24  Direct  0    0           D   12.0.0.1        GigabitEthernet0/0/1
       12.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
       16.0.0.0/24  Direct  0    0           D   16.0.0.1        GigabitEthernet0/0/0
       16.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/0
       23.0.0.0/24  OSPF    10   2           D   12.0.0.2        GigabitEthernet0/0/1
       34.0.0.0/24  OSPF    10   3           D   12.0.0.2        GigabitEthernet0/0/1
       45.0.0.0/24  OSPF    10   4           D   12.0.0.2        GigabitEthernet0/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

[R1]
  • R2
[R2]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 13       Routes : 13       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   1           D   12.0.0.1        GigabitEthernet0/0/1
        2.2.2.2/32  Direct  0    0           D   127.0.0.1       LoopBack0
        3.3.3.3/32  OSPF    10   1           D   23.0.0.3        GigabitEthernet0/0/2
        4.4.4.4/32  OSPF    10   2           D   23.0.0.3        GigabitEthernet0/0/2
        5.5.5.5/32  OSPF    10   3           D   23.0.0.3        GigabitEthernet0/0/2
       12.0.0.0/24  Direct  0    0           D   12.0.0.2        GigabitEthernet0/0/1
       12.0.0.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
       23.0.0.0/24  Direct  0    0           D   23.0.0.2        GigabitEthernet0/0/2
       23.0.0.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/2
       34.0.0.0/24  OSPF    10   2           D   23.0.0.3        GigabitEthernet0/0/2
       45.0.0.0/24  OSPF    10   3           D   23.0.0.3        GigabitEthernet0/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

[R2]
  • R3
[R3]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 13       Routes : 13       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   2           D   23.0.0.2        GigabitEthernet0/0/2
        2.2.2.2/32  OSPF    10   1           D   23.0.0.2        GigabitEthernet0/0/2
        3.3.3.3/32  Direct  0    0           D   127.0.0.1       LoopBack0
        4.4.4.4/32  OSPF    10   1           D   34.0.0.4        GigabitEthernet0/0/3
        5.5.5.5/32  OSPF    10   2           D   34.0.0.4        GigabitEthernet0/0/3
       12.0.0.0/24  OSPF    10   2           D   23.0.0.2        GigabitEthernet0/0/2
       23.0.0.0/24  Direct  0    0           D   23.0.0.3        GigabitEthernet0/0/2
       23.0.0.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/2
       34.0.0.0/24  Direct  0    0           D   34.0.0.3        GigabitEthernet0/0/3
       34.0.0.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/3
       45.0.0.0/24  OSPF    10   2           D   34.0.0.4        GigabitEthernet0/0/3
      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

[R3]
  • R4
[R4]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 13       Routes : 13       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
        2.2.2.2/32  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
        3.3.3.3/32  OSPF    10   1           D   34.0.0.3        GigabitEthernet0/0/3
        4.4.4.4/32  Direct  0    0           D   127.0.0.1       LoopBack0
        5.5.5.5/32  OSPF    10   1           D   45.0.0.5        GigabitEthernet0/0/0
       12.0.0.0/24  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
       23.0.0.0/24  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
       34.0.0.0/24  Direct  0    0           D   34.0.0.4        GigabitEthernet0/0/3
       34.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/3
       45.0.0.0/24  Direct  0    0           D   45.0.0.4        GigabitEthernet0/0/0
       45.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R4]
  • R5
[R5]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 12       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   4           D   45.0.0.4        GigabitEthernet0/0/0
        2.2.2.2/32  OSPF    10   3           D   45.0.0.4        GigabitEthernet0/0/0
        3.3.3.3/32  OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
        4.4.4.4/32  OSPF    10   1           D   45.0.0.4        GigabitEthernet0/0/0
        5.5.5.5/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.0.0.0/24  OSPF    10   4           D   45.0.0.4        GigabitEthernet0/0/0
       23.0.0.0/24  OSPF    10   3           D   45.0.0.4        GigabitEthernet0/0/0
       34.0.0.0/24  OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
       45.0.0.0/24  Direct  0    0           D   45.0.0.5        GigabitEthernet0/0/0
       45.0.0.5/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R5]
  • R6
[R6]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 5        Routes : 5        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        6.6.6.6/32  Direct  0    0           D   127.0.0.1       LoopBack0
       16.0.0.0/24  Direct  0    0           D   16.0.0.6        GigabitEthernet0/0/0
       16.0.0.6/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R6]

3. ospf与rip协议之间重分发

  • ASBR R1
[R1]ospf 1	
[R1-ospf-1]import-route ?
  bgp     Border Gateway Protocol (BGP) routes
  direct  Connected routes
  isis    Intermediate System to Intermediate System (IS-IS) routes
  limit   Limit the number of routes imported into OSPF
  ospf    Open Shortest Path First (OSPF) routes
  rip     Routing Information Protocol (RIP) routes
  static  Static routes
  unr     User Network Routes
[R1-ospf-1]import-route rip ?
  INTEGER<1-65535>  Process ID
  cost              Set cost
  route-policy      Route policy
  tag               Specify route tag
  type              Metric type of the imported external routes
                
	
[R1-ospf-1]import-route rip type ?
  INTEGER<1-2>  Type value

[R1-ospf-1]import-route rip type 1 ?
  cost          Set cost
  route-policy  Route policy
  tag           Specify route tag
            
	
[R1-ospf-1]import-route rip type 1 cost 5
[R1-ospf-1]q
[R1]rip 1
[R1-rip-1]import-route ?
  bgp     Border Gateway Protocol (BGP) routes
  direct  Direct routes
  isis    Intermediate System to Intermediate System (ISIS) routes
  ospf    Open Shortest Path First (OSPF) routes
  rip     Routing Information Protocol (RIP) routes
  static  Static routes
  unr     Unr routes
[R1-rip-1]import-route ospf ?
  INTEGER<1-65535>  Process ID
  cost              Cost of the import route
  route-policy      Apply the specified route policy to filter route
                

[R1-rip-1]import-route ospf 1 ?
  cost          Cost of the import route
  route-policy  Apply the specified route policy to filter route
            
[R1-rip-1]import-route ospf 1 cost ?
  INTEGER<0-15>  Specify the metric value

[R1-rip-1]import-route ospf 1 cost 6

4. 此时再次查看路由表

  • R1
[R1]dis 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

        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
        2.2.2.2/32  OSPF    10   1           D   12.0.0.2        GigabitEthernet0/0/1
        3.3.3.3/32  OSPF    10   2           D   12.0.0.2        GigabitEthernet0/0/1
        4.4.4.4/32  OSPF    10   3           D   12.0.0.2        GigabitEthernet0/0/1
        5.5.5.5/32  OSPF    10   4           D   12.0.0.2        GigabitEthernet0/0/1
        6.6.6.6/32  RIP     100  1           D   16.0.0.6        GigabitEthernet0/0/0
       12.0.0.0/24  Direct  0    0           D   12.0.0.1        GigabitEthernet0/0/1
       12.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
       16.0.0.0/24  Direct  0    0           D   16.0.0.1        GigabitEthernet0/0/0
       16.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/0
       23.0.0.0/24  OSPF    10   2           D   12.0.0.2        GigabitEthernet0/0/1
       34.0.0.0/24  OSPF    10   3           D   12.0.0.2        GigabitEthernet0/0/1
       45.0.0.0/24  OSPF    10   4           D   12.0.0.2        GigabitEthernet0/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

[R1]
  • R2
[R2]dis 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

        1.1.1.1/32  OSPF    10   1           D   12.0.0.1        GigabitEthernet0/0/1
        2.2.2.2/32  Direct  0    0           D   127.0.0.1       LoopBack0
        3.3.3.3/32  OSPF    10   1           D   23.0.0.3        GigabitEthernet0/0/2
        4.4.4.4/32  OSPF    10   2           D   23.0.0.3        GigabitEthernet0/0/2
        5.5.5.5/32  OSPF    10   3           D   23.0.0.3        GigabitEthernet0/0/2
        6.6.6.6/32  O_ASE   150  6           D   12.0.0.1        GigabitEthernet0/0/1
       12.0.0.0/24  Direct  0    0           D   12.0.0.2        GigabitEthernet0/0/1
       12.0.0.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
       16.0.0.0/24  O_ASE   150  6           D   12.0.0.1        GigabitEthernet0/0/1
       23.0.0.0/24  Direct  0    0           D   23.0.0.2        GigabitEthernet0/0/2
       23.0.0.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/2
       34.0.0.0/24  OSPF    10   2           D   23.0.0.3        GigabitEthernet0/0/2
       45.0.0.0/24  OSPF    10   3           D   23.0.0.3        GigabitEthernet0/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

[R2]
  • R3
[R3]dis 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

        1.1.1.1/32  OSPF    10   2           D   23.0.0.2        GigabitEthernet0/0/2
        2.2.2.2/32  OSPF    10   1           D   23.0.0.2        GigabitEthernet0/0/2
        3.3.3.3/32  Direct  0    0           D   127.0.0.1       LoopBack0
        4.4.4.4/32  OSPF    10   1           D   34.0.0.4        GigabitEthernet0/0/3
        5.5.5.5/32  OSPF    10   2           D   34.0.0.4        GigabitEthernet0/0/3
        6.6.6.6/32  O_ASE   150  7           D   23.0.0.2        GigabitEthernet0/0/2
       12.0.0.0/24  OSPF    10   2           D   23.0.0.2        GigabitEthernet0/0/2
       16.0.0.0/24  O_ASE   150  7           D   23.0.0.2        GigabitEthernet0/0/2
       23.0.0.0/24  Direct  0    0           D   23.0.0.3        GigabitEthernet0/0/2
       23.0.0.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/2
       34.0.0.0/24  Direct  0    0           D   34.0.0.3        GigabitEthernet0/0/3
       34.0.0.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/3
       45.0.0.0/24  OSPF    10   2           D   34.0.0.4        GigabitEthernet0/0/3
      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

[R3]
  • R4
[R4]dis 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

        1.1.1.1/32  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
        2.2.2.2/32  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
        3.3.3.3/32  OSPF    10   1           D   34.0.0.3        GigabitEthernet0/0/3
        4.4.4.4/32  Direct  0    0           D   127.0.0.1       LoopBack0
        5.5.5.5/32  OSPF    10   1           D   45.0.0.5        GigabitEthernet0/0/0
        6.6.6.6/32  O_ASE   150  8           D   34.0.0.3        GigabitEthernet0/0/3
       12.0.0.0/24  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
       16.0.0.0/24  O_ASE   150  8           D   34.0.0.3        GigabitEthernet0/0/3
       23.0.0.0/24  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
       34.0.0.0/24  Direct  0    0           D   34.0.0.4        GigabitEthernet0/0/3
       34.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/3
       45.0.0.0/24  Direct  0    0           D   45.0.0.4        GigabitEthernet0/0/0
       45.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R4]
  • R5
[R5]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 14       Routes : 14       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   4           D   45.0.0.4        GigabitEthernet0/0/0
        2.2.2.2/32  OSPF    10   3           D   45.0.0.4        GigabitEthernet0/0/0
        3.3.3.3/32  OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
        4.4.4.4/32  OSPF    10   1           D   45.0.0.4        GigabitEthernet0/0/0
        5.5.5.5/32  Direct  0    0           D   127.0.0.1       LoopBack0
        6.6.6.6/32  O_ASE   150  9           D   45.0.0.4        GigabitEthernet0/0/0
       12.0.0.0/24  OSPF    10   4           D   45.0.0.4        GigabitEthernet0/0/0
       16.0.0.0/24  O_ASE   150  9           D   45.0.0.4        GigabitEthernet0/0/0
       23.0.0.0/24  OSPF    10   3           D   45.0.0.4        GigabitEthernet0/0/0
       34.0.0.0/24  OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
       45.0.0.0/24  Direct  0    0           D   45.0.0.5        GigabitEthernet0/0/0
       45.0.0.5/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R5]
  • R6
[R6]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 14       Routes : 14       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        2.2.2.2/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        3.3.3.3/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        4.4.4.4/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        5.5.5.5/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        6.6.6.6/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       16.0.0.0/24  Direct  0    0           D   16.0.0.6        GigabitEthernet0/0/0
       16.0.0.6/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/0
       23.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       34.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       45.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/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

[R6]

5. 优化区域

  • 末梢区域

    stub ###末梢 2变都要加

[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 2	
[R4-ospf-1-area-0.0.0.2]stub ?
  no-summary  Do not send summary LSA into stub area
          
[R4-ospf-1-area-0.0.0.2]stub 
[R5]ospf 1 rou	
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 2
[R5-ospf-1-area-0.0.0.2]stub
[R4]dis 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

        1.1.1.1/32  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
        2.2.2.2/32  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
        3.3.3.3/32  OSPF    10   1           D   34.0.0.3        GigabitEthernet0/0/3
        4.4.4.4/32  Direct  0    0           D   127.0.0.1       LoopBack0
        5.5.5.5/32  OSPF    10   1           D   45.0.0.5        GigabitEthernet0/0/0
        6.6.6.6/32  O_ASE   150  8           D   34.0.0.3        GigabitEthernet0/0/3
       12.0.0.0/24  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
       16.0.0.0/24  O_ASE   150  8           D   34.0.0.3        GigabitEthernet0/0/3
       23.0.0.0/24  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
       34.0.0.0/24  Direct  0    0           D   34.0.0.4        GigabitEthernet0/0/3
       34.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/3
       45.0.0.0/24  Direct  0    0           D   45.0.0.4        GigabitEthernet0/0/0
       45.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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


[R5]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 13       Routes : 13       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
        1.1.1.1/32  OSPF    10   4           D   45.0.0.4        GigabitEthernet0/0/0
        2.2.2.2/32  OSPF    10   3           D   45.0.0.4        GigabitEthernet0/0/0
        3.3.3.3/32  OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
        4.4.4.4/32  OSPF    10   1           D   45.0.0.4        GigabitEthernet0/0/0
        5.5.5.5/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.0.0.0/24  OSPF    10   4           D   45.0.0.4        GigabitEthernet0/0/0
       23.0.0.0/24  OSPF    10   3           D   45.0.0.4        GigabitEthernet0/0/0
       34.0.0.0/24  OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
       45.0.0.0/24  Direct  0    0           D   45.0.0.5        GigabitEthernet0/0/0
       45.0.0.5/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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
[R5]
  • 完全末梢

    在abr上 加入 stub no-summary

[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]ar	
[R4-ospf-1]area 2
[R4-ospf-1-area-0.0.0.2]dis this
#
 area 0.0.0.2
  network 45.0.0.0 0.0.0.255
  stub
#
return
[R4-ospf-1-area-0.0.0.2]stub ?
  no-summary  Do not send summary LSA into stub area
          

[R4-ospf-1-area-0.0.0.2]stub no	
[R4-ospf-1-area-0.0.0.2]stub no-summary 
[R4-ospf-1-area-0.0.0.2]dis this
#
 area 0.0.0.2
  network 45.0.0.0 0.0.0.255
  stub no-summary
#
return
[R4-ospf-1-area-0.0.0.2]
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 2
[R5-ospf-1-area-0.0.0.2]dis this
#
 area 0.0.0.2
  network 45.0.0.0 0.0.0.255
  network 5.5.5.5 0.0.0.0
  stub
#
return
[R5-ospf-1-area-0.0.0.2]stub no	
[R5-ospf-1-area-0.0.0.2]stub no-summary 
[R5-ospf-1-area-0.0.0.2]
[R4]dis 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

        1.1.1.1/32  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
        2.2.2.2/32  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
        3.3.3.3/32  OSPF    10   1           D   34.0.0.3        GigabitEthernet0/0/3
        4.4.4.4/32  Direct  0    0           D   127.0.0.1       LoopBack0
        5.5.5.5/32  OSPF    10   1           D   45.0.0.5        GigabitEthernet0/0/0
        6.6.6.6/32  O_ASE   150  8           D   34.0.0.3        GigabitEthernet0/0/3
       12.0.0.0/24  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
       16.0.0.0/24  O_ASE   150  8           D   34.0.0.3        GigabitEthernet0/0/3
       23.0.0.0/24  OSPF    10   2           D   34.0.0.3        GigabitEtherne0/0/3
       34.0.0.0/24  Direct  0    0           D   34.0.0.4        GigabitEthernet0/0/3
       34.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/3
       45.0.0.0/24  Direct  0    0           D   45.0.0.4        GigabitEthernet0/0/0
       45.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R4]
[R5]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 6        Routes : 6        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
        5.5.5.5/32  Direct  0    0           D   127.0.0.1       LoopBack0
       45.0.0.0/24  Direct  0    0           D   45.0.0.5        GigabitEthernet0/0/0
       45.0.0.5/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R5]
  • nssa区域

    ###ASBR主要是靠5类的LSA来通告链路状态信息,可以用7类LSA优化,通告外部路由信息

[R1]ospf 1 rou	
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]are	
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]dis this
#
 area 0.0.0.1
  network 12.0.0.0 0.0.0.255
  network 1.1.1.1 0.0.0.0
#
return
[R1-ospf-1-area-0.0.0.1]nssa	
[R1-ospf-1-area-0.0.0.1]nssa ?
  default-route-advertise      Originate Type 7 default into NSSA area
  flush-waiting-timer          Flush waiting timer
  no-import-route              No redistribution into this NSSA area
  no-summary                   Do not send summary LSA into NSSA
  set-n-bit                    Set n bit in DD packet in NSSA area
  suppress-forwarding-address  Suppress forwarding address for Translated
                               Type-5 LSAs
  translator-always            Set NSSA translator role always
  translator-interval          Configure NSSA translator interval value
  zero-address-forwarding      Allow zero forwarding address for Type-7 LSAs
                           

[R1-ospf-1-area-0.0.0.1]nssa 
[R1-ospf-1-area-0.0.0.1]
SYS	
system-view 
Enter system view, return user view with Ctrl+Z.
[R2]OSPF 1 ROU	
[R2]OSPF 1 router-id 2.2.2.2
[R2-ospf-1]area	
[R2-ospf-1]area 1
[R2-ospf-1-area-0.0.0.1]nssa
[R2-ospf-1-area-0.0.0.1]dis this
#
 area 0.0.0.1
  network 12.0.0.0 0.0.0.255
  network 23.0.0.0 0.0.0.255
  network 2.2.2.2 0.0.0.0
  nssa
#
return
[R2-ospf-1-area-0.0.0.1]
system-view 
Enter system view, return user view with Ctrl+Z.
[R3]ospf 1 rou	
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]nssa	
[R3-ospf-1]nssa
           ^
Error: Unrecognized command found at '^' position.
[R3-ospf-1]area	
[R3-ospf-1]area 1
[R3-ospf-1-area-0.0.0.1]nssa	
[R3-ospf-1-area-0.0.0.1]nssa 
[R3-ospf-1-area-0.0.0.1]dis this
#
 area 0.0.0.1
  network 23.0.0.0 0.0.0.255
  nssa
#
return
[R3-ospf-1-area-0.0.0.1]

此时查看新的路由表

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   O_NSSA  150  1           D   12.0.0.2        GigabitEthernet0/0/1
        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
        2.2.2.2/32  OSPF    10   1           D   12.0.0.2        GigabitEthernet0/0/1
        3.3.3.3/32  OSPF    10   2           D   12.0.0.2        GigabitEthernet0/0/1
        4.4.4.4/32  OSPF    10   3           D   12.0.0.2        GigabitEthernet0/0/1
        5.5.5.5/32  OSPF    10   4           D   12.0.0.2        GigabitEthernet0/0/1
        6.6.6.6/32  RIP     100  1           D   16.0.0.6        GigabitEthernet0/0/0
       12.0.0.0/24  Direct  0    0           D   12.0.0.1        GigabitEthernet0/0/1
       12.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
       16.0.0.0/24  Direct  0    0           D   16.0.0.1        GigabitEthernet0/0/0
       16.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/0
       23.0.0.0/24  OSPF    10   2           D   12.0.0.2        GigabitEthernet0/0/1
       34.0.0.0/24  OSPF    10   3           D   12.0.0.2        GigabitEthernet0/0/1
       45.0.0.0/24  OSPF    10   4           D   12.0.0.2        GigabitEthernet0/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

[R1]
[R2]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 16       Routes : 16       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   O_NSSA  150  1           D   23.0.0.3        GigabitEthernet0/0/2
        1.1.1.1/32  OSPF    10   1           D   12.0.0.1        GigabitEthernet0/0/1
        2.2.2.2/32  Direct  0    0           D   127.0.0.1       LoopBack0
        3.3.3.3/32  OSPF    10   1           D   23.0.0.3        GigabitEthernet0/0/2
        4.4.4.4/32  OSPF    10   2           D   23.0.0.3        GigabitEthernet0/0/2
        5.5.5.5/32  OSPF    10   3           D   23.0.0.3        GigabitEthernet0/0/2
        6.6.6.6/32  O_NSSA  150  6           D   12.0.0.1        GigabitEthernet0/0/1
       12.0.0.0/24  Direct  0    0           D   12.0.0.2        GigabitEthernet0/0/1
       12.0.0.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/1
       16.0.0.0/24  O_NSSA  150  6           D   12.0.0.1        GigabitEthernet0/0/1
       23.0.0.0/24  Direct  0    0           D   23.0.0.2        GigabitEthernet0/0/2
       23.0.0.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/2
       34.0.0.0/24  OSPF    10   2           D   23.0.0.3        GigabitEthernet0/0/2
       45.0.0.0/24  OSPF    10   3           D   23.0.0.3        GigabitEthernet0/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

[R2]
[R3]dis 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

        1.1.1.1/32  OSPF    10   2           D   23.0.0.2        GigabitEthernet0/0/2
        2.2.2.2/32  OSPF    10   1           D   23.0.0.2        GigabitEthernet0/0/2
        3.3.3.3/32  Direct  0    0           D   127.0.0.1       LoopBack0
        4.4.4.4/32  OSPF    10   1           D   34.0.0.4        GigabitEthernet0/0/3
        5.5.5.5/32  OSPF    10   2           D   34.0.0.4        GigabitEthernet0/0/3
        6.6.6.6/32  O_NSSA  150  7           D   23.0.0.2        GigabitEthernet0/0/2
       12.0.0.0/24  OSPF    10   2           D   23.0.0.2        GigabitEthernet0/0/2
       16.0.0.0/24  O_NSSA  150  7           D   23.0.0.2        GigabitEthernet0/0/2
       23.0.0.0/24  Direct  0    0           D   23.0.0.3        GigabitEthernet0/0/2
       23.0.0.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/2
       34.0.0.0/24  Direct  0    0           D   34.0.0.3        GigabitEthernet0/0/3
       34.0.0.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/3
       45.0.0.0/24  OSPF    10   2           D   34.0.0.4        GigabitEthernet0/0/3
      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

[R3]
[R4]dis 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

        1.1.1.1/32  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
        2.2.2.2/32  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
        3.3.3.3/32  OSPF    10   1           D   34.0.0.3        GigabitEthernet0/0/3
        4.4.4.4/32  Direct  0    0           D   127.0.0.1       LoopBack0
        5.5.5.5/32  OSPF    10   1           D   45.0.0.5        GigabitEthernet0/0/0
        6.6.6.6/32  O_ASE   150  8           D   34.0.0.3        GigabitEthernet0/0/3
       12.0.0.0/24  OSPF    10   3           D   34.0.0.3        GigabitEthernet0/0/3
       16.0.0.0/24  O_ASE   150  8           D   34.0.0.3        GigabitEthernet0/0/3
       23.0.0.0/24  OSPF    10   2           D   34.0.0.3        GigabitEthernet0/0/3
       34.0.0.0/24  Direct  0    0           D   34.0.0.4        GigabitEthernet0/0/3
       34.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/3
       45.0.0.0/24  Direct  0    0           D   45.0.0.4        GigabitEthernet0/0/0
       45.0.0.4/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R4]
[R5]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 6        Routes : 6        

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   OSPF    10   2           D   45.0.0.4        GigabitEthernet0/0/0
        5.5.5.5/32  Direct  0    0           D   127.0.0.1       LoopBack0
       45.0.0.0/24  Direct  0    0           D   45.0.0.5        GigabitEthernet0/0/0
       45.0.0.5/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/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

[R5]
[R6]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 14       Routes : 14       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        2.2.2.2/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        3.3.3.3/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        4.4.4.4/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        5.5.5.5/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        6.6.6.6/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       16.0.0.0/24  Direct  0    0           D   16.0.0.6        GigabitEthernet0/0/0
       16.0.0.6/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/0
       23.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       34.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       45.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/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

[R6]
        3.3.3.3/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        4.4.4.4/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        5.5.5.5/32  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
        6.6.6.6/32  Direct  0    0           D   127.0.0.1       LoopBack0
       12.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       16.0.0.0/24  Direct  0    0           D   16.0.0.6        GigabitEthernet0/0/0
       16.0.0.6/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/0
       23.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       34.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/0/0
       45.0.0.0/24  RIP     100  7           D   16.0.0.1        GigabitEthernet0/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

[R6]

你可能感兴趣的:(理论,华为)