Skip Navigation Links
Exit Print View
| Oracle Ethernet Switches ### L2 and L3 Deployment Best Practices

Search Scope:

- This Document
- Entire Library

## Configure Switch `TOR72p-2` for L3 Routing Using OSPF

1. Start the configuration with all ports and the default VLAN shutdown.

   Tip - It is a best practice to start the configuration with all the ports and default VLAN shutdown. Also, disable GVRP and GMRP because dynamic VLAN learning is not suggested.

       TOR72p-2 SEFOS# configure terminal
       TOR72p-2 SEFOS(config)# set gvrp disable
       TOR72p-2 SEFOS(config)# set gmrp disable
       TOR72p-2 SEFOS(config)# set port-channel enable
       TOR72p-2 SEFOS(config)# interface vlan 1
       TOR72p-2 SEFOS(config-if)# shutdown
       TOR72p-2 SEFOS(config-if)# no ip address
       TOR72p-2 SEFOS(config-if)# exit
       TOR72p-2 SEFOS(config)# interface range extreme-ethernet 0/1-72
       TOR72p-2 SEFOS(config-if-range)# shutdown
       TOR72p-2 SEFOS(config-if-range)# end

2. Create and enable port-channels between switches per the topology.

   See L2 and L3 Topology.

       TOR72p-2 SEFOS# configure terminal
       TOR72p-2 SEFOS(config)# interface port-channel 11
       TOR72p-2 SEFOS(config-if)# no shutdown
       TOR72p-2 SEFOS(config-if)# exit
       TOR72p-2 SEFOS(config)# interface port-channel 13
       TOR72p-2 SEFOS(config-if)# no shutdown
       TOR72p-2 SEFOS(config-if)# exit
       TOR72p-2 SEFOS(config)# interface port-channel 15
       TOR72p-2 SEFOS(config-if)# no shutdown
       TOR72p-2 SEFOS(config-if)# exit
       TOR72p-2 SEFOS(config)# end

3. Configure VLANs manually.

   You must add at least one port to the VLAN before you can assign the VLAN a name.

       TOR72p-2 SEFOS# configure terminal
       TOR72p-2 SEFOS(config)# vlan 2002
       TOR72p-2 SEFOS(config-vlan)# ports add port-channel 11 untagged port-channel 10 name 192_168_202_0_OSPF_P2P
       TOR72p-2 SEFOS(config-vlan)# vlan active
       TOR72p-2 SEFOS(config-vlan)# exit
       TOR72p-2 SEFOS(config)# vlan 2004
       TOR72p-2 SEFOS(config-vlan)# ports add port-channel 13 untagged port-channel 12 name 192_168_204_0_OSPF_P2P
       TOR72p-2 SEFOS(config-vlan)# vlan active
       TOR72p-2 SEFOS(config-vlan)# exit
       TOR72p-2 SEFOS(config)# vlan 2006
       TOR72p-2 SEFOS(config-vlan)# ports add port-channel 15 untagged port-channel 14 name 192_168_206_0_OSPF_P2P
       TOR72p-2 SEFOS(config-vlan)# vlan active
       TOR72p-2 SEFOS(config-vlan)# exit
       TOR72p-2 SEFOS(config)# vlan 40
       TOR72p-2 SEFOS(config-vlan)# ports add extreme-ethernet 0/66 untagged extreme-ethernet 0/66 name 192_168_40_0_HOST_P2P
       TOR72p-2 SEFOS(config-vlan)# vlan active
       TOR72p-2 SEFOS(config-vlan)# exit
       TOR72p-2 SEFOS(config)# end

   Note - You can add VLANs as tagged or untagged to a port or a port-channel in three different ways. See Adding VLANs.

4. Configure the port-channels as access links by setting the pvid and adding port-channels to VLANs.

   Also, disable spanning-tree on all uplinks.

       TOR72p-2 SEFOS# configure terminal
       TOR72p-2 SEFOS(config)# interface port-channel 11
       TOR72p-2 SEFOS(config-if)# switchport pvid 2002
       TOR72p-2 SEFOS(config-if)# spanning-tree disable
       TOR72p-2 SEFOS(config-if)# exit
       TOR72p-2 SEFOS(config)# interface port-channel 13
       TOR72p-2 SEFOS(config-if)# switchport pvid 2004
       TOR72p-2 SEFOS(config-if)# spanning-tree disable
       TOR72p-2 SEFOS(config-if)# exit
       TOR72p-2 SEFOS(config)# interface port-channel 15
       TOR72p-2 SEFOS(config-if)# switchport pvid 2006
       TOR72p-2 SEFOS(config-if)# spanning-tree disable
       TOR72p-2 SEFOS(config-if)# exit
       TOR72p-2 SEFOS(config)# end

