OSPF Commands Flashcards

1
Q

Initialize the OSPF Process

A

Router(config)# router ospf process-id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Enable OSPF on interfaces that match a specified network range

A

Router(config-router)# network ip-address wildcard-mask area area-id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Enable OSPF explicitly on a specific interface

A

From interface config mode:

Router(config-if)# ip ospf process-id area area-id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Configure a specific interface as passive

A

Router(config-router)# passive-interface interface-id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Configure all interfaces as passive

A

Router(config-router)# passive-interface default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Advertise a default route into OSPF (for an ABR)

A

Router(config-router)# default-information originate [always] [metric metric-value] [metric-type type]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Modify the OSPF reference bandwidth for dynamic interface metric costing

A

Router(config-router)# auto-cost reference-bandwidth mbps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Statically assign an OSPF cost to an interface

A

Router(config-if)# ip ospf cost 1-65535

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Configure the OSPF priority for a DR/BDR election

A

Router(config-if)# ip ospf priority 0-255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Modify the default hello timer of an OSPF interface

A

Router(config-if)# ip ospf hello-interval 1-65535

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Modify the default dead interval timer of an OSPF interface

A

Router(config-if)# ip ospf dead-interval 1-65535

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Statically configure an interface as a broadcast OSPF network type

A

Router(config-if)# ip ospf network broadcast

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Statically configure an interface as a point-to-point OSPF network type

A

Router(config-if)# ip ospf network point-to-point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Restart the OSPF process

A

Router# clear ip ospf process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Display OSPF interfaces on a router

A

Router# show ip ospf int [brief | interface-id]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Display the OSPF neighbors and current states

A

Router# show ip ospf neighbor [detail]

17
Q

Display the OSPF routes that are installed in the RIB

A

Router# show ip route ospf

18
Q

Summarize routes as they are crossing an OSPF ABR

A

Router(config-router)# area area-id range network-address subnet-mask

NOTE: The network address and subnet will be the summarized result

Example:
RouterABR1(config-router)# area 0 range 10.1.0.0 255.255.0.0

19
Q

Filter a route using a route summary on an OSPF ABR

A

Router(config-router)# area area-id range network-address subnet-mask not-advertise

Example:
Router3(config-router)# area 0 range 10.0.0.0 255.255.0.0 not-advertise

20
Q

Filter routes as they cross an OSPF ABR

A

Router(config-router)# area area-id filter-list prefix PF-LIST-NAME {in | out}

21
Q

Create a prefix list (2 commands)

A

Router(config)# ip prefix-list NAME deny subnet-address/mask
Router3(config)# ip prefix-list NAME permit 0.0.0.0/0 le 32

Example:
Router(config)# ip prefix-list FILTER_A deny 10.1.35.0/24
Router(config)# ip prefix-list FILTER_A permit 0.0.0.0/0 le 32

22
Q

Filter OSPF routes from entering the RIB

A

Router(config-router)# distribute-list {acl-number | acl-name | prefix prefix-list-name |route-map *route-map-name} in

23
Q

Display the LSAa in the LSDB

A

Router# show ip ospf database [router | network | summary]

24
Q

Redistribute static routes from an OSPF router (becoming an ASBR)

A

Router1(config-router)# redistribute static subnets

25
Q

What is the command to summarize routes from an ASBR?

A

Router(config-router)# summary-address network-address subnet-mask

Example: Router1(config-router)# summary-address 10.11.1.0 255.255.255.0

26
Q

What commands would be used to filter external static routes on an ASBR using a route-map?

A

Router(config)# access-list list-id deny network-address wildcard-mask
Router(config)# access-list list-id permit any
Router(config)# route-map NAME deny sequence-num
Router(config-route-map)# match ip address ACL-id
Router(config)# router ospf process-id
Router(config-router)# redistribute static subnets route-map NAME

Example:
Router(config)# access-list 99 deny 10.1.1.0 0.0.0.255
Router(config)# access-list 99 permit any
Router(config)# route-map STATIC_FILTER deny 10
Router(config-route-map)# match ip address 99
Router(config)# router ospf 1
Router(config-router)# redistribute static subnets route-map STATIC_FILTER

27
Q

What command(s) would you use to filter OSPF routes from a router’s local/own routing table?

A

Router(config-router)# distribute-list ACL-id in
OR
Router(config-router)# distribute-list prefix prefix-list-id in
OR
Router(config-router)# distribute-list route-map route-map-id in

Example:
Router(config)# access-list 99 deny 10.11.23.0 0.0.0.255
Router(config)# access-list 99 permit any

Router(config)# router ospf 1
Router(config-router)# distribute-list 99 in

28
Q

What are the commands to make an area a Stub Area? Where would this be configured?

A

Configure on all routers in the Stub Area:

Router(config-router)# area area-id stub

Example: Router(config-router)# area 2 stub

29
Q

What are the commands to make an area a Totally Stubby Area? Where would this be configured?

A

Configure on all routers in the Stub Area:

Router(config-router)# area area-id stub no-summary

Example: Router(config-router)# area 2 stub no-summary

30
Q

What are the commands to make an area a Not So Stubby Area? Where would this be configured?

A

Configure on all routers in the Stub Area:

Router(config-router)# area area-id nssa

Example: Router(config-router)# area 2 stub nssa

31
Q

What command is needed to summarize routes for a NSSA? Where is this configured?

A

On the ABR:

Router(config-router)# area area-id nssa default-information-originate

Example:
Router(config-router)# area 2 nssa default-information-originate

32
Q

In OSPFv3, display LSA type 3

A

show ipv6 ospf database inter-area prefix

33
Q

In OSPFv3, display LSA type 4

A

show ipv6 ospf database inter-area router

34
Q

In OSPFv3, display LSA type 8

A

show ipv6 ospf database link

35
Q

In OSPFv3, display LSA type 9

A

show ipv6 ospf database prefix