32.12. OSPF configuration examples

32.12.1. The OSPF configuration for PP network (single area).

  1. Configure and activate OSPF resource.

    [14:45:02] ABILIS_CPX:d p ospf
    
    RES:Ospf ----------------------------------------------------------------------
    Run    DESCR:Open_Shortest_Path_First_Routing_Protocol
           LOG:DS       ACT:YES       max-lsa:1000     max-routes:500      
           RFC1583COMP:YES            OSPF-RID:AUTO (192.168.029.254)   ASBR:NO
  2. Configure OSPF area for both routers.

    [14:47:05] ABILIS_CPX:d ospf area
    
    --------------------------------------------------------
    AREA:               AUTTYPE:   STUB:    DEFCOST:
    --------------------------------------------------------
    001.000.000.000     NO         NO          65535
    --------------------------------------------------------

    Area configuration on both routers must be equal. If we have different values for AUTYPE or STUB parameters then the connection between this routers will be not established.

  3. Configure the IP port for use with OSPF protocol.

    • Screen layout for RT1

      [14:29:13] ABILIS_RT1:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.10
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.010   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:PP     OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Screen layout for RT2

      [14:29:13] ABILIS_RT2:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.11
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.011   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:PP     OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25

    Allow using this IP port with OSPF protocol. For this set RP parameter equal OSPF. Configure ID of OSPF area (OAREA field) and type of network (ONETTYPE field).

  4. Configure the other end of Point-to-Point connection.

    You must set for each neighbor the next parameters:

    • The IP address of the neighbor (field NEIGH)

    • Number of IP interface for this neighbor (field IP)

    Other fields are not used for this type of network and their any values will be ignored.

    • Screen layout for RT1

      [00:41:45] ABILIS_RT1:d ospf neigh
      
      ----------------------------------------------------------------
      NEIGH:           IP:    PRIO:   POLL:    COST:
      ----------------------------------------------------------------
      192.168.006.011     1       0      30        0
      ---------------------------------------------------------------- 
    • Screen layout for RT2

      [00:41:45] ABILIS_RT2:d ospf neigh
      
      ----------------------------------------------------------------
      NEIGH:           IP:    PRIO:   POLL:    COST:
      ----------------------------------------------------------------
      192.168.006.010     1       0      30        0
      ---------------------------------------------------------------- 
  5. Save configuration and restart OSPF resource.

32.12.2. The OSPF configuration for NBMA network (single area)

In this example RT1 and RT2 have priority more than 0, it means They can be eligible to Designated Router (DR) or Backup DR (BDR) for this network. RT3 has priority equal 0 he cannot be DR (BDR).

  1. Configure and activate OSPF resource.

    [14:45:02] ABILIS_CPX:d p ospf
    
    RES:Ospf ----------------------------------------------------------------------
    Run    DESCR:Open_Shortest_Path_First_Routing_Protocol
           LOG:DS       ACT:YES       max-lsa:1000     max-routes:500      
           RFC1583COMP:YES            OSPF-RID:AUTO (192.168.029.254)   ASBR:NO
  2. Configure OSPF area for all routers.

    [14:47:05] ABILIS_CPX:d ospf area
    
    --------------------------------------------------------
    AREA:               AUTTYPE:   STUB:    DEFCOST:
    --------------------------------------------------------
    001.000.000.000     NO         NO          65535
    --------------------------------------------------------

    Area configuration on both routers must be equal. If we have different values for AUTYPE or STUB parameters then the connection between this routers will be not established.

  3. Configure the IP port for use with OSPF protocol.

    • Screen layout for RT1

      [14:36:01] ABILIS_RT1:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.10
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.010   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:NBMA   OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Screen layout for RT2

      [14:36:01] ABILIS_RT2:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.11
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.011   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:NBMA   OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Screen layout for RT3

      [14:36:01] ABILIS_RT3:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.12
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.012   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:NBMA   OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25

    Allow using this IP port with OSPF protocol. For this set RP parameter equal OSPF.

    Configure ID of OSPF area (OAREA field) and type of network (ONETTYPE field).

  4. Configure neighbors for each router.

    You must set for each neighbor the next parameters:

    • The IP address of the neighbor (field NEIGH)

    • Number of IP interface for this neighbor (field IP)

    • Neighbor's priority (field PRIO)

    • The time interval between Hello packets that are sent to a neighbor that has DOWN state (field POLL).

    Field COST is not used for this type of network.

    • Screen layout for RT1

      [04:20:16] ABILIS_RT1:d ospf neigh
      
      ----------------------------------------------------------------
      NEIGH:           IP:    PRIO:   POLL:    COST:
      ----------------------------------------------------------------
      192.168.006.011     1      10      40        0
      192.168.006.012     1       0      40        0
      ----------------------------------------------------------------
    • Screen layout for RT2

      [04:20:16] ABILIS_RT2:d ospf neigh
      
      ----------------------------------------------------------------
      NEIGH:           IP:    PRIO:   POLL:    COST:
      ----------------------------------------------------------------
      192.168.006.010     1      10      40        0
      192.168.006.012     1       0      40        0
      ----------------------------------------------------------------
    • Screen layout for RT3

      [04:20:16] ABILIS_RT3:d ospf neigh
      
      ----------------------------------------------------------------
      NEIGH:           IP:    PRIO:   POLL:    COST:
      ----------------------------------------------------------------
           *** NO OSPF NEIGHBORs DEFINED ***
  5. Save configuration and restart OSPF resource.