5. Enable the ports and add them to the appropriate port-channels.

   Configure the host port as an access link in a different VLAN by setting the pvid.

       ToR72p-2 SEFOS# configure terminal
       ToR72p-2 SEFOS(config)# interface extreme-ethernet 0/66
       ToR72p-2 SEFOS(config-if)# description "connected to nxge1 nsn171-170"
       ToR72p-2 SEFOS(config-if)# switchport pvid 40
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface extreme-ethernet 0/67
       ToR72p-2 SEFOS(config-if)# description "connected to ES1-24p-1 on port24"
       ToR72p-2 SEFOS(config-if)# channel-group 13 mode active
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface extreme-ethernet 0/71
       ToR72p-2 SEFOS(config-if)# description "connected to ES1-24p-1 on port22"
       ToR72p-2 SEFOS(config-if)# channel-group 13 mode active
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface extreme-ethernet 0/68
       ToR72p-2 SEFOS(config-if)# description "connected to ES1-24p-2 on port24"
       ToR72p-2 SEFOS(config-if)# channel-group 15 mode active
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface extreme-ethernet 0/72
       ToR72p-2 SEFOS(config-if)# description "connected to ES1-24p-2 on port22"
       ToR72p-2 SEFOS(config-if)# channel-group 15 mode active
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit

6. Enable the uplink interfaces to the core switch and add them to the port-channel.

       ToR72p-2 SEFOS(config)# interface extreme-ethernet 0/69
       ToR72p-2 SEFOS(config-if)# description "connected to Core switch on g1/2"
       ToR72p-2 SEFOS(config-if)# speed 1000
       ToR72p-2 SEFOS(config-if)# channel-group 11 mode active
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface extreme-ethernet 0/70
       ToR72p-2 SEFOS(config-if)# description "connected to Core switch on g1/3"
       ToR72p-2 SEFOS(config-if)# speed 1000
       ToR72p-2 SEFOS(config-if)# channel-group 11 mode active
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# end

7. Configure the L3 interface for all VLANs defined previously.

       ToR72p-2 SEFOS# configure terminal
       ToR72p-2 SEFOS(config)# interface vlan 2002
       ToR72p-2 SEFOS(config-if)# ip address 192.168.202.10 255.255.255.0
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface vlan 2004
       ToR72p-2 SEFOS(config-if)# ip address 192.168.204.10 255.255.255.0
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface vlan 2006
       ToR72p-2 SEFOS(config-if)# ip address 192.168.206.10 255.255.255.0
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface vlan 40
       ToR72p-2 SEFOS(config-if)# ip address 192.168.40.10 255.255.255.0
       ToR72p-2 SEFOS(config-if)# no shutdown
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# end

8. Enable OSPF and advertise the networks that are reachable through this switch.

       ToR72p-2 SEFOS# configure terminal
       ToR72p-2 SEFOS(config)# router ospf
       ToR72p-2 SEFOS(config-router)# asbr router
       ToR72p-2 SEFOS(config-router)# router-id 12.0.0.2
       ToR72p-2 SEFOS(config-router)# redistribute connected
       ToR72p-2 SEFOS(config-router)# network 192.168.202.10 area 0.0.0.0
       ToR72p-2 SEFOS(config-router)# network 192.168.204.10 area 0.0.0.0
       ToR72p-2 SEFOS(config-router)# network 192.168.206.10 area 0.0.0.0
       ToR72p-2 SEFOS(config-router)# network 192.168.40.10 area 0.0.0.0
       ToR72p-2 SEFOS(config-router)# end

9. Configure the VLAN interface with hello, dead intervals, authentication, and network type.

       ToR72p-2 SEFOS# configure terminal
       ToR72p-2 SEFOS(config)# interface vlan 2001
       ToR72p-2 SEFOS(config-if)# ip ospf hello-interval 3
       ToR72p-2 SEFOS(config-if)# ip ospf dead-interval 12
       ToR72p-2 SEFOS(config-if)# ip ospf message-digest-key 1 md5 oracle
       ToR72p-2 SEFOS(config-if)# ip ospf authentication message-digest
       ToR72p-2 SEFOS(config-if)# ip ospf network point-to-point
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface vlan 2003
       ToR72p-2 SEFOS(config-if)# ip ospf hello-interval 3
       ToR72p-2 SEFOS(config-if)# ip ospf dead-interval 12
       ToR72p-2 SEFOS(config-if)# ip ospf message-digest-key 1 md5 oracle
       ToR72p-2 SEFOS(config-if)# ip ospf authentication message-digest
       ToR72p-2 SEFOS(config-if)# ip ospf network point-to-point
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface vlan 2005
       ToR72p-2 SEFOS(config-if)# ip ospf hello-interval 3
       ToR72p-2 SEFOS(config-if)# ip ospf dead-interval 12
       ToR72p-2 SEFOS(config-if)# ip ospf message-digest-key 1 md5 oracle
       ToR72p-2 SEFOS(config-if)# ip ospf authentication message-digest
       ToR72p-2 SEFOS(config-if)# ip ospf network point-to-point
       ToR72p-2 SEFOS(config-if)# exit
       ToR72p-2 SEFOS(config)# interface vlan 30
       ToR72p-2 SEFOS(config-if)# ip ospf hello-interval 3
       ToR72p-2 SEFOS(config-if)# ip ospf dead-interval 12
       ToR72p-2 SEFOS(config-if)# ip ospf message-digest-key 1 md5 oracle
       ToR72p-2 SEFOS(config-if)# ip ospf authentication message-digest
       ToR72p-2 SEFOS(config-if)# ip ospf network point-to-point
       ToR72p-2 SEFOS(config-if)# end

