• Kiếm tiền với Hostinger

    Kiếm Tiền Cùng Hostinger

    Bạn đang tìm kiếm cách kiếm thêm thu nhập online? Hãy tham gia ngay chương trình Affiliate của Hostinger! Với mỗi khách hàng đăng ký thông qua liên kết của bạn, bạn sẽ nhận được khoản hoa hồng hấp dẫn.

    Hostinger cung cấp các dịch vụ lưu trữ web (hosting) chất lượng cao với mức giá cạnh tranh, giúp bạn dễ dàng giới thiệu và thu hút người dùng.

    Đừng bỏ lỡ cơ hội tuyệt vời này để tăng thêm thu nhập thụ động.

    Tham Gia Ngay

ROSv6 – OSPFv2 Quick Refrence Guide – RFC

TigerDao

Administrator
Thành viên BQT





Click here to download this page as a PDF



Link State Routing Protocol
Uses Dijkstra’s SPF Algorithm (Shortest Path First)
Uses IP Protocol #89
Primary RFC = RFC 2328 (IPv4)
IP headers are set to a TTL of 1 to ensure only 1 hop
Default cost of all links is 10
OSPF Router TypesNotes
ASBR (Autonomous System Border Router)Sits on the edge of the OSPF network. That may or may not be the edge of the physical network. Re-distributing routes will cause the router to become an ASBR.
ABR (Area Border Router)This router will participate in at least 2 areas.
BR (Backbone Router)Any router that is part of the Backbone area only is a BR.
IR (Internal Router)Any router that is not an ASBR, ABR, or BR is simply an IR.

ROSv6-–-OSPFv2-Quick-Refrence-Guide-–-RFC.jpg


1691660604_924_ROSv6-–-OSPFv2-Quick-Refrence-Guide-–-RFC.jpg


Area Types
Area TypeExplanation
BackboneResponsible for sharing all routes and the default route to other areas. Must be continuous. Can be linked with virtual links.
DefaultNormal OSPF area. Does not share the default route to other areas.
StubUsually used to reduce CPU load or minimize the impact of interface flapping. AS-external-LSAs (Type 5) are replaced with the default route. The setting “Inject Summary LSAs” will flood Summary-LSAs into the Stub area. This setting is applicable only for stub areas on ABRs.
NSSASimilar to a stub area, but an NSSA area also contains an ASBR. An NSSA generates LSA Type 7 messages which are converted to LSA type 5 messages by the ABR and shared with the rest of the OSPF network.



Redistribution Settings
Type 1Sum of internal and external metrics. Internal metrics are defined by the cost of the interface. External metrics are defined by the metric value (found in the Instance settings).
Type 2Use external metrics only. Internal costs are “trivial” and not evaluated.



























OSPF Network Types
BroadcastNBMAPTPPTMP
DR ElectionYesYesNoNo
Neighbor
Discovery
YesNoYesYes
TopologyPTP or PTMPPTP or PTMPPTPPTP or PTMP





OSPF Address Types
General MeaningBroadcastNBMAPTPPTMP
224.0.0.5All SPF RoutersYesN/AYesYes
224.0.0.6All DRs & BDRsYesN/ANoNo





















Adjacency States
Step #State NameExplanation
1DownThis is the initial state of a neighbor conversation. It indicates that there has been no recent information received from the neighbor. On NBMA networks, Hello packets may still be sent to “Down” neighbors, although at a reduced frequency.Neighboring
2AttemptThis state is only valid for neighbors attached to NBMA networks. It indicates that no recent information has been received from the neighbor, but that a more concerted effort should be made to contact the neighbor. This is done by sending the neighbor Hello packets at intervals of Hello-Interval.
3InitIn this state, a Hello packet has recently been seen from the neighbor. However, bidirectional communication has not yet been established with the neighbor (i.e., the router itself did not appear in the neighbor’s Hello packet). All neighbors in this state (or higher) are listed in the Hello packets sent from the associated interface.
42-wayIn this state, communication between the two routers is bidirectional. This has been assured by the operation of the Hello Protocol. This is the most advanced state short of beginning adjacency establishment. The (Backup)Designated Router is selected from the set of neighbors in state 2-Way or greater.
5ExstartThis is the first step in creating an adjacency between the two neighboring routers. The goal of this step is to decide which router is the master, and to decide upon the initial DD sequence number. Neighbor conversations in this state or greater are called adjacencies.Adjacency
6ExchangeIn this state the router is describing its entire link state database by sending Database Description packets to the neighbor. Each Database Description Packet has a DD sequence number and is explicitly acknowledged. Only one Database Description Packet is allowed outstanding at any one time. In this state, Link State Request Packets may also be sent asking for the neighbor’s more recent LSAs. All adjacencies in Exchange state or greater are used by the flooding procedure. In fact, these adjacencies are fully capable of transmitting and receiving all types of OSPF routing protocol packets.
7LoadingIn this state, Link State Request packets are sent to the neighbor asking for the more recent LSAs that have been discovered (but not yet received) in the Exchange state.
8FullIn this state, the neighboring routers are fully adjacent. These adjacencies will now appear in router-LSAs and network-LSAs.











