home       basis       advanced       routing       switching       testen       overig      

basic dynamic routing with OSPF

basic-ospf1

 

  1. maak de hogere topologie in packettracer
     
  2. geef ip adressen
     
    • PC1: 192.168.1.1/24
    • PC3: 192.168.3.1/24
    • R1 - gi0/0: 192.168.1.254/24
    • R1 - se0/0/0: 10.255.255.5/30 - clock 64000
    • R3 - gi0/0: 192.168.3.254
    • R3 - se0/0/0: 10.255.255.6/30
       
  3. kijk naar de net-identifiers en zet ze om naar OSPF wildcard formaat
     

    • trek de netmask decimaal af van 255.255.255.255 (of draai alle bits om)
    • 10.255.255.4/30 >> 10.255.255.4 0.0.0.3
      ( 255.255.255.255 - 255.255.255.252)
    • 192.168.3.0/24 >> 192.168.3.0 0.0.0.255
    • 192.168.1.0/24 >> 192.168.1.0 0.0.0.255
    makkelijk: netmask naar wildcard
    -------------------------------
       255.255.255.255   grondtal
    -  255.255.255.  0   netmask
    ------------------
         0.  0.  0.255   wildcard
      
      
    binair: netmask naar wildcard
    -------------------------------
    255.255.255.0 =
      
    11111111.11111111.11111111.00000000
      
    wildcard = (bits omdraaien 0 wordt 1 en 1 wordt 0)
      
    00000000.00000000.00000000.11111111

     

  4. configureer ospf op beide routers
    hostname R1
    router ospf 1
    network 10.255.255.4 0.0.0.3 area 0
    network 192.168.1.0 0.0.0.255 area 0
    hostname R3
    router ospf 1
    network 10.255.255.4 0.0.0.3 area 0
    network 192.168.3.0 0.0.0.255 area 0

     

  5. test met een ping van PC1 naar PC3
    PC>ping 192.168.3.1
     
    Pinging 192.168.3.1 with 32 bytes of data:
     
    Request timed out.
    Reply from 192.168.3.1: bytes=32 time=1ms TTL=126
    Reply from 192.168.3.1: bytes=32 time=1ms TTL=126
    Reply from 192.168.3.1: bytes=32 time=3ms TTL=126

     

  6. show commands
     
    R1#sh ip route
    Gateway of last resort is not set
     
     10.0.0.0/30 is subnetted, 1 subnets
    C       10.255.255.4 is directly connected, Serial0/0/1
    C    192.168.1.0/24 is directly connected, FastEthernet0/0
    O    192.168.3.0/24 [110/65] via 10.255.255.6, 00:20:06, Serial0/0/1

     
    R1#show ip ospf database

            OSPF Router with ID (192.168.1.254) (Process ID 1)
     
                Router Link States (Area 0)
     
    Link ID         ADV Router      Age         Seq#       Checksum Link count
    192.168.1.254   192.168.1.254   1270        0x80000003 0x00e60a 3
    192.168.3.254   192.168.3.254   1227        0x80000003 0x0001ea 3

     
    R1#show ip ospf neighbor

    Neighbor ID     Pri   State           Dead Time   Address         Interface
    192.168.3.254     0   FULL/  -        00:00:35    10.255.255.6    Serial0/0/1
  7. download de oplossing:
      R1 config:

    basic-ospf-r1

    R3 config:

    r3

    packettracer -- basic-ospf-1

  8. OEFENING:
     
    voeg een derde router, R3 (ISR4331), toe -- hang deze op de tweede seriele poort van R1;
    configureer R3 en de interface ser0/0/1 op R2. Zorg dat alle PC's mekaar kunnen pingen.
    ospf-derde-router

    check daarna OSPF-neighbors en OSPF-database op alle routers.
     
    een mogelijke oplossing: ospf1
     

  9. neighbors & database
     
    =============================================================================
    R1>sh ip ospf neighbor 
     
    Neighbor ID     Pri   State           Dead Time   Address         Interface
    192.168.3.254     0   FULL/  -        00:00:39    10.255.255.6    Serial0/0/0
    192.168.2.254     0   FULL/  -        00:00:39    10.255.255.2    Serial0/0/1
    ------------------------------------------------------------------------------
    R1>sh ip ospf database 
     
    OSPF Router with ID (192.168.1.254) (Process ID 1)
    Router Link States (Area 0)
     
    Link ID         ADV Router      Age         Seq#       Checksum Link count
    192.168.2.254   192.168.2.254   731         0x80000004 0x00f8fc 3
    192.168.3.254   192.168.3.254   731         0x80000004 0x00e00a 3
    192.168.1.254   192.168.1.254   731         0x80000006 0x004b87 5
    =============================================================================
    R2> show ip ospf neighbor 
     
    Neighbor ID     Pri   State           Dead Time   Address         Interface
    192.168.1.254     0   FULL/  -        00:00:38    10.255.255.1    Serial0/1/0
    ------------------------------------------------------------------------------
    R2#show ip ospf database 
                
    OSPF Router with ID (192.168.2.254) (Process ID 1)
    Router Link States (Area 0)
     
    Link ID         ADV Router      Age         Seq#       Checksum Link count
    192.168.2.254   192.168.2.254   829         0x80000004 0x00f8fc 3
    192.168.3.254   192.168.3.254   829         0x80000004 0x00e00a 3
    192.168.1.254   192.168.1.254   830         0x80000006 0x004b87 5
    ============================================================================
    R3> sh ip ospf neighbor 
     
    Neighbor ID     Pri   State           Dead Time   Address         Interface
    192.168.1.254     0   FULL/  -        00:00:39    10.255.255.5    Serial0/0/0
    ------------------------------------------------------------------------------
    R3>sh ip ospf database 
            OSPF Router with ID (192.168.3.254) (Process ID 1)
     
                Router Link States (Area 0)
     
    Link ID         ADV Router      Age         Seq#       Checksum Link count
    192.168.3.254   192.168.3.254   892         0x80000004 0x00e00a 3
    192.168.1.254   192.168.1.254   892         0x80000006 0x004b87 5
    192.168.2.254   192.168.2.254   892         0x80000004 0x00f8fc 3
    ============================================================================