10. Save the configuration.

        ToR72p-2 SEFOS# copy run start
        Building configuration ...
        [OK]

11. Verify the status of the interfaces.

        ToR72p-2 SEFOS# show interface description

        Interface    Status   Protocol  Description
        ---------    ------   --------  -----------
        Ex0/1        down     down
        ...
        Ex0/64       down     down
        Ex0/65       down     down
        Ex0/66       up       up        connected to nxge1 nsn171-170
        Ex0/67       up       up        connected to ES1-24p-1 on port24
        Ex0/68       up       up        connected to ES1-24p-2 on port24
        Ex0/69       up       up        connected to Core switch on g1/2
        Ex0/70       up       up        connected to Core switch on g1/3
        Ex0/71       up       up        connected to ES1-24p-1 on port22
        Ex0/72       up       up        connected to ES1-24p-2 on port22
        po11         up       up
        po13         up       up
        po15         up       up
        vlan1        down     down
        vlan2002     up       up
        vlan2004     up       up
        vlan2006     up       up
        vlan40       up       up

12. Verify the OSPF neighbors.

        ToR72p-2 SEFOS# show ip ospf neighbor

         Vrf  default
        Neighbor-ID  Pri  State       DeadTime  Address          Interface
        -----------  ---  -----       --------  -------          ---------
        12.0.0.5     1    FULL/PTOP   32        192.168.202.20   vlan2002
        12.0.0.3     1    FULL/PTOP   36        192.168.204.20   vlan2006
        12.0.0.4     1    FULL/PTOP   38        192.168.206.20   vlan2004

13. After IXIA sends 500 routes to the core switch, verify the number of routes on this `ToR72p-2` switch.

    Some switches display OSPF routes learned as 1000 because they have multiple paths to reach a particular destination.

        ToR72p-2 SEFOS# show ip route summary

        Route Source    Routes
        connected         4
        static            0
        rip               0
        bgp               0
        ospf              514
        Total             518

14. Verify the routes learned.

        ToR72p-2 SEFOS# show ip route

        Codes: C - connected, S - static, R - rip, B - bgp, O - ospf

        O 192.168.20.0/24 [2] via 192.168.202.20
        O 192.168.30.0/24 [3] via 192.168.204.20
                      [3] via 192.168.206.20
                      [3] via 192.168.202.20
        C 192.168.40.0/24 is directly connected, vlan40
        O 192.168.50.0/24 [2] via 192.168.204.20
        O 192.168.60.0/24 [2] via 192.168.206.20
        O 192.168.100.0/24 [2] via 192.168.204.20
        O 192.168.101.0/24 [2] via 192.168.204.20
        O 192.168.150.0/24 [2] via 192.168.202.20
        O 192.168.151.0/24 [2] via 192.168.202.20
        O 192.168.201.0/24 [2] via 192.168.202.20
        C 192.168.202.0/24 is directly connected, vlan2002
        O 192.168.203.0/24 [2] via 192.168.204.20
        C 192.168.204.0/24 is directly connected, vlan2004
        O 192.168.205.0/24 [2] via 192.168.206.20
        C 192.168.206.0/24 is directly connected, vlan2006
        O 45.45.45.0/24 [2] via 192.168.202.20
        O 45.45.46.0/24 [2] via 192.168.202.20
        O 45.45.47.0/24 [2] via 192.168.202.20
        O 45.45.48.0/24 [2] via 192.168.202.20
        O 45.45.49.0/24 [2] via 192.168.202.20
        O 45.45.50.0/24 [2] via 192.168.202.20
        O 45.45.51.0/24 [2] via 192.168.202.20
        O 45.45.52.0/24 [2] via 192.168.202.20
        O 45.45.53.0/24 [2] via 192.168.202.20
        O 45.45.54.0/24 [2] via 192.168.202.20
        O 45.45.55.0/24 [2] via 192.168.202.20
        ...

##### Related Information

- Configure Switch `TOR72p-1` for L3 Routing Using OSPF

- Configure Switch `ES1-24p-1` for L3 Routing Using OSPF

- Configure Switch `ES1-24p-2` for L3 Routing Using OSPF

- Verify the L3 OSPF Configuration

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices |