Pages

network cisco ccna gns3 certification arteq

network cisco ccna gns3 certification arteq
a network runs through it

Search insearchofthecert

Sunday, July 29, 2012

ospf lab 1...

finally...

it's very pretty... it says ospf right on it...

i know you're very excited...

r1

int lo1
desc engineering
ip add 10.1.1.1 255.255.255.0

int f0/0
ip add 10.1.200.1 255.255.255.0
no shut

r2

int lo2
desc meatmarketing
ip add 10.1.2.1 255.255.255.0

int f0/0
ip add 10.1.200.2 255.255.255.0
no shut

r3

int lo3
desc asscounting
10.1.3.1 255.255.255.0

int f0/0
ip add 10.1.200.3 255.255.255.0
no shut

light em up...

r2#ping 10.1.200.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.200.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/18/36 ms
r2#ping 10.1.200.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.200.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/11/28 ms
r2#

do up the serials...

r1

int s0/0
ip add 10.1.100.1 255.255.255.0
clockra 64000
band 64
no shut

r2

int s0/0
ip add 10.1.100.2 255.255.255.0
band 64
no shut

match the bandwidth and the clock rate...

r2(config-if)#
Jul 29 18:47:53: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
r2(config-if)#
Jul 29 18:47:54: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
r2(config-if)#

for a quick review on wild card masks go here... or don't...

http://insearchofthecert.blogspot.com/2011/12/wildassmasks.html

r1#sh run | begin router
router ospf 1
 log-adjacency-changes
 network 10.1.100.0 0.0.0.255 area 0
 network 10.1.200.0 0.0.0.255 area 0

r3#sh run | begin router
router ospf 1
 log-adjacency-changes
 network 10.1.200.0 0.0.0.255 area 0

r1#debug ip ospf adj
OSPF adjacency events debugging is on
r1#
Jul 29 19:02:21: OSPF: Rcv DBD from 10.1.2.1 on Serial0/0 seq 0x1F10 opt 0x52 flag 0x7 len 32  mtu 1500 state INIT
Jul 29 19:02:21: OSPF: 2 Way Communication to 10.1.2.1 on Serial0/0, state 2WAY
Jul 29 19:02:21: OSPF: Send DBD to 10.1.2.1 on Serial0/0 seq 0x2337 opt 0x52 flag 0x7 len 32
Jul 29 19:02:21: OSPF: NBR Negotiation Done. We are the SLAVE
Jul 29 19:02:21: OSPF: Send DBD to 10.1.2.1 on Serial0/0 seq 0x1F10 opt 0x52 flag 0x2 len 92
Jul 29 19:02:21: OSPF: Rcv DBD from 10.1.2.1 on Serial0/0 seq 0x1F11 opt 0x52 flag 0x3 len 52  mtu 1500 state EXCHANGE
Jul 29 19:02:21: OSPF: Send DBD to 10.1.2.1 on Serial0/0 seq 0x1F11 opt 0x52 flag 0x0 len 32
Jul 29 19:02:21: OSPF: Database request to 10.1.2.1
Jul 29 19:02:21: OSPF: sent LS REQ packet to 10.1.100.2, length 12
Jul 29 19:02:21: OSPF: Rcv DBD from 10.1.2.1 on Serial0/0 seq 0x1F12 opt 0x52 flag 0x1 len 32  mtu 1500 state EXCHANGE
Jul 29 19:02:21: OSPF: Exchange Done with 10.1.2.1 on Serial0/0
Jul 29 19:02:21: OSPF: Send
r1#DBD to 10.1.2.1 on Serial0/0 seq 0x1F12 opt 0x52 flag 0x0 len 32
Jul 29 19:02:21: OSPF: Synchronized with 10.1.2.1 on Serial0/0, state FULL
Jul 29 19:02:21: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.2.1 on Serial0/0 from LOADING to FULL, Loading Done
r1#
Jul 29 19:02:21: OSPF: Build router LSA for area 0, router ID 10.1.1.1, seq 0x80000004, process 1
r1#
Jul 29 19:02:38: OSPF: Rcv DBD from 10.1.2.1 on FastEthernet0/0 seq 0x1FF7 opt 0x52 flag 0x7 len 32  mtu 1500 state INIT
Jul 29 19:02:38: OSPF: 2 Way Communication to 10.1.2.1 on FastEthernet0/0, state 2WAY
Jul 29 19:02:38: OSPF: Neighbor change Event on interface FastEthernet0/0
Jul 29 19:02:38: OSPF: DR/BDR election on FastEthernet0/0
Jul 29 19:02:38: OSPF: Elect BDR 10.1.200.3
Jul 29 19:02:38: OSPF: Elect DR 10.1.1.1
Jul 29 19:02:38:        DR: 10.1.1.1 (Id)   BDR: 10.1.200.3 (Id)
Jul 29 19:02:38: OSPF: Send DBD to 10.1.2.1 on FastEthernet0/0 seq 0x136B opt 0x52 flag 0x7 len 32
Jul 29 19:02:38: OSPF: NBR Negotiation Done. We are the SLAVE
Jul 29 19:02:38: OSPF: Send DBD to 10.1.2.1 on FastEthernet0/0 seq 0x1FF7 opt 0x52 flag 0x2 len 112
Jul 29 19:02:38: OSPF: Rcv DBD from 10.1.2.1 on FastEthernet0/0 seq 0x1FF8 opt 0x52 flag 0x3 len 112  mtu 1500 state EXCHANGE
Jul 29 19:02:38: OSPF: Send DBD to 10.1.2.1 on FastEthernet0/0 seq 0x1FF8 opt 0x52 flag 0x0 len 32
Jul 29 19
r1#:02:38: OSPF: Rcv DBD from 10.1.2.1 on FastEthernet0/0 seq 0x1FF9 opt 0x52 flag 0x1 len 32  mtu 1500 state EXCHANGE
Jul 29 19:02:38: OSPF: Exchange Done with 10.1.2.1 on FastEthernet0/0
Jul 29 19:02:38: OSPF: Synchronized with 10.1.2.1 on FastEthernet0/0, state FULL
Jul 29 19:02:38: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.2.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
Jul 29 19:02:38: OSPF: Send DBD to 10.1.2.1 on FastEthernet0/0 seq 0x1FF9 opt 0x52 flag 0x0 len 32
Jul 29 19:02:39: OSPF: Build network LSA for FastEthernet0/0, router ID 10.1.1.1
Jul 29 19:02:39: OSPF: Build network LSA for FastEthernet0/0, router ID 10.1.1.1
r1#
Jul 29 19:02:47: OSPF: Neighbor change Event on interface FastEthernet0/0
Jul 29 19:02:47: OSPF: DR/BDR election on FastEthernet0/0
Jul 29 19:02:47: OSPF: Elect BDR 10.1.200.3
Jul 29 19:02:47: OSPF: Elect DR 10.1.1.1
Jul 29 19:02:47:        DR: 10.1.1.1 (Id)   BDR: 10.1.200.3 (Id)
Jul 29 19:02:47: OSPF: Neighbor change Event on interface FastEthernet0/0
Jul 29 19:02:47: OSPF: DR/BDR election on FastEthernet0/0
Jul 29 19:02:47: OSPF: Elect BDR 10.1.200.3
Jul 29 19:02:47: OSPF: Elect DR 10.1.1.1
Jul 29 19:02:47:        DR: 10.1.1.1 (Id)   BDR: 10.1.200.3 (Id)