32.12.3. The OSPF configuration for PMP network (single area)

Physical topology of network.

Logical topology of network.

  1. Configure and activate OSPF resource.

    [14:45:02] ABILIS_CPX:d p ospf
    
    RES:Ospf ----------------------------------------------------------------------
    Run    DESCR:Open_Shortest_Path_First_Routing_Protocol
           LOG:DS       ACT:YES       max-lsa:1000     max-routes:500      
           RFC1583COMP:YES            OSPF-RID:AUTO (192.168.029.254)   ASBR:NO
  2. Configure OSPF area for all routers.

    [14:47:05] ABILIS_CPX:d ospf area
    
    --------------------------------------------------------
    AREA:               AUTTYPE:   STUB:    DEFCOST:
    --------------------------------------------------------
    001.000.000.000     NO         NO          65535
    --------------------------------------------------------

    Area configuration on both routers must be equal. If we have different values for AUTYPE or STUB parameters then the connection between this routers will be not established.

  3. Configure the IP port for use with OSPF protocol.

    • Screen layout for RT1

      [14:36:01] ABILIS_RT1:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.10
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.010   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:PMP    OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Screen layout for RT2

      [14:36:01] ABILIS_RT2:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.11
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.011   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:PMP    OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Screen layout for RT3

      [14:36:01] ABILIS_RT3:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.12
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.012   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:PMP    OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25

    Allow using this IP port with OSPF protocol. For this set RP parameter equal OSPF.

    Configure ID of OSPF area (OAREA field) and type of network (ONETTYPE field).

  4. Configure neighbors for each router.

    You must set for each neighbor the next parameters:

    • The IP address of the neighbor (field NEIGH)

    • Number of IP interface for this neighbor (field IP)

    • Note. If the cost of this link (COST field) is equal to 0 (default value) will be used the cost of the interface (field OCOST). But you can set a special cost for any neighbor. In this case to use neighbor's COST field (to see neighbor's configuration for RT1, RT3).

    Other fields are not used for this type of network and their any values will be ignored.

    • Screen layout for RT1

      [00:41:45] ABILIS_RT1:d ospf neigh
      
      ----------------------------------------------------------------
      NEIGH:           IP:    PRIO:   POLL:    COST:
      ----------------------------------------------------------------
      192.168.006.011     1       0      30        10
      192.168.006.012     1       0      30        0
      ---------------------------------------------------------------- 
    • Screen layout for RT2

      [00:41:45] ABILIS_RT2:d ospf neigh
      
      ----------------------------------------------------------------
      NEIGH:           IP:    PRIO:   POLL:    COST:
      ----------------------------------------------------------------
      192.168.006.010     1       0      30        0
      192.168.006.012     1       0      30        0
      ---------------------------------------------------------------- 
    • Screen layout for RT3

      [00:41:45] ABILIS_RT3:d ospf neigh
      
      ----------------------------------------------------------------
      NEIGH:           IP:    PRIO:   POLL:    COST:
      ----------------------------------------------------------------
      192.168.006.010     1       0      30        11
      192.168.006.011     1       0      30        21
      ---------------------------------------------------------------- 
  5. Save configuration and restart OSPF resource.

[Note]Note

For Point-to-Multipoint you can use different logical topologies, combine links between as you need. In this case, you can reduce OSPF network traffic. Some variants you can see below.

32.12.4. The OSPF configuration for a common case (single area)

