Bits&Bricks
$ show search

Searches the blog, kb and courses. Press / to open it from anywhere, ↓ ↑ to move through the results and Enter to open one. On notes and lessons, [ and ] go to the previous and next page.

$ show running-config | section ospf

Commands in ospf/

18 snippets from 8 notes, in tree order. Each heading links to its note. for a cheat sheet.

OSFP Non-Broadcast network-type

interface Gig 0/0
 ip ospf network non-broadcast
router ospf 1
 neighbor 10.1.1.1
 neighbor 10.1.1.2
 neighbor 10.1.1.3
 neighbor 10.1.1.4

OSPF Point-to-Multipoint network-type

interface Tun 123
 ip ospf network point-to-multipoint

OSPF Point-to-Multipoint Non-Broadcast network-type

interface Tun 123
 ip ospf network point-to-multipoint non-broadcast

router ospf 1
 neighbor x.x.x.x

OSPF Point-to-Point network-type

interface Gig 0/0
 ip ospf network point-to-point

OSPF Authentication

Internet Protocol Version 4, Src: 12.1.1.1, Dst: 224.0.0.5
Open Shortest Path First
    OSPF Header
        Version: 2
        Message Type: Hello Packet (1)
        Packet Length: 48
        Source OSPF Router: 0.0.0.1
        Area ID: 0.0.0.0 (Backbone)
        Checksum: 0xd292 [correct]
        *Auth Type: Null (0)
        Auth Data (none): 0000000000000000
    OSPF Hello Packet
    OSPF LLS Data Block
router ospf 1
 area <area-number> authentication

interface Gig x/y
 ip ospf authentication-key xxx
router ospf 1
 area 0 authentication message-digest

interface Gig x/y
 ip ospf message-digest-key <id> md5 <password>
key chain tst
 key 1
  key-string PSWD
  cryptographic-algorithm hmac-sha-512
interface g0/4
 ip ospf authentication key-chain tst
14:19:18.171: %OSPF-4-NOVALIDKEY: No valid authentication send key is available on interface OSPF_VL0
R3(config)#router ospf 1
R3(config-router)#area 1 virtual-link 0.0.0.2 authentication message-digest R3(config-router)#area 2 virtual-link 0.0.0.4 authentication message-digest

R4(config)#router ospf 1
R4(config-router)#area 2 virtual-link 0.0.0.3 authentication message-digest
area 1 virtual-link 0.0.0.3 authentication null

OSPF Best Path Selection

router ospf 1
 compatible rfc1587

OSPF Default Route Injection

default-information originate {always}
default-information originate route-map TEST
track 2 ip route 2.0.0.0 255.0.0.0 reachability
track 3 ip route 3.0.0.0 255.0.0.0 reachability
track 1 list boolean and
 object 2
 object 3

ip route 0.0.0.0 0.0.0.0 Null0 track 1

router ospf 1
 default-information originate
ip prefix-list NET permit 169.254.0.0/16

route-map tst permit 10
 match ip address prefix NET
 
router ospf 1
 default-information originate route-map tst

ip route 169.254.0.0 255.255.0.0 null0 track 1

OSPF Non-Broadcast Neighbor

router ospf 1
 neighbor x.x.x.x cost 90