r2#debug ip ospf adj 
OSPF adjacency events debugging is on
r2#config t
Enter configuration commands, one per line.  End with CNTL/Z.
r2(config)#router ospf 1
r2(config-router)#netw 10.1.100.0 0.0.0.255 area 0
r2(config-router)#
Jul 29 19:02:10: OSPF: Interface Serial0/0 going Up
Jul 29 19:02:11: OSPF: Build router LSA for area 0, router ID 10.1.2.1, seq 0x80000001, process 1
Jul 29 19:02:11: OSPF: 2 Way Communication to 10.1.1.1 on Serial0/0, state 2WAY
Jul 29 19:02:11: OSPF: Send DBD to 10.1.1.1 on Serial0/0 seq 0x1F10 opt 0x52 flag 0x7 len 32
Jul 29 19:02:11: OSPF: Rcv DBD from 10.1.1.1 on Serial0/0 seq 0x2337 opt 0x52 flag 0x7 len 32  mtu 1500 state EXSTART
Jul 29 19:02:11: OSPF: First DBD and we are not SLAVE
Jul 29 19:02:11: OSPF: Rcv DBD from 10.1.1.1 on Serial0/0 seq 0x1F10 opt 0x52 flag 0x2 len 92  mtu 1500 state EXSTART
Jul 29 19:02:11: OSPF: NBR Negotiation Done. We are the MASTER
Jul 29 19:02:11: OSPF: Send DBD to 10.1.1.1 on Serial0/0 seq 0x1F11 opt 0x52 flag 0x3 len 52
Jul 29 19:02:11: OSPF: Database request to 10.1.1.1
Jul 29 19:02:11: OSPF: sent LS REQ packet to 10.1.100.1, length 36
Jul 29 19:02:11: OSPF: Rcv DBD from 10.1.1.1 on Serial0/0 seq 0x1F11 opt 0x52 flag 0x0 len 32  mt
r2(config-router)#netw u 1500 state EXCHANGE
Jul 29 19:02:11: OSPF: Send DBD to 10.1.1.1 on Serial0/0 seq 0x1F12 opt 0x52 flag 0x1 len 32
Jul 29 19:02:11: OSPF: Rcv DBD from 10.1.1.1 on Serial0/0 seq 0x1F12 opt 0x52 flag 0x0 len 32  mtu 1500 state EXCHANGE
Jul 29 19:02:11: OSPF: Exchange Done with 10.1.1.1 on Serial0/0
Jul 29 19:02:11: OSPF: Synchronized with 10.1.1.1 on Serial0/0, state FULL
Jul 29 19:02:11: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.1.1 on Serial0/0 from LOADING to FULL, Loading Done
r2(config-router)#netw 10.1.
Jul 29 19:02:16: OSPF: Build router LSA for area 0, router ID 10.1.2.1, seq 0x80000002, process 1
r2(config-router)#netw 10.1.200.0 0.0.0.255 area 0
r2(config-router)#
Jul 29 19:02:27: OSPF: Interface FastEthernet0/0 going Up
Jul 29 19:02:28: OSPF: Build router LSA for area 0, router ID 10.1.2.1, seq 0x80000003, process 1
Jul 29 19:02:28: OSPF: 2 Way Communication to 10.1.1.1 on FastEthernet0/0, state 2WAY
Jul 29 19:02:28: OSPF: 2 Way Communication to 10.1.200.3 on FastEthernet0/0, state 2WAY
Jul 29 19:02:28: OSPF: Backup seen Event before WAIT timer on FastEthernet0/0
Jul 29 19:02:28: OSPF: DR/BDR election on FastEthernet0/0
Jul 29 19:02:28: OSPF: Elect BDR 10.1.200.3
Jul 29 19:02:28: OSPF: Elect DR 10.1.1.1
Jul 29 19:02:28:        DR: 10.1.1.1 (Id)   BDR: 10.1.200.3 (Id)
Jul 29 19:02:28: OSPF: Send DBD to 10.1.1.1 on FastEthernet0/0 seq 0x1FF7 opt 0x52 flag 0x7 len 32
Jul 29 19:02:28: OSPF: Send DBD to 10.1.200.3 on FastEthernet0/0 seq 0x1593 opt 0x52 flag 0x7 len 32
Jul 29 19:02:28: OSPF: Rcv DBD from 10.1.200.3 on FastEthernet0/0 seq 0x2647 opt 0x52 flag 0x7 len 32  mtu 1500 state EXSTART
Jul 29 19:02:28: OSPF: NBR Negotiation Don
r2(config-router)#e. We are the SLAVE
Jul 29 19:02:28: OSPF: Send DBD to 10.1.200.3 on FastEthernet0/0 seq 0x2647 opt 0x52 flag 0x2 len 112
Jul 29 19:02:28: OSPF: Rcv DBD from 10.1.1.1 on FastEthernet0/0 seq 0x136B opt 0x52 flag 0x7 len 32  mtu 1500 state EXSTART
Jul 29 19:02:28: OSPF: First DBD and we are not SLAVE
Jul 29 19:02:28: OSPF: Rcv DBD from 10.1.1.1 on FastEthernet0/0 seq 0x1FF7 opt 0x52 flag 0x2 len 112  mtu 1500 state EXSTART
Jul 29 19:02:28: OSPF: NBR Negotiation Done. We are the MASTER
Jul 29 19:02:28: OSPF: Send DBD to 10.1.1.1 on FastEthernet0/0 seq 0x1FF8 opt 0x52 flag 0x3 len 112
Jul 29 19:02:28: OSPF: Rcv DBD from 10.1.200.3 on FastEthernet0/0 seq 0x2648 opt 0x52 flag 0x3 len 112  mtu 1500 state EXCHANGE
Jul 29 19:02:28: OSPF: Send DBD to 10.1.200.3 on FastEthernet0/0 seq 0x2648 opt 0x52 flag 0x0 len 32
Jul 29 19:02:28: OSPF: Rcv DBD from 10.1.1.1 on FastEthernet0/0 seq 0x1FF8 opt 0x52 flag 0x0 len 32  mtu 1500 state EXCHANGE
Jul 29 19:02:28: OSPF: Send DBD to 10.1.1.1 on
r2(config-router)#FastEthernet0/0 seq 0x1FF9 opt 0x52 flag 0x1 len 32
Jul 29 19:02:28: OSPF: Rcv DBD from 10.1.200.3 on FastEthernet0/0 seq 0x2649 opt 0x52 flag 0x1 len 32  mtu 1500 state EXCHANGE
Jul 29 19:02:28: OSPF: Exchange Done with 10.1.200.3 on FastEthernet0/0
Jul 29 19:02:28: OSPF: Synchronized with 10.1.200.3 on FastEthernet0/0, state FULL
Jul 29 19:02:28: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.200.3 on FastEthernet0/0 from LOADING to FULL, Loading Done
Jul 29 19:02:28: OSPF: Send DBD to 10.1.200.3 on FastEthernet0/0 seq 0x2649 opt 0x52 flag 0x0 len 32
Jul 29 19:02:28: OSPF: Rcv DBD from 10.1.1.1 on FastEthernet0/0 seq 0x1FF9 opt 0x52 flag 0x0 len 32  mtu 1500 state EXCHANGE
Jul 29 19:02:28: OSPF: Exchange Done with 10.1.1.1 on FastEthernet0/0
Jul 29 19:02:28: OSPF: Synchronized with 10.1.1.1 on FastEthernet0/0, state FULL
Jul 29 19:02:28: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
r2(config-router)#
Jul 29 19:02:33: OSPF: Build router LSA for area 0, router ID 10.1.2.1, seq 0x80000004, process 1
r2(config-router)#