In this example, you can see how to configure a router with many interfaces (will show the configuration for RT1).

  1. Configure and activate OSPF resource.

    [14:45:02] ABILIS_CPX:d p ospf
    
    RES:Ospf ----------------------------------------------------------------------
    Run    DESCR:Open_Shortest_Path_First_Routing_Protocol
           LOG:DS       ACT:YES       max-lsa:1000     max-routes:500      
           RFC1583COMP:YES            OSPF-RID:AUTO (192.168.029.254)   ASBR:NO
  2. Configure OSPF area for all routers.

    [14:47:05] ABILIS_CPX:d ospf area
    
    --------------------------------------------------------
    AREA:               AUTTYPE:   STUB:    DEFCOST:
    --------------------------------------------------------
    001.000.000.000     NO         NO          65535
    --------------------------------------------------------

    Area configuration on both routers must be equal. If we have different values for AUTYPE or STUB parameters then the connection between this routers will be not established.

  3. Configure the IP port for use with OSPF protocol.

    • Screen layout for RT1. Interface IP-1

      [14:36:01] ABILIS_RT1:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.1
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.001   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:NBMA   OPRIO:10     OCOST:3      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Interface IP-2

      [14:36:01] ABILIS_RT1:d p ip-2
      
      RES:Ip-2 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:172.16.1.1
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-2
             IPADD:172.016.001.001   MASK:255.255.000.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:PMP    OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-2 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-4C-20-07-17) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Interface IP-3

      [14:36:01] ABILIS_RT1:d p ip-3
      
      RES:Ip-3 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:10.0.0.1 
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-3
             IPADD:010.000.000.001    MASK:255.000.000.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:PP     OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-3 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-4C-20-04-29) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
  4. Neighbor's configuration for RT1.

    [16:01:31] ABILIS_RT1:d ospf neigh
    
    ----------------------------------------------------------------
    NEIGH:           IP:    PRIO:   POLL:    COST:
    ----------------------------------------------------------------
    010.000.000.002     3       0      40        0
    172.016.001.002     2       0      40       13
    172.016.001.003     2       0      40        0
    192.168.006.011     1      10      40        0
    192.168.006.012     1       0      40        0
    ----------------------------------------------------------------
  5. Save configuration and restart OSPF resource.

32.12.5. The OSPF configuration for multiple areas. ABR.

In this example, you can see how to configure a router that is connected to many areas. This router is called Area Border Router (ABR).

  1. Configure and activate OSPF resource.

    [14:45:02] ABILIS_CPX:d p ospf
    
    RES:Ospf ----------------------------------------------------------------------
    Run    DESCR:Open_Shortest_Path_First_Routing_Protocol
           LOG:DS       ACT:YES       max-lsa:1000     max-routes:500      
           RFC1583COMP:YES            OSPF-RID:AUTO (192.168.029.254)   ASBR:NO
  2. Configure OSPF area for this routers.

    [04:42:19] ABILIS_CPX:d ospf area
    
    --------------------------------------------------------
    AREA:               AUTTYPE:   STUB:    DEFCOST:
    --------------------------------------------------------
    000.000.000.000     NO         NO          65535
    001.000.000.000     NO         NO          65535
    --------------------------------------------------------

    Area configuration on both routers must be equal. If we have different values for AUTYPE or STUB parameters then connection between this routers will be not established.

  3. Configure the IP port for use with OSPF protocol.

    • Screen layout for RT1. Interface IP-1

      [14:36:01] ABILIS_RT1:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.10
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:192.168.006.010   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:NBMA   OPRIO:10     OCOST:3      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Screen layout for RT1. Interface IP-2

      [14:36:01] ABILIS_RT1:d p ip-2
      
      RES:Ip-2 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:172.16.1.1
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-2
             IPADD:172.016.001.001   MASK:255.255.000.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:000.000.000.000     ONETTYPE:PP     OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-2 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-4C-20-07-17) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
  4. Configure neighbors for this router.

    [04:43:27] ABILIS_CPX:d ospf neigh
    
    ----------------------------------------------------------------
    NEIGH:           IP:    PRIO:   POLL:    COST:
    ----------------------------------------------------------------
    010.000.000.002     2       0      40        0
    192.168.006.011     1       0      40        0
    ----------------------------------------------------------------
  5. Save configuration and restart OSPF resource.

32.12.6. Restore Backbone connectivity and Virtual Links.

