OSPFv2
R1(config)# router ospf 1
R1(config-router)# router-id 1.1.1.1
R1(config-router)# default-information originate
R1(config-router)# auto-cost reference-bandwith 1000
R1(config-router)# area 20 range 172.16.0.0 255.255.0.0
R1(config)# interface loopback1
R1(config-if)# ip address 1.1.1.1 255.255.255.255
R1(config-if)# ip ospf priority 1
R1(config-if)# ip ospf cost 15625
R1(config-if)# ip ospf hello-interval 10
R1(config-if)# ip ospf dead-interval 40
R1(config-router)# area 0 authentication message-digest
R1(config-if)# ip ospf message-digest-key 1 md5 HESLO-147
R1(config-if)# ip ospf authentication message-digest
R1# clear ip ospf process