r1#sh ip proto
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 10.1.1.1
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.1.100.0 0.0.0.255 area 0
    10.1.200.0 0.0.0.255 area 0
 Reference bandwidth unit is 100 mbps
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: (default is 110)

r1#sh ip ospf
 Routing Process "ospf 1" with ID 10.1.1.1
 Start time: 00:38:18.916, Time elapsed: 00:10:40.500
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 Supports Link-local Signaling (LLS)
 Supports area transit capability
 Router is not originating router-LSAs with maximum metric
 Initial SPF schedule delay 5000 msecs
 Minimum hold time between two consecutive SPFs 10000 msecs
 Maximum wait time between two consecutive SPFs 10000 msecs
 Incremental-SPF disabled
 Minimum LSA interval 5 secs
 Minimum LSA arrival 1000 msecs
 LSA group pacing timer 240 secs
 Interface flood pacing timer 33 msecs
 Retransmission pacing timer 66 msecs
 Number of external LSA 0. Checksum Sum 0x000000
 Number of opaque AS LSA 0. Checksum Sum 0x000000
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Number of areas transit capable is 0
 External flood list length 0
 IETF NSF helper support enabled
 Cisco NSF helper support enabled
    Area BACKBONE(0)
    Number of interfaces in this area is 2
    Area has no authentication
    SPF algorithm last executed 00:04:46.624 ago
    SPF algorithm executed 7 times
    Area ranges are
    Number of LSA 4. Checksum Sum 0x011F57
    Number of opaque link LSA 0. Checksum Sum 0x000000
    Number of DCbitless LSA 0
    Number of indication LSA 0
    Number of DoNotAge LSA 0
    Flood list length 0

r2#sh ip ospf neigh

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.1.1.1          1   FULL/DR         00:00:31    10.1.200.1      FastEthernet0/0
10.1.200.3        1   FULL/BDR        00:00:32    10.1.200.3      FastEthernet0/0
10.1.1.1          0   FULL/  -        00:00:34    10.1.100.1      Serial0/0
r2#

r3#sh ip ospf int f0/0
FastEthernet0/0 is up, line protocol is up
  Internet Address 10.1.200.3/24, Area 0
  Process ID 1, Router ID 10.1.200.3, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State BDR, Priority 1
  Designated Router (ID) 10.1.1.1, Interface address 10.1.200.1
  Backup Designated router (ID) 10.1.200.3, Interface address 10.1.200.3
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:08
  Supports Link-local Signaling (LLS)
  Cisco NSF helper support enabled
  IETF NSF helper support enabled
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 2, Adjacent neighbor count is 2
    Adjacent with neighbor 10.1.1.1  (Designated Router)
    Adjacent with neighbor 10.1.2.1
  Suppress hello for 0 neighbor(s)
r3#sh ip ospf int brie
Interface    PID   Area            IP Address/Mask    Cost  State Nbrs F/C
Fa0/0        1     0               10.1.200.3/24      1     BDR   2/2

r3#sh ip ospf data

            OSPF Router with ID (10.1.200.3) (Process ID 1)

        Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
10.1.1.1        10.1.1.1        557         0x80000004 0x00011F 3
10.1.2.1        10.1.2.1        536         0x80000004 0x00021B 3
10.1.200.3      10.1.200.3      634         0x80000002 0x00E8EF 1

        Net Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
10.1.200.1      10.1.1.1        540         0x80000002 0x00332E
r3#

No comments:

Post a Comment