In this example, you can see how to configure a virtual link between routers RT1 and RT2. The first will show a configuration process for RT1 the second a configuration process for RT2.

32.12.6.1. Router 1 (RT1). Steps and screen layouts for a configuration procedure.

  1. Configure and activate OSPF resource.

    [14:45:02] ABILIS_CPX:d p ospf
    
    RES:Ospf ----------------------------------------------------------------------
    Run    DESCR:Open_Shortest_Path_First_Routing_Protocol
           LOG:DS       ACT:YES       max-lsa:1000     max-routes:500      
           RFC1583COMP:YES            OSPF-RID:AUTO (192.168.029.254)   ASBR:NO
  2. Set router ID.

    [15:38:01] ABILIS_CPX:d p iprtr
    
    RES:Iprtr ---------------------------------------------------------------------
    Run    DESCR:IP_Router_general_properties
           - General --------------------------------------------------------------
           R-ID:001.000.000.000          NAT:NO  
           maxroute:300       DFTTTL:255          ps:2048       
           DEF-LOCAL-AD:0     DEF-STATIC-AD:1     DEF-OSPF-AD:110   DEF-RIP-AD:120
           pvc:0              bsvc:2              LINKS:16          virtual:0
           - IP Access List -------------------------------------------------------
           ACL:YES                ACLBYPASS:#              
           COS:ENABLED            COSDFT:NORMAL     
           COSBALANCE:NO          NORMRATE:50            LOWRATE:50   
           - Ppp-Dns --------------------------------------------------------------
           PPP-DNS-PRI:000.000.000.000  PPP-DNS-SEC:000.000.000.000
    
  3. Configure OSPF area for this routers.

    [04:42:19] ABILIS_CPX:d ospf area
    
    --------------------------------------------------------
    AREA:               AUTTYPE:   STUB:    DEFCOST:
    --------------------------------------------------------
    001.000.000.000     NO         NO          65535
    002.000.000.000     NO         NO          65535
    --------------------------------------------------------

    Area configuration on both routers must be equal. If we have different values for AUTYPE or STUB parameters then the connection between this routers will be not established.

  4. Configure the IP port for use with OSPF protocol.

    • Screen layout for RT1. Interface IP-1

      [14:36:01] ABILIS_RT1:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:172.16.1.1
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:172.016.001.001   MASK:255.255.000.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:002.000.000.000     ONETTYPE:NBMA   OPRIO:0      OCOST:3      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Screen layout for RT1. Interface IP-2

      [14:36:01] ABILIS_RT1:d p ip-2
      
      RES:Ip-2 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.10
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-2
             IPADD:192.168.006.010   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:NBMA   OPRIO:0      OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-2 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-4C-20-07-17) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
  5. Configure neighbors for this router.

    [11:20:08] ABILIS_CPX:d ospf neigh
    
    ----------------------------------------------------------------
    NEIGH:           IP:    PRIO:   POLL:    COST:
    ----------------------------------------------------------------
    172.016.001.002     1      10      40        0
    192.168.006.011     2      10      40        0
    ----------------------------------------------------------------
  6. Configure virtual links for this router.

    [11:37:54] ABILIS_CPX:d ospf vl
    
    -------------------------------------------------------------------------------
    REM-RID:         AREA:           HELLO: RXMT: TRDEL: DEAD:  PWD:         KEYID:
                                                                MD5KEY:
    -------------------------------------------------------------------------------
    002.000.000.000  001.000.000.000     10     5      2    60                    0
    
    -------------------------------------------------------------------------------
  7. Save configuration and restart OSPF resource.

