$ 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-broadcastrouter ospf 1
neighbor 10.1.1.1
neighbor 10.1.1.2
neighbor 10.1.1.3
neighbor 10.1.1.4OSPF Point-to-Multipoint network-type
interface Tun 123
ip ospf network point-to-multipointOSPF 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.xOSPF Point-to-Point network-type
interface Gig 0/0
ip ospf network point-to-pointOSPF 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 Blockrouter ospf 1
area <area-number> authentication
interface Gig x/y
ip ospf authentication-key xxxrouter 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 tst14:19:18.171: %OSPF-4-NOVALIDKEY: No valid authentication send key is available on interface OSPF_VL0R3(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-digestarea 1 virtual-link 0.0.0.3 authentication nullOSPF Best Path Selection
router ospf 1
compatible rfc1587OSPF Default Route Injection
default-information originate {always}default-information originate route-map TESTtrack 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 originateip 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 1OSPF Non-Broadcast Neighbor
router ospf 1
neighbor x.x.x.x cost 90