Oracle® Switch ES2-72 and Oracle Switch ES2-64 Configuration Guide

Exit Print View

Updated: April 2015
 
 

Configure OSPF Dynamic Routing

This task describes how to configure dynamic routing using the redistribution feature of the OSPF protocol in SEFOS. This task verifies that the reachability between two hosts is established after learning the in-between routes dynamically through OSPF.

See Routing Feature Topology for the topology of this task.

  1. Verify that SEFOS-1 and SEFOS-2 still have the configuration information that you saved.

    See Configure Static Unicast Route Entries.

    The basic VLAN configuration for dynamic routing is similar to the basic VLAN configuration for static routing. If the configuration information was not saved on SEFOS-1 and SEFOS-2, follow Step 1 through Step 6 in Configure Static Unicast Route Entries.

    If SEFOS-1 or SEFOS-2 is a third-party switch, configure the basic VLAN and the dynamic routing as recommended by the switch's manufacturer.

  2. Enable OSPF on SEFOS-1.
    SEFOS-1# configure terminal
    SEFOS-1(config)# router ospf
    SEFOS-1(config-router)# asBR router
    SEFOS-1(config-router)# router-id 10.0.0.201
    SEFOS-1(config-router)# network 20.0.0.201 area 0.0.0.0
    SEFOS-1(config-router)# network 10.0.0.201 area 0.0.0.0
    SEFOS-1(config-router)# redistribute all
    SEFOS-1(config-router)# end
    
  3. Enable OSPF on SEFOS-2.
    SEFOS-2# configure terminal
    SEFOS-2(config)# router ospf
    SEFOS-2(config-router)# asBR router
    SEFOS-2(config-router)# router-id 40.0.0.200
    SEFOS-2(config-router)# network 20.0.0.200 area 0.0.0.0
    SEFOS-2(config-router)# network 40.0.0.200 area 0.0.0.0
    SEFOS-2(config-router)# redistribute all
    SEFOS-2(config-router)# end
    

    If SEFOS-2 is a third-party switch, verify that the OSPF protocol is enabled on SEFOS-2 and that related configurations are applied accordingly.

  4. Check the neighbor router status of SEFOS-1.
    SEFOS-1# show ip ospf neighbor
     
    Vrf default
     
    Neighbor-IDPriStateDeadTimeAddress    Interface 
    ------------------------------------------- 
    40.0.0.2001FULL/DR  3920.0.0.200 vlan20
    SEFOS-1# show ip route
    Codes: C - connected, S - static, R - rip, B - bgp, O - ospf
    C 10.0.0.0/24 is directly connected, vlan10
    C 20.0.0.0/24 is directly connected, vlan20
    O 40.0.0.0/24 [2] via 20.0.0.200
    
  5. Verify the neighbor router status of SEFOS-2.
    SEFOS-2# show ip ospf neighbor
     
    Vrf default 
    Neighbor-ID Pri State DeadTime Address Interface 
    ----------- --- ----- -------- ------- --------- 
    SEFOS-2# show ip route
    10.0.0.201 1 FULL/BACKUP 32 20.0.0.201 vlan20
    Codes: C - connected, S - static, R - rip, B - bgp, O - ospf 
     
    O 10.0.0.0/24 [2] via 20.0.0.201 
    C 20.0.0.0/24 is directly connected, vlan20 
    C 40.0.0.0/24 is directly connected, vlan40
    

    If SEFOS-2 is a third-party switch, use the appropriate command to verify the neighbor router status.

  6. Verify connectivity between SEFOS-1 and SEFOS-2 with the ping command.

Related Information