OSPF Packet Types
TypePacket NameProtocol function
1HelloDiscover/ Maintain Neighbors
2Database DescriptionSummarize Database Contents
3Link State RequestDatabase Download
4Link State UpdateDatabase Update
5Link State AcknowledgmentFlooding Acknowledgement















LSA Types (Link State Advertisement)
LSA TypeLSA NameLSA Description
1Router-LSAsOriginated by all routers. This LSA describes the collected states of the router’s interfaces to an area. Flooded throughout single area only.
2Network-LSAsOriginated for broadcast and NBMA networks by the Designated Router. This LSA contains the list of routers connected to the network. Flooded throughout a single area only.
3,4Summary-LSAsOriginated by area border routers and flooded through-out the LSA’s associated area. Each summary-LSA describes a route to a destination outside the area, yet still inside the AS (i.e., an inter-area route). Type 3 summary-LSAs describe routes to networks. Type 4 summary-LSAs describe routes to AS boundary routers.
5AS-external-LSAsOriginated by AS boundary routers, and flooded through-out the AS. Each AS-external-LSA describes a route to a destination in another Autonomous System. Default routes for the AS can also be described by AS-external-LSAs. Not flooded into stub areas.
6Multicast extensions to OSPFN/A
7NSSA LSARouters in a Not-so-stubby-area (NSSA) do not receive external LSAs from Area Border Routers but are allowed to send external routing information for redistribution. They use type 7 LSAs to tell the ABRs about these external routes, which the Area Border Router then translates to type 5 external LSAs and floods as normal to the rest of the OSPF network.
8A link-local only LSA for OSPFv3N/A
9Opaque-LSAsSends link information to MPLS for RSVP-TE.
10,11Opaque-LSA Types Not used in ROSN/A



Interface Settings
SettingValueExplanation
CostInteger
PriorityInteger


1-65535


[TD]All interfaces have a cost of 10 by default. Cost is learned by all other routers in the OSPF network.[/TD]


0-255


[TD]Metric for determining the likelihood of being elected the DR while using the Broadcast or NBMA Network Types.[/TD]
[TR]
[TD]Authentication[/TD]
[TD]None, Simple, MD5[/TD]
[TD]All OSPF message are authenticated. None means leave those fields blank, simple uses a plain text password, MD5 uses a MD5 hash.[/TD]
[/TR]
[TR]
[TD]Authentication Key[/TD]
[TD]String[/TD]
[TD]Password[/TD]
[/TR]
[TR]
[TD]Authentication Key ID[/TD]
[TD]Integer[/TD]

0-9999999999999999

Up to 16 Characters

[/TR]
[TD]Key id is used to calculate message digest (used only when MD5 authentication is enabled). Value should match on all OSPF routers from the same region.[/TD]

[TR]
[TD]Instance ID[/TD]
[TD]Integer[/TD]

0-255

[/TR]
[TD]Print display number found in the CLI.[/TD]

[TR]
[TD]Passive[/TD]
[TD]Yes/No[/TD]

Check/Unchecked

[/TR]
[TD]Toggles the interface to stop sending or receiving Hello packets.[/TD]

[TR]
[TD]Use BFD[/TD]
[TD]Yes/No[/TD]

Check/Unchecked

[/TR]
[TD]Toggles the interface to use Bidirectional Forwarding Detection.[/TD]

[TR]
[TD]Hello Interval[/TD]
[TD]Integer[/TD]

1-65535 Seconds

[/TR]
[TD]The length of time, in seconds, between the Hello packets that the router sends on the interface. Advertised in Hello packets sent out this interface.[/TD]

[TR]
[TD]Router Dead Interval[/TD]
[TD]Integer[/TD]

1-65535 Seconds

[/TR]
[TD]The number of seconds before the router’s neighbors will declare it down when they stop hearing the router’s Hello Packets. Advertised in Hello packets sent out this interface.[/TD]

[TR]
[TD]Transmit Delay[/TD]
[TD]Integer[/TD]

1-65535 Seconds

[/TR]
[TD]The estimated number of seconds it takes to transmit a Link State Update Packet over this interface. LSAs contained in the Link State Update packet will have their age incremented by this amount before transmission. This value should take into account transmission and propagation delays; it must be greater than zero.[/TD]

[TR]
[TD]Retransmit Interval[/TD]
[TD]Integer[/TD]

1-65535 Seconds