32.12.6.2. Router 2 (RT2). Steps and screen layouts for a configuration procedure.

  1. Configure and activate OSPF resource.

    [14:45:02] ABILIS_RT2:d p ospf
    
    RES:Ospf ----------------------------------------------------------------------
    Run    DESCR:Open_Shortest_Path_First_Routing_Protocol
           LOG:DS       ACT:YES       max-lsa:1000     max-routes:500      
           RFC1583COMP:YES            OSPF-RID:AUTO (192.168.029.254)   ASBR:NO
  2. Set router ID.

    [15:38:01] ABILIS_RT2:d p iprtr
    
    RES:Iprtr ---------------------------------------------------------------------
    Run    DESCR:IP_Router_general_properties
           - General --------------------------------------------------------------
           R-ID:002.000.000.000          NAT:NO  
           maxroute:300       DFTTTL:255          ps:2048       
           DEF-LOCAL-AD:0     DEF-STATIC-AD:1     DEF-OSPF-AD:110   DEF-RIP-AD:120
           pvc:0              bsvc:2              LINKS:16          virtual:0
           - IP Access List -------------------------------------------------------
           ACL:YES                ACLBYPASS:#              
           COS:ENABLED            COSDFT:NORMAL     
           COSBALANCE:NO          NORMRATE:50            LOWRATE:50   
           - Ppp-Dns --------------------------------------------------------------
           PPP-DNS-PRI:000.000.000.000  PPP-DNS-SEC:000.000.000.000
  3. Configure OSPF area for this routers.

    [11:29:39] ABILIS_RT2:d ospf area
    
    --------------------------------------------------------
    AREA:               AUTTYPE:   STUB:    DEFCOST:
    --------------------------------------------------------
    000.000.000.000     NO         NO          65535
    001.000.000.000     NO         NO          65535
    --------------------------------------------------------

    Area configuration on both routers must be equal. If we have different values for AUTYPE or STUB parameters then the connection between this routers will be not established.

  4. Configure the IP port for use with OSPF protocol.

    • Screen layout for RT1. Interface IP-1

      [14:36:01] ABILIS_RT2:d p ip-1
      
      RES:Ip-1 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:10.0.0.1
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-1
             IPADD:010.000.000.001    MASK:255.000.000.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:000.000.000.000     ONETTYPE:PP     OPRIO:0      OCOST:3      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-1 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-C5-54-A2-78) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
    • Screen layout for RT1. Interface IP-2

      [14:36:01] ABILIS_RT2:d p ip-2
      
      RES:Ip-2 - IP over LAN (LAN) --------------------------------------------------
      Run    DESCR:192.168.6.11
             OPSTATE:UP              LOG:DST           STATE-DETECT:NORMAL  TYPE:LAN
             LANRES:Eth-2
             IPADD:192.168.006.011   MASK:255.255.255.000   
             REDIS:EXT     HIDE:NO         RP:OSPF            IPSEC:NO       VRRP:NO
             NAT:INSIDE    UPNP:NO         DIFFSERV:NO        DDNS:NO
             OUTBUF:100    OUTQUEUE:FAIR   MTU:1500           
             OUTSPL:NO     
             INBUF:0                       mru:1500           SRCV:NO
             - OSPF section ---------------------------------------------------------
             OAREA:001.000.000.000     ONETTYPE:NBMA   OPRIO:10     OCOST:1      
             ORXMT:5      OTRDEL:1     OHELLO:10       ODEAD:60     omax-nei:5  
             - TRFA section ---------------------------------------------------------
             TRFA:YES     TRFA-MODE:TOTALS       
             - Lan ------------------------------------------------------------------
             ARP-RENEWAL-TIME:120    VLAN-ID:UNTAG
      RES:Eth-2 ---------------------------------------------------------------------
      Run    DESCR:lan
             LOG:DS            MODE:AUTO         DUPLEX:HALF       max-vlans:0
             MAC-ADDR:FACTORY (00-E0-4C-20-07-17) 
             ip-rxbuf:25       arp-rxbuf:5       pppoed-rxbuf:5    pppoes-rxbuf:25
  5. Configure neighbors for this router.

    [11:20:08] ABILIS_CPX:d ospf neigh
    
    ----------------------------------------------------------------
    NEIGH:           IP:    PRIO:   POLL:    COST:
    ----------------------------------------------------------------
    010.000.000.002     1      10      40        0
    192.168.006.010     2       0      40        0
    ----------------------------------------------------------------
  6. Configure virtual links for this router.

    [11:37:54] ABILIS_CPX:d ospf vl
    
    -------------------------------------------------------------------------------
    REM-RID:         AREA:           HELLO: RXMT: TRDEL: DEAD:  PWD:         KEYID:
                                                                MD5KEY:
    -------------------------------------------------------------------------------
    001.000.000.000  001.000.000.000     10     5      2    60                    0
    
    -------------------------------------------------------------------------------
  7. Save configuration and restart OSPF resource.

32.12.7. Summarize inter-area routes and area address ranges

Route summarization is the consolidation of advertised addresses. This feature causes a single summary route to be advertised to other areas by an ABR. In OSPF, an ABR will advertise networks in one area into another area. If the network numbers in an area are assigned in a way such that they are contiguous, you can configure the ABR to advertise a summary route that covers all the individual networks within the area that fall into the specified range.

