Guía de configuración de Oracle® Switch ES2-72 y Oracle Switch ES2-64

Salir de la Vista de impresión

Actualización: Abril de 2015
 
 

Configurar entradas de enrutamiento unidifusión estático

Esta tarea configura las entradas de enrutamiento estático en SEFOS y comprueba que el tráfico sea accesible a lo largo de las redes.


Notas - Antes de realizar esta tarea, borre las configuraciones anteriores de los conmutadores.

Consulte Routing Feature Topology para obtener la topología de esta tarea.

  1. Configure los parámetros iniciales.

    Consulte Configure Initial Settings.

  2. Si GVRP y GMRP están activados, desactívelos para que la creación de la VLAN no se propague.
    SEFOS-1# configure terminal
    SEFOS-1(config)# set gvrp disable
    SEFOS-1(config)# set gmrp disable
    SEFOS-1(config)# end
    SEFOS-1# show vlan device info
     
    Vlan device configurations
    --------------------------
    Vlan Status                       : Enabled
    Vlan Oper status                  : Enabled
    Gvrp status                       : Disabled
    Gmrp status                       : Disabled
    Gvrp Oper status                  : Disabled
    Gmrp Oper status                  : Disabled
    

    Los comandos set gvrp disable y set gmrp disable desactivan estos protocolos. El comando show vlan device info muestra la información de configuración de la VLAN.

  3. Configure SEFOS-1.

    Consulte Routing Feature Topology.

    1. Elimine la dirección IP de VLAN 1.
      SEFOS-1# configure terminal
      SEFOS-1(config)# interface vlan 1
      SEFOS-1(config-if)# no ip address
      SEFOS-1(config-if)# exit
      SEFOS-1(config)# vlan 10
      SEFOS-1(config-vlan)# exit
      SEFOS-1(config)# interface range xl-ethernet 0/25-26
      SEFOS-1(config-if-range)# switchport access vlan 10
      SEFOS-1(config-if-range)# no shutdown
      SEFOS-1(config-if-range)# exit
      SEFOS-1(config)# interface vlan 10
      SEFOS-1(config-if)# shut
      SEFOS-1(config-if)# ip address 10.0.0.201 255.255.255.0
      SEFOS-1(config-if)# no shutdown
      SEFOS-1(config-if)# end
      

      La dirección IP predeterminada de VLAN 1 es 10.0.0.1 y la dirección IP de VLAN 10 es 10.0.0.201. Por lo tanto, debe eliminar la dirección IP de VLAN 1 antes de poder agregar la dirección IP para VLAN 10.

    2. Ejecute Ping en host A desde SEFOS-1.
      SEFOS-1# ping 10.0.0.169
      
    3. Ejecute Ping en host A-2 desde SEFOS-1.
      SEFOS-1# ping 10.0.0.152
      
    4. Ejecute Ping en SEFOS-1 y host A-2 desde host A.
      # ping 10.0.201
      10.0.201 is alive
      # ping 10.0.0.152
      10.0.0.152 is alive
      #
      
  4. Configure el conmutador SEFOS-2 basado en la topología.

    Consulte Routing Feature Topology.

    SEFOS-2# configure terminal
    SEFOS-2(config)# interface vlan 1
    SEFOS-2(config-if)# no ip address
    SEFOS-2(config-if)# exit
    SEFOS-2(config)# vlan 40
    SEFOS-2(config-vlan)# exit
    SEFOS-2(config)# interface range xl-ethernet 0/25-26
    SEFOS-2(config-if-range)# shutdown
    SEFOS-2(config-if-range)# switchport access vlan 40
    SEFOS-2(config-if-range)# no shutdown
    SEFOS-2(config-if-range)# exit
    SEFOS-2(config)# interface vlan 40
    SEFOS-2(config-if)# shutdown
    SEFOS-2(config-if)# ip address 40.0.0.200 255.255.255.0
    SEFOS-2(config-if)# no shutdown
    SEFOS-2(config-if)# end
    SEFOS-2#
    
  5. Ejecute Ping en host B y host B-2 desde SEFOS-2.
    SEFOS-2# ping 40.0.0.110
    SEFOS-2# ping 40.0.0.118
    
  6. Cree VLAN 20 entre dos conmutadores.

    Use los puertos 1 a 2 en ambos conmutadores.

    1. Cree VLAN 20 en SEFOS-1, puertos 21 a 22.
      SEFOS-1# configure terminal
      SEFOS-1(config)# interface range xl-ethernet 0/1-2
      SEFOS-1(config-if-range)# switchport access vlan 20
      SEFOS-1(config-if-range)# no shutdown
      SEFOS-1(config-if-range)# exit
      SEFOS-1(config)# interface vlan 20
      SEFOS-1(config-if)# shutdown
      SEFOS-1(config-if)# ip address 20.0.0.201 255.255.255.0
      SEFOS-1(config-if)# no shutdown
      SEFOS-1(config-if)# end
      SEFOS-1#
      
    2. Cree VLAN 20 en SEFOS-2, puertos 21 a 22.
      SEFOS-2# configure terminal
      SEFOS-2(config)# interface range xl-ethernet 0/1-2
      SEFOS-2(config-if-range)# switchport access vlan 20
      SEFOS-2(config-if-range)# no shutdown
      SEFOS-2(config-if-range)# exit
      SEFOS-2(config)# interface vlan 20
      SEFOS-2(config-if)# shutdown
      SEFOS-2(config-if)# ip address 20.0.0.200 255.255.255.0
      SEFOS-2(config-if)# no shutdown
      SEFOS-2(config-if)# end
      SEFOS-2# ping 20.0.0.201
      

      Ahora puede usar esta configuración como punto de partida para diferentes configuraciones de enrutador.

  7. Guarde la configuración.
    1. En SEFOS-1, escriba:
      SEFOS-1# write startup-config
      Building configuration _
      [OK]
      
    2. En SEFOS-2, escriba:
      SEFOS-2# write startup-config
      Building configuration _
      [OK]
      

    Los conmutadores se inician con la configuración guardada cuando se reinician.

  8. Verifique que las rutas existentes estén disponibles en SEFOS-1.
    1. En SEFOS-1, escriba:
      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
      SEFOS-1#
      
    2. En SEFOS-2, escriba:
      SEFOS-2# show ip route
      Codes: C - connected, S - static, R - rip, B - bgp, O - ospf
       
      C 20.0.0.0/24 is directly connected, vlan20
      C 40.0.0.0/24 is directly connected, vlan40
       
      SEFOS-2#
      

      Si no hay rutas conocidas de SEFOS-1 al host B, la ejecución de ping del host A al host B falla.

  9. Configure la ruta estática en SEFOS-1.
    SEFOS-1# configure terminal
    SEFOS-1(config)# ip route 40.0.0.0 255.255.255.0 20.0.0.200
    SEFOS-1(config)# end
    
  10. Configure la ruta estática en SEFOS-2.
    SEFOS-2# configure terminal
    SEFOS-2(config)# ip route 10.0.0.0 255.255.255.0 20.0.0.201
    SEFOS-2(config)# end
    
  11. Verifique que las rutas sean conocidas para SEFOS-1 y SEFOS-2.
    1. En SEFOS-1, escriba:
      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
      S 40.0.0.0/24 [-1] via 20.0.0.200
      
    2. En SEFOS-2, escriba:
      SEFOS-2# show ip route
      Codes: C - connected, S - static, R - rip, B - bgp, O - ospf
      S 10.0.0.0/24 [-1] 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
      

Información relacionada