[/TR]
[TD]Time between retransmitting lost link state advertisements. When a router sends a link state advertisement (LSA) to its neighbor, it keeps the LSA until it receives back the acknowledgment. If it receives no acknowledgment in time, it will retransmit the LSA.[/TD]























































































Instance Settings
SettingValueExplanation
NameStringAdministrative Name
Router IDIP AddressThe OSPF Router ID. If not specified OSPF will use the lowest IP address configured on an active interface that is being used. This is often set to the same IP address as the OSPF Loopback, when used.
Redistribute Default RouteAlways Type 1
Always Type 2
If Installed Type 1
If Installed Type 2
Whether or not to distribute the default route from the main routing table.
Redistribute Connected RoutesAs Type 1
As Type 2
Whether or not to distribute the connected routes from the main routing table.
Redistribute Static RoutesAs Type 1
As Type 2
Whether or not to distribute the static routes from the main routing table.
Redistribute RIP RoutesAs Type 1
As Type 2
Whether or not to distribute the RIP routes from the main routing table.
Redistribute BGP RoutesAs Type 1
As Type 2
Whether or not to distribute the BGP routes from the main routing table.
Redistribute Other OSPF RoutesAs Type 1
As Type 2
Whether or not to distribute the routes from other OSPF instances.
In filterStringName of routing filter chain used for incoming prefixes.
Out FilterStringName of routing filter chain used for outgoing prefixes.
Routing TableStringThe routing table OSPF will run on. The main routing table is used by default.
Use DNYes/No
Checked/Unchecked
Whether or not to use the Down-bit. The DN bit is used to prevent loops. Can be helpful when using OSPF as a PE-CE protocol as well as some BGP/MPLS configs. A DN value of 1 is checked and 0 is unchecked. (RFC 4577)
Default Route MetricInteger
Connected Routes MetricInteger


1-16,777,214


[TD]The metric this route will be introduced to OSPF as. This metric + each hop cost = cost shown in Routing -> OSPF -> Routes.[/TD]


1-16,777,214


[TD]The metric this route will be introduced to OSPF as. This metric + each hop cost = cost shown in Routing -> OSPF -> Routes.[/TD]
[TR]
[TD]Static Routes Metric[/TD]
[TD]Integer[/TD]

1-16,777,214

[/TR]
[TD]The metric this route will be introduced to OSPF as. This metric + each hop cost = cost shown in Routing -> OSPF -> Routes.[/TD]

[TR]
[TD]RIP Routes Metric[/TD]
[TD]Integer[/TD]

1-16,777,214

[/TR]
[TD]The metric this route will be introduced to OSPF as. This metric + each hop cost = cost shown in Routing -> OSPF -> Routes.[/TD]

[TR]
[TD]BGP Routes Metric[/TD]
[TD]Integer[/TD]

1-16,777,214

[/TR]
[TD]The metric this route will be introduced to OSPF as. This metric + each hop cost = cost shown in Routing -> OSPF -> Routes.[/TD]

[TR]
[TD]Other OSPF Routes Metric[/TD]
[TD]Integer[/TD]

1-16,777,214

[/TR]
[TD]The metric this route will be introduced to OSPF as. This metric + each hop cost = cost shown in Routing -> OSPF -> Routes.[/TD]

[TR]
[TD]MPLS TE Area[/TD]
[TD]String[/TD]
[TD]The area used for MPLS TE. Opaque LSAs are generated in this area. Only one OSPF instance can choose this area.[/TD]
[/TR]
[TR]
[TD]MPLS TE Router ID[/TD]
[TD]Converts to IP Address[/TD]
[TD]The Loopback interface from which to take the IP address used as the Router ID in MPLS TE. The OSPF Router ID, the LSR ID, and the MPLS TE Router ID will usually be the same.[/TD]
[/TR]
[TR]
[TD]Running[/TD]
[TD]Read Only[/TD]
[TD]Shows whether or not OSPF is running.[/TD]
[/TR]
[TR]
[TD]Effective Router ID[/TD]
[TD]Read Only[/TD]
[TD]Router_ID chosen by OSPF.[/TD]
[/TR]
[TR]
[TD]Dijkstra’s[/TD]
[TD]Read Only[/TD]
[TD]Shows how many times the Dijkstra’s algorithm was executed.[/TD]
[/TR]
[TR]
[TD]Db. Exchanges[/TD]
[TD]Read Only[/TD]
[TD]Number of database exchanges currently going on.[/TD]
[/TR]
[TR]
[TD]External Imports[/TD]
[TD]Read Only[/TD]
[TD]How many external routes were imported into OSPF from this router.[/TD]
[/TR]
[TR]
[TD]Domain ID[/TD]
[TD]Hex[/TD]
[TD]MPLS related parameter. Identifies OSPF domain of the instance. This value is attached to OSPF routes redistributed in BGP as VPNv4 routes as BGP extended community attribute, and used when BGP VPNv4 routes are redistributed back to OSPF to determine whether to generate inter-area or AS-external LSA for that route. By default Null domain-id is used, as described in RFC 4577. CLI Only.[/TD]
[/TR]
[TR]
[TD]Domain Tag[/TD]
[TD]Integer[/TD]