There we will not show configuration procedure for all components are needed for OSPF (IP ports, OSPF port, neighbors, etc.) You can see it in any previous example.

Call your attention to OSPF areas configuration and address ranges configuration.

OSPF areas' configuration for this router:

[13:48:52] ABILIS_CPX:d ospf area

--------------------------------------------------------
AREA:               AUTTYPE:   STUB:    DEFCOST:
--------------------------------------------------------
001.000.000.000     NO         NO          65535
002.000.000.000     NO         NO          65535
--------------------------------------------------------

OSPF address range configuration for this router.

[13:48:56] ABILIS_CPX:d ospf range

---------------------------------------------------------
AREA:               RANGE:                ADV:
---------------------------------------------------------
001.000.000.000     192.168.000.000/16    YES
---------------------------------------------------------

32.12.8. Stub area configuration

Stub areas are areas into which information on external routes is not sent. Instead, there is a default external route generated by the area border router, into the stub area for the destination outside the autonomous system. The cost of a default route depends on the value of DEFCOST filed.

There we will not show configuration procedure for all components are needed for OSPF (IP ports, OSPF resource, neighbors, etc.) You can see it in any previous example.

Call your attention to OSPF areas configuration.

OSPF areas' configuration for this router:

[12:24:44] ABILIS_CPX:d ospf area

--------------------------------------------------------
AREA:               AUTTYPE:   STUB:    DEFCOST:
--------------------------------------------------------
001.000.000.000     NO         YES            15
002.000.000.000     NO         NO          65535
--------------------------------------------------------

32.12.9. Hosts

Hosts there are computers directly connected to a router.

There we will not show configuration procedure for all components are needed for OSPF (IP ports, OSPF resource, neighbors, etc.) You can see it in any previous example.

Call your attention to OSPF host configuration.

OSPF areas' configuration for this router:

[15:22:21] ABILIS_CPX:d ospf area

--------------------------------------------------------
AREA:               AUTTYPE:   STUB:    DEFCOST:
--------------------------------------------------------
192.168.006.000     NO         NO          65535
--------------------------------------------------------

OSPF hosts' configuration for this router.

[15:19:35] ABILIS_CPX:d ospf host

---------------------------------------
HOST:            AREA:            COST:
---------------------------------------
192.168.006.011  192.168.006.000     10
---------------------------------------
192.168.006.012  192.168.006.000      7
---------------------------------------

32.12.10. Routes redistribution into OSPF. ASBR.

The normal situation is when we have used more as one routing protocols in our networks. It can be static routing, RIP, OSPF or any other IGP protocol.

For correct work such networks we must have the possibility to redistribute routes from one routing protocol to any other. It means that routes were detected through RIP or static protocols must be known in OSPF Autonomous System and routes were detected through OSPF protocol must be known on all routes that use RIP protocol.

CPX allow to redistribute OSPF routes into common routes' table and redistribute local, static, RIP routes from common routes' table to OSPF AS.

  1. Configure and activate OSPF resource.

    Select types of route that we want to redistribute into OSPF. If need you can set a separate cost (metric) for each type of routes. In another case will be used default metric.

    [16:14:50] ABILIS_CPX:d p ospf
    
    RES:Ospf ----------------------------------------------------------------------
    Run    DESCR:Open_Shortest_Path_First_Routing_Protocol
           LOG:DS       ACT:YES       max-lsa:1000     max-routes:500      
           RFC1583COMP:YES            OSPF-RID:AUTO (192.168.029.254)   ASBR:YES
           - ASBR section ---------------------------------------------------------
           LOCAL:YES           STATIC:YES           RIP:YES           
           LOCAL-METRIC:*      STATIC-METRIC:3      RIP-METRIC:*      
           DEF-METRIC:1      
  2. If need, Define address ranges for routes that will be redistributed into OSPF AS.

    You can define a separate metric for each address range. In another case will be used the metric that was defined for this type of route in OSPF port configuration (fields LOCAL-METRIC,STATIC-METRIC,RIP-METRIC).

    [16:22:32] ABILIS_CPX:d ospf external
    
    -----------------------------------------------------
    EXTERNAL:            PROT:   ACTION:   METRIC:  TYPE:
    -----------------------------------------------------
    192.168.006.011/32   STATIC  IGNORE        255      1
    192.168.006.000/24   ANY     ACCEPT          2      1
    010.000.000.000/8    RIP     ACCEPT        255      1
    -----------------------------------------------------