input commands
config t
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
redistribute connected metric 1000000 metric-type 1 subnets route-map REDISTRO_CONNECTED metric-type 1
network 129.186.17.1 0.0.0.0 area 17
network 130.13.11.1 0.0.0.0 area 12
!
access-list 1 permit 10.1.1.1 0.0.0.255
!
route-map REDISTRO_CONNECTED permit 10
match ip address 1
!
!
exit
exit
wr
show route-map
R1#show route-map
route-map REDISTRO_CONNECTED, permit, sequence 10
Match clauses:
ip address (access-lists): 1
Set clauses:
Policy routing matches: 0 packets, 0 bytes
show access list
R1#show access-lists
Standard IP access list 1
10 permit 10.1.1.0, wildcard bits 0.0.0.255 (1 match)
input commands
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 130.13.11.2 0.0.0.0 area 12
network 129.186.24.2 0.0.0.0 area 0
network 130.13.11.2 0.0.0.0 area 12
show ip ospf neighbor
R2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:00:38 130.13.11.1 FastEthernet0/0
R2#
show ip route
R2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
129.186.0.0/24 is subnetted, 2 subnets
C 129.186.24.0 is directly connected, Serial1/1.24
C 129.186.23.0 is directly connected, Serial1/1.23
130.13.0.0/24 is subnetted, 1 subnets
C 130.13.11.0 is directly connected, FastEthernet0/0
10.0.0.0/24 is subnetted, 2 subnets
C 10.2.2.0 is directly connected, Loopback0
O E1 10.1.1.0 [110/1000001] via 130.13.11.1, 00:23:57, FastEthernet0/0
R2#
Show ip route on R1
R1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 1 FULL/DR 00:00:35 130.13.11.2 FastEthernet0/0
R1#
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
129.186.0.0/24 is subnetted, 3 subnets
O IA 129.186.24.0 [110/65] via 130.13.11.2, 00:25:10, FastEthernet0/0
C 129.186.17.0 is directly connected, Serial1/0
O IA 129.186.23.0 [110/65] via 130.13.11.2, 00:25:19, FastEthernet0/0
130.13.0.0/24 is subnetted, 1 subnets
C 130.13.11.0 is directly connected, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Loopback0
Input commands
OSPF non broadcast mode
router ospf 1
neighbor 129.186.24.4
neighbor 129.186.24.5
neighbor 129.186.23.2
Assign DR priority
interface Serial1/1.23
ip ospf priority 200
interface Serial1/1.24
ip ospf priority 200
to form /24 ospf relationship
interface Loopback0
ip address 10.3.3.3 255.255.255.0
ip ospf network point-to-point
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 10.3.3.3 0.0.0.0 area 0
network 129.186.23.2 0.0.0.0 area 0
network 129.186.35.3 0.0.0.0 area 73
!
to avoid R3 becoming DR
interface s1/1
ip ospf priority 0
R3#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 200 FULL/DR 00:01:43 129.186.23.1 Serial1/1
R3#show ip ro
R3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
129.186.0.0/24 is subnetted, 3 subnets
C 129.186.35.0 is directly connected, FastEthernet0/1
O 129.186.24.0 [110/128] via 129.186.23.1, 00:38:28, Serial1/1
C 129.186.23.0 is directly connected, Serial1/1
130.13.0.0/24 is subnetted, 1 subnets
O IA 130.13.11.0 [110/65] via 129.186.23.1, 00:38:28, Serial1/1
10.0.0.0/24 is subnetted, 2 subnets
C 10.3.3.0 is directly connected, Loopback0
O E1 10.1.1.0 [110/1000065] via 129.186.23.1, 00:38:28, Serial1/1
R3#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/52/72 ms
R3#
to advertise lo interface without network command in OSPF
config t
router ospf 1
redistribute connected metric 1000000 metric-type 1 subnets route-map REDISTRO_CONNECTED metric-type 1
exit
access-list 1 permit 10.2.2.2 0.0.0.255
!
!
route-map REDISTRO_CONNECTED permit 10
match ip address 1
interface Loopback0
ip address 10.4.4.4 255.255.255.0
ip ospf network point-to-point
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 10.4.4.4 0.0.0.0 area 0
network 129.186.24.4 0.0.0.0 area 0
network 129.186.54.2 0.0.0.0 area 45
!
interface Serial1/1
ip ospf priority 0
note
how to get rid of tftp error
configt t
no service config
router ospf 1
router-id 5.5.5.5
log-adjacency-changes
network 10.5.5.5 0.0.0.0 area 0
network 129.186.24.5 0.0.0.0 area 0
network 129.186.35.5 0.0.0.0 area 73
interface Loopback0
ip address 10.5.5.5 255.255.255.0
ip ospf network point-to-point
interface Serial1/1
ip ospf priority 0
clear ip ospf process
show ip route neighbor
show ip route