0-4294967295

[/TR]
[TD]If set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set. CLI Only.[/TD]







Networks Settings
SettingValueExplanation
NetworkIP PrefixThe network prefix associated with the area. OSPF will be enabled on all interfaces that has at least one address falling within this range. Note that the network prefix of the address is used for this check (i.e. not the local address). For point-to-point interfaces this means the address of the remote endpoint.
AreaStringThe OSPF area associated with this network.



Area Settings
SettingValueExplanation
Area NameStringAdministrative name of area.
InstanceStringThe instance the area belongs to.
Area IDInteger in dot.decimal formatOSPF area identifier. If the router has networks in more than one area, then an area with area-id=0.0.0.0 (the backbone) must always be present. The backbone always contains all area border routers. The backbone is responsible for distributing routing information between non-backbone areas. The backbone must be contiguous, i.e. there must be no disconnected segments. However, area border routers do not need to be physically connected to the backbone – connection to it may be simulated using a virtual link. Its recommended that networks with less than 50 routers just use the backbone area.
TypeDefault, Stub, NSSAWhether to make the area a default area, a stub area, or a not so stubby area.
Translator Roletranslate-always, translate-candidate, translate-neverParameter indicates which ABR will be used as translator from type7 LSAs to type5 LSAs. Applicable only if area type is NSSA.
-translate-always – router will be always used as translator
-translate-never – router will never be used as translator
-translate-candidate – sop elects one of candidate routers to be a translator
Inject Summary LSAsYes/No
Checked/Unchecked
Specifies whether to flood summary LSAs in this stub area. Applicable only for stub areas on ABRs.
Default CostInteger
InterfacesRead OnlyHow many total interfaces apply to this area.
Active InterfacesRead OnlyHow many active interfaces apply to this area.
NeighborsRead OnlyHow many total neighbors OSPF sees connecting to this area.
Adjacent NeighborsRead OnlyHow many neighbors have formed and adjacency to this area.


1-65535


[TD]Specifies the cost for the default route originated by this stub area ABR. Applicable only for stub areas on ABRs (applied on type-3 default routes).[/TD]



Area Ranges Settings
SettingValueExplanation
AreaStringThe OSPF area associated with this range.
RangeIP PrefixThe network prefix of this range. Prefix ranges are used to aggregate routing information on area boundaries. By default, the ABR creates a summary LSA for each route in a specific area and advertises it in the adjacent areas. Using ranges allows you ro create only one summary LSA for multiple routes and send only the single advertisement into adjacent areas.
CostInteger
AdvertiseYes/No


1-65535


[TD]The cost of the summary LSA this range will create. By default, it will use the largest cost of all routes used with in this range.[/TD]


Checked/Unchecked


[TD]Whether or not to create the summary LSA and advertise it into adjacent areas.[/TD]



Virtual Link Settings
SettingValueExplanation
Neighbor IDIP AddressSpecifies the Router ID of the OSPF router this router will connect to.
Transit AreaStringOne side of the virtual link must be in the backbone area. The transit area is the area that is in-between the non-adjacent area and the backbone. There can only be transit area per virtual link.
AuthenticationNone, Simple, MD5Specifies the authentication method for OSPF messages.
-None – No authentication is used
-Simple – Password is sent in plain text
-MD5 – Password is sent using MD5
Authentication KeyStringThe password used to authenticate the OSPF messages.
Authentication Key IDInteger
Instance IDInteger


0-9999999999999999

Up to 16 Characters


[TD]Key ID used by MD5 Authentication.[/TD]


0-255


[TD]The CLI print display number of the instance this virtual link belongs to.[/TD]
[TR]
[TD]Use BFD[/TD]
[TD]Yes/No
Checked/Unchecked[/TD]
[TD]Whether or not this link should use Bidirectional Forwarding Detection.[/TD]
[/TR]



NBMA Neighbor Settings
SettingValueExplanation
InstanceStringThe OSPF instance the parent interface is participating in.
AddressIP AddressThe link address of the neighbor.
Poll IntervalTimeHow often to send message to neighbors which are in a down state.
PriorityInteger
0-255
Assumed priority value of neighbors which are in a down state. Default is 0, which means they not be apart of the DR/BDR election process.



Sham Link Settings
SettingValueExplanation
SRC AddressIP AddressThis router’s loopback address.
DST AddressIP AddressThe remote router’s looback address.
CostInteger
1-65535
Cost of the link.
AreaStringThe area that shares an OSPF backdoor link.



Like this:​


Like Loading…


Related





Xem tiếp...
 
Top