We will be configuring the first 10 tasks in the lab that was pasted up a few days back. These tasks are listed below for reference. I will be showing information only about the tasks listed. Initial configuration of the OSPF routing processes and network statements are not covered so you will have to take care of that yourself.
Tasks
* Make R1 the DR and R2 the BDR for the 172.16.123.0/24 network.
* R1-R2-R3 will be using their default OSPF network type of broadcast.
* R1-R4 link is frame-relay and the OSPF network type is point-to-multipoint.
* R1-R4 link is using MD5 authentication for peering.
* R1-R5 link is frame-relay and the OSPF network type is the default of non-broadcast.
* R1-R5 link is using simple authentication for peering.
* R1-R12 link is using its default OSPF network area type of point-to-point.
* R1, R2, R3, R4, R5, and R12 are all in OSPF area 0.
* R2-R8 will serve as a virtual link for OSPF area 4.
* R3-R9 link is using frame-relay and OSPF network type is point-to-multipoint non-broadcast.
Task 1
Network 172.16.123.0/24 is an Ethernet segment connecting R1, R2, and R3. This is what in OSPF terms is called a multiaccess network. Ethernet interfaces participating in OSPF have a default network type of broadcast so this means a Designated Router(DR) and Backup Designated Router(BDR) are going to be elected. We want R1 to always be elected the DR and R2 to be elected as BDR which will leave R3 to be a DROTHER. We can make R1 always elected the DR by giving it a higher priority value on its FastEthernet interface than R2 and R3. We then do the same thing for R2. We will leave R3 at the default priority value of 1.
R1(config)#interface fa1/0
R1(config-if)#ip ospf priority 200
R2(config)#interface fa1/0
R2(config-if)#ip ospf priority 100
R1 and R2 will not become DR and BDR now just because you have put in this configuration. If there is a currently elected DR and BDR then you will have to cause a new election and the easiest thing to do in a lab is of course reboot the R1, R2, and R3 routers. So that is done and now we can take a look to see if our settings worked out like we wanted.
R1#show ip ospf interface fa1/0 | inc Desig
Designated Router (ID) 0.0.0.1, Interface address 172.16.123.1
Backup Designated router (ID) 0.0.0.2, Interface address 172.16.123.2
Adjacent with neighbor 0.0.0.2 (Backup Designated Router)
The output shows R1, router ID 0.0.0.1, is the DR and R2, router ID 0.0.0.2, is the BDR. There is another command that you can use to seem some of this info as well but will not show anything for the current router you are on.
R1#show ip ospf neigh
Neighbor ID Pri State Dead Time Address Interface
0.0.0.2 100 FULL/BDR 00:00:32 172.16.123.2 FastEthernet1/0
0.0.0.3 1 FULL/DROTHER 00:00:32 172.16.123.3 FastEthernet1/0
The neighbor command allows us to see that R3, router id 0.0.0.3, is a DROTHER.
Task 2
Nothing to configure here as the default network type for the 172.16.123.0/24 network is broadcast. Lets verify this of course.
R1#show ip ospf interface fa1/0 | inc Type
Process ID 1, Router ID 0.0.0.1, Network Type BROADCAST, Cost: 1
R2#show ip ospf interface fa1/0 | inc Type
Process ID 1, Router ID 0.0.0.2, Network Type BROADCAST, Cost: 1
R3#show ip ospf interface fa1/0 | inc Type
Process ID 10000, Router ID 0.0.0.3, Network Type BROADCAST, Cost: 1
Looks good to me.
Task 3
In this task we will configure the R1-R4 link to use frame-relay and configure the OSPF network type to point-to-multipoint.
R1(config)#interface Serial0/0
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay map ip 172.16.14.0 104
R1(config-if)#frame-relay map ip 172.16.14.1 104 broadcast
R1(config-if)#ip ospf network point-to-multipoint
R4(config)#interface Serial0/0
R4(config-if)#encapsulation frame-relay
R4(config-if)#frame-relay map ip 172.16.14.0 401 broadcast
R4(config-if)#frame-relay map ip 172.16.14.1 401
R4(config-if)#ip ospf network point-to-multipoint
Lets verify on R4 that the configuration took.
R4#show ip ospf interface s0/0 | inc Type
Process ID 1, Router ID 0.0.0.4, Network Type POINT_TO_MULTIPOINT, Cost: 64
Yep, point-to-multipoint as we configured it.
Task 4
We are going to setup MD5 authentication for the OSPF session between R1 and R4 in this task.
R1(config)#interface Serial0/0
R1(config-if)#ip ospf authentication message-digest
R1(config-if)#ip ospf message-digest-key 1 md5 C1sc0
R4(config)#interface Serial0/0
R4(config-if)#ip ospf authentication message-digest
R4(config-if)#ip ospf message-digest-key 1 md5 C1sc0
Now we need to check that it is truly using MD5 encryption on the link. Lets look at a show command and a debug command that can do this for us.
R4#show ip ospf interface s0/0 | beg Message
Message digest authentication enabled
Youngest key id is 1
R4#debug ip ospf packet
OSPF packet debugging is on
*Mar 1 00:58:10.455: OSPF: rcv. v:2 t:1 l:48 rid:0.0.0.1
aid:0.0.0.0 chk:0 aut:2 keyid:1 seq:0x3C7ED1CF from Serial0/0
The show command displays that MD authentication is enabled. The debug command shows that the OSPF packet received from rid:0.0.0.1(R1) is using aut:2 which is authentication type 2 so that is MD5. It also shows which key it is using in the keyid:1 value.
Task 5
This task is almost the same as task 3 except we will not be changing the network type. Frame-relay has a default OSPF network type of non-broadcast. In a non-broadcast network we are going to have to manually setup the neighbors.
R1(config)#interface Serial0/1
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay map ip 172.16.15.0 105
R1(config-if)#frame-relay map ip 172.16.15.1 105
R1(config-if)#router ospf 1
R1(config-router)#neighbor 172.16.15.1
R5(config)#interface Serial0/0
R5(config-if)#encapsulation frame-relay
R5(config-if)#frame-relay map ip 172.16.15.0 501
R5(config-if)#frame-relay map ip 172.16.15.1 501
R5(config-if)#router ospf 1
R5(config-router)#neighbor 172.16.15.0
Now we verify that the interface is using a non-broadcast network type and that the adjacencies are up.
R5#show ip ospf interface s0/0 | inc Type
Process ID 1, Router ID 0.0.0.5, Network Type NON_BROADCAST, Cost: 64
R1#show ip ospf neigh s0/1
Neighbor ID Pri State Dead Time Address Interface
0.0.0.5 1 FULL/DR 00:01:59 172.16.15.1 Serial0/1
R5#show ip ospf neigh s0/0
Neighbor ID Pri State Dead Time Address Interface
0.0.0.1 1 FULL/BDR 00:01:55 172.16.15.0 Serial0/0
Task 6
On the R1-R5 link we are going to use simple authentication. This passes the authentication key in plain-text so it is not exactly secure by any means.
R1(config)#interface Serial0/1
R1(config-if)#ip ospf authentication
R1(config-if)#ip ospf authentication-key C1sc0
R5(config)#interface Serial0/0
R5(config-if)#ip ospf authentication
R5(config-if)#ip ospf authentication-key C1sc0
We will look at the same show and debug commands we used previously when configuring MD5 authentication.
R1#show ip ospf interface s0/1 | inc auth
Simple password authentication enabled
R5#debug ip ospf packet
OSPF packet debugging is on
*Mar 1 01:35:51.851: OSPF: rcv. v:2 t:1 l:48 rid:0.0.0.1
aid:0.0.0.0 chk:750F aut:1 auk: from Serial0/0
The show command displays the correct information for this interface and the debug command shows aut:1 which is simple authentication.
Task 7
Another simple one. We are just verifying that the R1-R12 link serial interfaces are using their default point-to-point OSPF network type.
R1#show ip ospf interface s0/2 | inc Type
Process ID 1, Router ID 0.0.0.1, Network Type POINT_TO_POINT, Cost: 64
R12#show ip ospf interface s0/0 | inc Type
Process ID 1, Router ID 0.0.0.12, Network Type POINT_TO_POINT, Cost: 64
Simple enough.
Task 8
So we want to check that all the specified routers are in area 0. Any single router in an area is supposed to have the same link-state database as all the other routers in that area. Lets take a look at the database on R12 and see what we can see.
R12#show ip ospf database
OSPF Router with ID (0.0.0.12) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
0.0.0.1 0.0.0.1 878 0x8000000E 0x004885 6
0.0.0.2 0.0.0.2 397 0x80000006 0x007310 2
0.0.0.3 0.0.0.3 403 0x80000007 0x00EEC0 1
0.0.0.4 0.0.0.4 437 0x80000008 0x00C376 2
0.0.0.5 0.0.0.5 354 0x80000007 0x00D373 1
0.0.0.8 0.0.0.8 3 (DNA) 0x80000002 0x00B84B 1
0.0.0.12 0.0.0.12 407 0x80000005 0x00AE7C 2
....... rest of output removed .......
Type 1 LSAs, router LSAs, are used by a router to advertise its identity and all its links inside of an area. The database should therefore contain all the routers in an area and according to this show command it does include the ones listed on the task as well as R8. R8 is part of a virtual-link that we will be discussing in the next task.
Task 9
We are going to configure a virtual-link between R2 and R8 so that R4 can appear to be connected to the backbone area 0 even though it really is not.
R2(config)#router ospf 1
R2(config-router)#area 3 virtual-link 0.0.0.8
R8(config)#router ospf 1
R8(config-router)#area 3 virtual-link 0.0.0.2
Notice that you are using the router ID of the opposite site of the virtual-link and not and interface IP address. Now we verify that the link is up and working.
R2#show ip ospf virtual-links
Virtual Link OSPF_VL0 to router 0.0.0.8 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 3, via interface Serial0/0, Cost of using 64
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:03
Adjacency State FULL (Hello suppressed)
Index 1/2, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
Task 10
Another frame-relay config and this time we will be using the OSPF network type of point-to-multipoint nonbroadcast. As before, because this is nonbroadcast we will need to manually configure the neighbors.
R3(config)#interface Serial0/0
R3(config-if)#encapsulation frame-relay
R3(config-if)#frame-relay map ip 172.16.39.0 309
R3(config-if)#frame-relay map ip 172.16.39.1 309
R3(config-if)#ip ospf network point-to-multipoint non-broadcast
R3(config-if)#router ospf 10000
R3(config-router)#neighbor 172.16.39.1
R9(config)#interface Serial0/0
R9(config-if)#encapsulation frame-relay
R9(config-if)#frame-relay map ip 172.16.39.0 903
R9(config-if)#frame-relay map ip 172.16.39.1 903
R9(config-if)#ip ospf network point-to-multipoint non-broadcast
R9(config-if)#router ospf 1
R9(config-router)#neighbor 172.16.39.0
You can use the same show commands as mentioned previously to verify anything.
We will cover the next 11 config tasks in post #2 and then the final config tasks in post #3.