OSPF – max-metric

Dans notre exemple, le routeur R4 peut atteindre le réseau 66.6.6.0/24 (R6) via R5 et R6 :

 

R4#show ip ospf database summary 66.6.6.0

            OSPF Router with ID (10.11.11.1) (Process ID 1)

                Summary Net Link States (Area 0)

  Routing Bit Set on this LSA
  LS age: 175
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 66.6.6.0 (summary Network Number)
  Advertising Router: 10.2.2.3
  LS Seq Number: 80000011
  Checksum: 0xBC0
  Length: 28
  Network Mask: /24
        TOS: 0  Metric: 2

  Routing Bit Set on this LSA
  LS age: 215
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 66.6.6.0 (summary Network Number)
  Advertising Router: 10.2.2.5
  LS Seq Number: 80000003
  Checksum: 0x1BBC
  Length: 28
  Network Mask: /24
        TOS: 0  Metric: 2
  
R4#show ip route 66.6.6.0
Routing entry for 66.6.6.0/24
  Known via "ospf 1", distance 110, metric 3, type inter area
  Last update from 10.1.1.3 on FastEthernet0/0, 00:02:36 ago
  Routing Descriptor Blocks:
  * 10.1.1.5, from 10.2.2.5, 00:02:36 ago, via FastEthernet0/0
      Route metric is 3, traffic share count is 1
    10.1.1.3, from 10.2.2.3, 00:02:36 ago, via FastEthernet0/0
      Route metric is 3, traffic share count is 1

« max-metric router-lsa » permet au routeur R5 de faire ses annonces OSPF avec un metric maximum

Configuration

R5(config)#router ospf 1
R5(config-router)#max-metric router-lsa

Vérifications:

R4#show ip ospf database summary 66.6.6.0

            OSPF Router with ID (10.11.11.1) (Process ID 1)

                Summary Net Link States (Area 0)

  Routing Bit Set on this LSA
  LS age: 241
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 66.6.6.0 (summary Network Number)
  Advertising Router: 10.2.2.3
  LS Seq Number: 80000011
  Checksum: 0xBC0
  Length: 28
  Network Mask: /24
        TOS: 0  Metric: 2

  Routing Bit Set on this LSA
  LS age: 16
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 66.6.6.0 (summary Network Number)
  Advertising Router: 10.2.2.5
  LS Seq Number: 80000004
  Checksum: 0xDCA
  Length: 28
  Network Mask: /24
        TOS: 0  Metric: 65536
  
R4#show ip route 66.6.6.0
Routing entry for 66.6.6.0/24
  Known via "ospf 1", distance 110, metric 3, type inter area
  Last update from 10.1.1.3 on FastEthernet0/0, 00:00:12 ago
  Routing Descriptor Blocks:
  * 10.1.1.3, from 10.2.2.3, 00:00:12 ago, via FastEthernet0/0
      Route metric is 3, traffic share count is 1
This entry was posted in OSPF. Bookmark the permalink.

Comments are closed.