SEFOS# configure terminal SEFOS(config)# router ospf
SEFOS(config-router)# redistribute static
SEFOS(config-router)# redist-config 20.0.0.0 255.0.0.0 metric-value 100 metric-type asExttype1 tag 10 SEFOS(config-router)# exit
SEFOS(config)# ip route 20.0.0.0 255.0.0.0 10.4.0.2 SEFOS(config)# end SEFOS#
An external LSA is generated for 20.0.0.0 with metric as 100, metric type as asExtType1 and tag as 10.
SEFOS# show ip ospf database external OSPF Router with ID (10.10.2.1) AS External Link States ----------------------- LS age : 600 Options : (No ToS Capability, DC) LS Type : AS External Link Link State ID : 20.0.0.0 Advertising Router : 10.10.2.1 LS Seq Number : 0x80000001 Checksum : 0xf6b2 Length : 36 Network Mask : 255.0.0.0 Metric Type : 0x0 Metric : 100 Forward Address : 10.4.0.2 Externel Route Tag : 10
SEFOS# show ip ospf route OSPF Process Routing Table Dest/Mask TOS NextHop/Interface Cost Rt.Type Area --------- --- -------/--------- ---- ------- ---- 10.2.2.0/255.255.255.0 0 0.0.0.0/vlan2 1 IntraArea 0.0.0.2 10.4.0.0/255.255.0.0 0 0.0.0.0/vlan1 1 IntraArea 0.0.0.0 10.10.0.0/255.255.0.0 0 10.4.0.1/vlan1 2 InterArea 0.0.0.0 20.0.0.0/255.0.0.0 0 10.4.0.2/vlan1 101 Type1Ext 0.0.0.0
SEFOS# configure terminal SEFOS(config)# router ospf
SEFOS(config-router)# no redist-config 20.0.0.0 255.0.0.0 SEFOS(config-router)# end SEFOS#
The external LSA generated for 20.0.0.0 with metric as 100, metric type as asExtType1, and tag as 10, is flushed. A new external LSA is generated with the default redistribution configuration.
SEFOS# show ip ospf database external OSPF Router with ID (10.10.2.1) AS External Link States ----------------------- LS age : 0 Options : (No ToS Capability, DC) LS Type : AS External Link Link State ID : 20.0.0.0 Advertising Router : 10.10.2.1 LS Seq Number : 0x80000002 Checksum : 0x3c50 Length : 36 Network Mask : 255.0.0.0 Metric Type : 0x80 Metric : 10 Forward Address : 10.4.0.2 Externel Route Tag : 0