Common Configuration Snippet
Million common configuration is here.
-
-
R1
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.1.2.1 255.255.255.0
no shutdown
interface Loopback 0
ip address 1.1.1.1 255.255.255.255
no shutdown
!
router ospf 1
router-id 1.1.1.1
network 10.1.2.1 0.0.0.0 area 20
network 1.1.1.1 0.0.0.0 area 20
exit
!
end
R2
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.2.3.2 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.1.2.2 255.255.255.0
no shutdown
interface Loopback 0
ip address 2.2.2.2 255.255.255.255
no shutdown
!
router ospf 1
router-id 2.2.2.2
network 10.1.2.2 0.0.0.0 area 20
network 10.2.3.2 0.0.0.0 area 10
network 2.2.2.2 0.0.0.0 area 20
exit
!
end
R3
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.3.4.3 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.2.3.3 255.255.255.0
no shutdown
interface Loopback 0
ip address 3.3.3.3 255.255.255.255
no shutdown
!
router ospf 1
router-id 3.3.3.3
network 10.2.3.3 0.0.0.0 area 10
network 10.3.4.3 0.0.0.0 area 10
network 3.3.3.3 0.0.0.0 area 10
exit
!
end
R4
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.4.5.4 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.3.4.4 255.255.255.0
no shutdown
interface Loopback 0
ip address 4.4.4.4 255.255.255.255
no shutdown
!
router ospf 1
router-id 4.4.4.4
network 10.3.4.4 0.0.0.0 area 10
network 10.4.5.4 0.0.0.0 area 0
network 4.4.4.4 0.0.0.0 area 0
exit
!
end
R5
configure terminal
!
interface GigabitEthernet 0/2
ip address 10.4.5.5 255.255.255.0
no shutdown
interface Loopback 0
ip address 5.5.5.5 255.255.255.255
no shutdown
!
router ospf 1
router-id 5.5.5.5
network 10.4.5.5 0.0.0.0 area 0
network 5.5.5.5 0.0.0.0 area 0
exit
!
end
configure terminal
!
router ospf 1
area 10 virtual-link 4.4.4.4
exit
!
end
configure terminal
!
router ospf 1
area 10 virtual-link 2.2.2.2
exit
!
end
DNA means DO NOT AGE?
ospf
R1 Console Log
R2 Console Log
notable show result
R2#show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 4.4.4.4 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 10, via interface GigabitEthernet0/1
Topology-MTID Cost Disabled Shutdown Topology Name
0 2 no no Base
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:07
Adjacency State FULL (Hello suppressed)
Index 1/1/3, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
R3 Console Log
R4 Console Log
notable show result
R4#show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 2.2.2.2 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 10, via interface GigabitEthernet0/2
Topology-MTID Cost Disabled Shutdown Topology Name
0 2 no no Base
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:04
Adjacency State FULL (Hello suppressed)
Index 1/2/3, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
R5 Console Log
-
-
-
-
Virtual Link Packet is may be unicast packet. Destination address is not multicast.
configure terminal
!
router ospf 1
area 10 nssa
area 10 virtual-link 4.4.4.4
exit
!
end
configure terminal
!
router ospf 1
area 10 nssa
exit
!
end
configure terminal
!
router ospf 1
area 10 nssa
area 10 virtual-link 2.2.2.2
exit
!
end
R2 Console Log
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#router ospf 1
R2(config-router)#are
R2(config-router)#area 10 nssa
% OSPF: Area cannot be NSSA as it contains a virtual link
R2(config-router)#no area 10 viru
R2(config-router)#do sh run | sec router ospf 1
router ospf 1
router-id 2.2.2.2
area 10 virtual-link 4.4.4.4
network 2.2.2.2 0.0.0.0 area 20
network 10.1.2.2 0.0.0.0 area 20
network 10.2.3.2 0.0.0.0 area 10
R2(config-router)#
*Feb 23 02:47:14.271: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Dead timer expired
R2(config-router)#
*Feb 23 02:47:19.779: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on OSPF_VL0 from FULL to DOWN, Neighbor Down: Interface down or detached
R2(config-router)#no area 10 virtual-link 4.4.4.4
R2(config-router)#do sh run | sec router ospf 1
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 20
network 10.1.2.2 0.0.0.0 area 20
network 10.2.3.2 0.0.0.0 area 10
R2(config-router)#are
R2(config-router)#area 10 nssa
R2(config-router)#
*Feb 23 02:48:03.313: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
R2(config-router)#viru
R2(config-router)#viru
R2(config-router)#area 10 vi
R2(config-router)#area 10 virtual-link 4.4.4.4
% OSPF: Virtual links are not allowed in NSSA and stub areas
R2(config-router)#do hs run | sec route ospf
^
% Invalid input detected at '^' marker.
R2(config-router)#do sh run | sec route ospf
R2(config-router)#do sh run | sec router ospf
router ospf 1
router-id 2.2.2.2
area 10 nssa
network 2.2.2.2 0.0.0.0 area 20
network 10.1.2.2 0.0.0.0 area 20
network 10.2.3.2 0.0.0.0 area 10
R2(config-router)#area 10 viru
R2(config-router)#area 10 virtu
R2(config-router)#area 10 virtual-link 4.4.4.4
% OSPF: Virtual links are not allowed in NSSA and stub areas
R2(config-router)#no area
R2(config-router)#no area
R2(config-router)#no area 10 viru
R2(config-router)#no area 10 nssa
R2(config-router)#
*Feb 23 02:53:29.248: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
R2(config-router)#
*Feb 23 02:53:36.489: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
R2(config-router)#do sh run | sec router ospf
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 20
network 10.1.2.2 0.0.0.0 area 20
network 10.2.3.2 0.0.0.0 area 10
R2(config-router)#tcls
R2(config-router)#area
R2(config-router)#area 10 vi
R2(config-router)#area 10 virtual-link 4.4.4.4
R2(config-router)#
*Feb 23 02:54:51.560: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on OSPF_VL1 from LOADING to FULL, Loading Done
R2(config-router)#
R2(config-router)#
R2(config-router)#do sh run | sec router ospf
router ospf 1
router-id 2.2.2.2
area 10 virtual-link 4.4.4.4
network 2.2.2.2 0.0.0.0 area 20
network 10.1.2.2 0.0.0.0 area 20
network 10.2.3.2 0.0.0.0 area 10
R2(config-router)#area 10 nssa
% OSPF: Area cannot be NSSA as it contains a virtual link
R2(config-router)#
*Feb 23 02:57:09.347: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Dead timer expired
R2(config-router)#
*Feb 23 02:57:14.861: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on OSPF_VL1 from FULL to DOWN, Neighbor Down: Interface down or detached
R2(config-router)#
*Feb 23 02:57:25.976: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
R2(config-router)#end
R2#
*Feb 23 02:57:44.789: %SYS-5-CONFIG_I: Configured from console by console
*Feb 23 02:57:45.152: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on OSPF_VL1 from LOADING to FULL, Loading Done
R2#
R3 Console Log
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router ospf 1
R3(config-router)#
*Feb 23 02:46:21.679: %PNP-6-PNP_DISCOVERY_STOPPED: PnP Discovery stopped (Config Wizard)
R3(config-router)#area
R3(config-router)#area 10 nssa
R3(config-router)#
*Feb 23 02:46:40.019: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Feb 23 02:46:40.020: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/2 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
R3(config-router)#do sh run | sec router ospf 1
router ospf 1
router-id 3.3.3.3
area 10 nssa
network 3.3.3.3 0.0.0.0 area 10
network 10.2.3.3 0.0.0.0 area 10
network 10.3.4.3 0.0.0.0 area 10
R3(config-router)#
*Feb 23 02:48:05.301: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/2 from LOADING to FULL, Loading Done
R3(config-router)#
*Feb 23 02:48:06.892: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
R3(config-router)#are
R3(config-router)#area 10 nssa
R3(config-router)#do sh run | sec router ospf
router ospf 1
router-id 3.3.3.3
area 10 nssa
network 3.3.3.3 0.0.0.0 area 10
network 10.2.3.3 0.0.0.0 area 10
network 10.3.4.3 0.0.0.0 area 10
R3(config-router)#no area 10 nssa
R3(config-router)#
*Feb 23 02:53:37.864: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Feb 23 02:53:37.864: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/2 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Feb 23 02:53:38.596: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/2 from LOADING to FULL, Loading Done
R3(config-router)#
*Feb 23 02:53:44.249: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
R3(config-router)#do sh run | sec router ospf
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 10
network 10.2.3.3 0.0.0.0 area 10
network 10.3.4.3 0.0.0.0 area 10
R3(config-router)#do sh run | sec router ospf
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 10
network 10.2.3.3 0.0.0.0 area 10
network 10.3.4.3 0.0.0.0 area 10
R3(config-router)#area
R3(config-router)#area 10 nssa
R3(config-router)#
*Feb 23 02:56:35.212: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Feb 23 02:56:35.212: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/2 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
R3(config-router)#do sh run | sec router ospf
router ospf 1
router-id 3.3.3.3
area 10 nssa
network 3.3.3.3 0.0.0.0 area 10
network 10.2.3.3 0.0.0.0 area 10
network 10.3.4.3 0.0.0.0 area 10
R3(config-router)#no area 10 nssa
R3(config-router)#
*Feb 23 02:57:27.989: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on GigabitEthernet0/1 from DOWN to DOWN, Neighbor Down: Adjacency forced to reset
*Feb 23 02:57:27.989: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/2 from DOWN to DOWN, Neighbor Down: Adjacency forced to reset
*Feb 23 02:57:28.060: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on GigabitEthernet0/2 from LOADING to FULL, Loading Done
R3(config-router)#
*Feb 23 02:57:32.002: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on GigabitEthernet0/1 from LOADING to FULL, Loading Done
R3(config-router)#end
R3#
*Feb 23 02:57:47.890: %SYS-5-CONFIG_I: Configured from console by console
R3#
R4 Console Log
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#router ospf 1
R4(config-router)#area
R4(config-router)#area 10 nss
R4(config-router)#area 10 nssa
% OSPF: Area cannot be NSSA as it contains a virtual link
R4(config-router)#
*Feb 23 02:47:09.805: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/2 from FULL to DOWN, Neighbor Down: Dead timer expired
R4(config-router)#do sh run | sec router ospf 1
*Feb 23 02:47:15.315: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on OSPF_VL0 from FULL to DOWN, Neighbor Down: Interface down or detachedrouter ospf 1
router-id 4.4.4.4
area 10 virtual-link 2.2.2.2
network 4.4.4.4 0.0.0.0 area 0
network 10.3.4.4 0.0.0.0 area 10
network 10.4.5.4 0.0.0.0 area 0
R4(config-router)#no area 10 virtual-link 2.2.2.2
R4(config-router)#are
R4(config-router)#area 10 nssa
R4(config-router)#
*Feb 23 02:48:05.828: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/2 from LOADING to FULL, Loading Done
R4(config-router)#do sh run | sec route ospf
R4(config-router)#do sh run | sec router ospf
router ospf 1
router-id 4.4.4.4
area 10 nssa
network 4.4.4.4 0.0.0.0 area 0
network 10.3.4.4 0.0.0.0 area 10
network 10.4.5.4 0.0.0.0 area 0
R4(config-router)#area 10 vi
R4(config-router)#area 10 virtual-link 2.2.2.2
% OSPF: Virtual links are not allowed in NSSA and stub areas
R4(config-router)#area
R4(config-router)#area 10 nssa no-su
R4(config-router)#area 10 nssa no-summary
R4(config-router)#do sh run | sec router ospf
router ospf 1
router-id 4.4.4.4
area 10 nssa no-summary
network 4.4.4.4 0.0.0.0 area 0
network 10.3.4.4 0.0.0.0 area 10
network 10.4.5.4 0.0.0.0 area 0
R4(config-router)#area 10 viru
R4(config-router)#area 10 vir
R4(config-router)#area 10 virtual-link 2.2.2.2
% OSPF: Virtual links are not allowed in NSSA and stub areas
R4(config-router)#no are
R4(config-router)#no area 10 nssa
R4(config-router)#no area 10 nssa
*Feb 23 02:53:42.622: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/2 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Feb 23 02:53:43.220: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/2 from LOADING to FULL, Loading Done
R4(config-router)#do sh run | sec router ospf
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 10.3.4.4 0.0.0.0 area 10
network 10.4.5.4 0.0.0.0 area 0
R4(config-router)#
*Feb 23 02:54:38.414: %OSPF-4-ERRRCV: Received invalid packet: mismatched area ID from backbone area from 10.2.3.2, GigabitEthernet0/2
R4(config-router)#area 10 vir
R4(config-router)#area 10 virtual-link
*Feb 23 02:54:47.643: %OSPF-4-ERRRCV: Received invalid packet: mismatched area ID from backbone area from 10.2.3.2, GigabitEthernet0/2
R4(config-router)#area 10 virtual-link 2.2.2.2
R4(config-router)#
*Feb 23 02:54:52.594: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on OSPF_VL1 from LOADING to FULL, Loading Done
R4(config-router)#do sh run | sec router ospf
router ospf 1
router-id 4.4.4.4
area 10 virtual-link 2.2.2.2
network 4.4.4.4 0.0.0.0 area 0
network 10.3.4.4 0.0.0.0 area 10
network 10.4.5.4 0.0.0.0 area 0
R4(config-router)#area
R4(config-router)#area 10 nssa no-su
R4(config-router)#area 10 nssa no-summary
% OSPF: Area cannot be NSSA as it contains a virtual link
R4(config-router)#area 10 stub
% OSPF: Area cannot be a stub as it contains a virtual link
R4(config-router)#
*Feb 23 02:57:06.711: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/2 from FULL to DOWN, Neighbor Down: Dead timer expired
R4(config-router)#
*Feb 23 02:57:12.219: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on OSPF_VL1 from FULL to DOWN, Neighbor Down: Interface down or detached
R4(config-router)#
*Feb 23 02:57:30.963: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on GigabitEthernet0/2 from LOADING to FULL, Loading Done
R4(config-router)#
*Feb 23 02:57:46.019: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on OSPF_VL1 from LOADING to FULL, Loading Done
R4(config-router)#end
R4#
R4#
R4#
R4#
R4#
*Feb 23 02:57:47.873: %SYS-5-CONFIG_I: Configured from console by console
R4#
configure terminal
!
router ospf 1
area 10 nssa
area 10 virtual-link 4.4.4.4
exit
!
end
configure terminal
!
router ospf 1
area 10 nssa
exit
!
end
configure terminal
!
router ospf 1
area 10 nssa no-summary
area 10 virtual-link 2.2.2.2
exit
!
end