Extreme Networks B3 Configuracion L3 Basica
-
Upload
tcpiptrashcan4602 -
Category
Documents
-
view
2.734 -
download
26
description
Transcript of Extreme Networks B3 Configuracion L3 Basica
Extreme Training
ConfiguraciónL3 Básica
Agenda
A. Routing IP
B. Rutas Estáticas
C. RIP
D. Troubleshooting
E. Laboratorio 1
F. OSPF
G. Troubleshooting
H. Laboratorio 2
Routing IP
Routing IPInterfaces de Routing
A. Cualquier VLAN definida en un switch puede transformarse en una interfaz de router IP.
B. Para ello es necesario asignar a la VLAN una dirección IP mediante el comandoconfig vlan <vlan_name> ip address <ip_address> / <mask>la que será usada como default gateway por las estaciones de trabajo conectadas a esa VLAN.
C. Adicionalmente, es necesario habilitar la funcionalidad de routing en esa VLAN mediante el comandoenable ipforwarding vlan <vlan_name>
Ip address
10.0.1.1/24
Ip address
10.0.2.1/24
Ip address
10.0.3.1/24
Rutas Estáticas
Routing IPRutas Estáticas
A. Un router redirige tráfico a destinos remotos basado en su tabla de ruteo.
B. Esta tabla está inicialmente poblada sólo con las redes a las cuales está directamente conectado el router a traves de sus interfaces (VLANs).
C. Si el router no implementa algún protocolo dinámico de ruteo (RIP, OSPF, BGP), es necesario poblar manualmente esa tabla de rutas.
D. Estas rutas se denominan rutas estáticas, y se configuran con el comandoconfigure iproute add <network_address>/<mask> <gateway_address> <cost>
E. Un caso especial de ruta estática es la ruta default, que se emplea cuando no se conoce una ruta cierta al destino solicitado. Esta ruta se configura con el comandoconfigure iproute add default <gateway_address> <cost>
RIP
Routing IPRIP
A. RIP es un protocolo dinámico de ruteo que intercambia con otros routers información sobre las rutas a las que puede llegar.
B. RIP envía, cada 30 segundos, toda su tabla de rutas.
C. RIP se debe habilitar a nivel global mediante el comandoenable rip
D. Adicionalmente, RIP se debe habilitar VLAN por VLAN mediante el comandoconfigure rip add vlan [<vlan_name> | all]
E. Similarmente, RIP se puede habilitar VLAN por VLAN mediante el comandoconfigure rip delete vlan [<vlan_name> | all]
Routing IPRIP V1 & V2
A. Existen 2 versiones de RIP– RIP V1– RIP V2
B. RIP V1 envía información de las rutas sin incluír la máscara correspondiente y usa una dirección broadcast.
C. RIP V2 incluye la máscara junto con la información de las rutas y usa una dirección multicast reconocida por los routers RIP V2.
D. Es posible configurar la manera en la que RIP transmitirá su información, mediante el comandoconfigure rip txmode [none | v1compat | v1only | v2only] {[<vlan_name> | all]}
E. También es posible configurar la manera en la que RIP recibirá la información, mediante el comandoconfigure rip rxmode [any | none | v1only | v2only] {[<vlan_name> | all]}
Routing IPLoopback
A. El switch informará mediante RIP a otros routers como llegar a interfaces propias que cumplan las siguientes condiciones:– Tengan RIP habilitado.– Tengan al menos un puerto de la VLAN activo.
B. Si una VLAN tiene RIP habilitado, pero ninguno de sus puertos está activo, el switch no publicitará esa ruta, debido a que no hay nadie con quien establecer comunicación.
C. Si se desea que esta ruta sea publicitada independientemente de que haya puertos activos o no es necesario habilitar la funcionalidad de loopback en esa VLAN.
D. Eso se logra mediante el comandoenable loopback-mode vlan <vlan_name>
Routing IPRIP Export
A. RIP puede enviar (exportar) a otros routers información que tenga en su tabla de ruteo proveniente de:– Rutas estáticas– Rutas Directas– OSPF
B. Se entiende por rutas directas aquellas VLANs con dirección IP válida e IP forwarding habilitado que no tengan RIP habilitado.
C. El comando para exportar rutas es:enable rip export [static | direct | ospf] <cost>
Troubleshooting
Routing IPTroubleshooting
A. El comandoshow vlanpermite ver configuración IP importante
* Summit1iTx:19 # show vlanName VID Protocol Addr Flags Proto Super Ports STPs Default 0001 10.0.0.1 /24 -----f-r--- ANY 0/ 1 1MacVlanDis 4095 ------------------ ----- ANY 0/ 0 0 v-any 4094 10.0.1.1-------/24 -----f-r--- ANY 0/ 1 0 v-ip 4093 10.0.2.1-------/24 -----f-r--- IP 0/ 4 0 v-nb 4092 ------------------ ----- netbio 0/ 3 0
Flags : M=ESRP Master, E=ESRP Slave, G=GVRP Enabled, L=Loopback Enabled S=SuperVlan, s=SubVlan, R=SubVLAN IP Range Configured C=Domain-masterVlan, c=Domain-memberVlan, v=VRRP Enabled f=IP Forwarding Enabled, m=IPmc Forwarding Enabled r=RIP Enabled, o=OSPF Enabled, p=PIM Enabled, d=DVMRP Enabled X=IPX RIP Enabled, P=IPX SAP Enabled N=GNS Reply Enabled, 2=IPX Type 20 Forwarding Enabled
Total number of Vlan(s) : 5
Routing IPTroubleshooting
A. El comandoshow ipconfigpermite ver configuración IP importante
* Summit1iTx:62 # sh ipconfig IP Routing : Enabled IPmc Routing : Disabled Use Redirects : Disabled RIP : Enabled DVMRP : Disabled PIM : Disabled OSPF : Disabled BGP : Disabled IRDP : Disabled BootpRelay : Disabled Route Sharing : Disabled Multinetting : Disabled IGMP Snooping : Enabled SLB : Disabled VRRP : Disabled IpOption LSRR : Enabled IpOption SSRR : Enabled IpOption RR : Enabled IpOption TS : Enabled
Routing IPTroubleshooting
A. El comandoshow ipconfigtambién permite ver más configuración IP importante
VLAN IP Address Flags nSIA nLRMA nLeMADefault 10.0.0.1 /24 EUf----s--uRPXMTA----ir------ 0 3 0v-any 10.0.1.1 /24 EUf----s--uRPXMTA----ir------ 0 3 2v-ip 10.0.2.1 /24 E-f----s--uRPXMTA----ir------ 0 2 0
Flags : E - Interface Enabled, U - Interface Up, f - Forwarding Enabled, m - Multicast Forwarding Enabled, b - Broadcast Forwarding Enabled, h - Directed Broadcast Forwarding by Hardware Enabled, g - Ignore IP Broadcast Enabled, s - SubVLAN Proxy, B - BOOTP Enabled, u - Send Unreachables Enabled, R - Send Redirects Enabled, P - Send Port Unreachables Enabled, X - Send Time Exceeded Enabled, M - Send Parameter Problem Enabled, T - Time Stamp Reply Enabled, A - Address Mask Reply Enabled, I - IRDP Advertisement Enabled, e - ESRP Enabled, i - IGMP Enabled, r - RIP Enabled, o - OSPF Enabled, d - DVMRP Enabled, p - PIM Enabled, q - ISQ Enabled, S - SLB Server, C - SLB Client, v - VRRP Enabled.nSIA - Number of Secondary IP Addresses.nLRMA - Number of Locally registered Multicast Addresses.nLeMA - Number of Learned Multicast Addressess.
Routing IPTroubleshooting
A. El comandoshow iproutemuestra la tabla de rutas del switch
* Summit1iTx:70 # sh iproute
OR Destination Gateway Mtr Flags Use M-Use VLAN Acct-1*d 10.0.0.0/24 10.0.0.1 1 U------u- 0 0 Default 0*r 192.168.1.0/24 10.0.1.2 3 UG-----um 0 0 v-any 0*s 192.168.0.0/24 10.0.1.2 3 UG---S-um 0 0 v-any 0*d 10.0.1.0/24 10.0.1.1 1 U------u- 0 0 v-any 0 d 10.0.2.0/24 10.0.2.1 1 -------u- 0 0 v-ip 0*d 127.0.0.1/8 127.0.0.1 0 U-H----um 0 0 Default 0*s Default Route 10.0.0.2 5 UG---S-um 0 0 Default 0
Origin(OR): b - BlackHole, bg - BGP, be - EBGP, bi - IBGP, bo - BOOTP, ct - CBT d - Direct, df - DownIF, dv - DVMRP, h - Hardcoded, i - ICMP mo - MOSPF, o - OSPF, oa - OSPFIntra, or - OSPFInter, oe - OSPFAsExt o1 - OSPFExt1, o2 - OSPFExt2, pd - PIM-DM, ps - PIM-SM, r - RIP ra - RtAdvrt, s - Static, sv - SLB_VIP, un - UnKnown.
Flags: U - Up, G - Gateway, H - Host Route, D - Dynamic, R - Modified, S - Static, B - BlackHole, u - Unicast, m - Multicast.
Routing IPTroubleshooting
A. El comandoshow ripmuestra información sobre la configuración de RIP
* Summit1iTx:71 # sh ripRip Enabled: YES Split Horizon: YES Poison Reverse: YESTriggered Updates: YES Aggregate Routes: NOUpdateInterval: 30 RouteTimeout: 180 GarbageTime: 120RouteChanges: 0 Queries: 0Export Static: YESExport Ospf-Intra: NOExport Ospf-Inter: NOExport Ospf-Extern1: NOExport Ospf-Extern2: NOExport Direct: NOExport Vip: NOOriginate Default: NO
VLAN IP Address Flags Tx Mode Rx Mode Cost Peersv-ip 10.0.2.1 /24 -rif- V2 V2 1 0v-any 10.0.1.1 /24 -rif- V2 V2 1 0Default 10.0.0.1 /24 -rif- V2 V2 1 0Flags : r - Router RIP Enabled, i - Interface RIP Enabled, f - Interface Forwarding Enabled.
Laboratorio 1
Laboratorio 1IP Routing, Rutas Estáticas y RIP
ObjetivoA. Aprender a configurar direcciones IP en las interfaces, habilitar
IP routing y configurar rutas estáticas
B. Aprender a configurar y habilitar RIP
C. Aprender a exportar rutas externas a RIP
Laboratorio 1-AIP Routing y Rutas Estáticas
.1
.2
.1S1
S2
S3
.2
.3
.3
VLAN B31
.3
.3
VLAN B32
VLAN C3
VLAN C2
VLAN C1
VLAN Red IP
C1 10.0.1.x / 24
C2 10.0.2.x / 24
C3 10.0.3.x / 24
B11 10.1.1.x / 24
B12 10.1.2.x / 24
B21 10.2.1.x / 24
B22 10.2.2.x / 24
B31 10.3.1.x / 24
B32 10.3.2.x / 24
VLAN B11
.1
.1
VLAN B12
VLAN B21
.2
.2
VLAN B22
Laboratorio 1-AIP Routing y Rutas Estáticas
A. Desconfigurar el switch
B. Crear las VLANs correspondientes al switch elegido y agregarles puertas
C. Habilitar ruteo IP
D. Establecer rutas estáticas a las VLANs Bx1 de los otros switches
E. Verificar conectividad mediante ping
F. ¿Loopback?
Laboratorio 1-AIP Routing y Rutas Estáticas
Switch 1Unconfigure switchConfig default del port allCreate vlan c1Create vlan c2Create vlan b11Create vlan b12Config c1 ip 10.0.1.1/24Config c2 ip 10.0.2.1/24Config b11 ip 10.1.1.1/24Config b12 ip 10.1.2.1/24# agregar puertos a las vlansEnable loopback-mode b11Enable ipforwardConfig iprou add 10.2.1.0/24 10.0.1.2 10Config iprou add 10.2.1.0/24 10.0.2.3 20Config iprou add 10.3.1.0/24 10.0.2.3 10Config iprou add 10.3.1.0/24 10.0.1.2 20
Switch 2Unconfigure switchConfig default del port allCreate vlan c1Create vlan c3Create vlan b21Create vlan b22Config c1 ip 10.0.1.2/24Config c3 ip 10.0.3.2/24Config b21 ip 10.2.1.2/24Config b22 ip 10.2.2.2/24# agregar puertos a las vlansEnable loopback-mode b21Enable ipforwardConfig iprou add 10.1.1.0/24 10.0.1.1 10Config iprou add 10.1.1.0/24 10.0.3.3 20Config iprou add 10.3.1.0/24 10.0.3.3 10Config iprou add 10.3.1.0/24 10.0.1.1 20
Switch 3Unconfigure switchConfig default del port allCreate vlan c2Create vlan c3Create vlan b31Create vlan b32Config c2 ip 10.0.2.3/24Config c3 ip 10.0.3.3/24Config b31 ip 10.3.1.3/24Config b32 ip 10.3.2.3/24
# agregar puertos a las vlansEnable loopback-mode b31Enable ipforwardConfig iprou add 10.1.1.0/24 10.0.3.1 10Config iprou add 10.1.1.0/24 10.0.2.2 20Config iprou add 10.2.1.0/24 10.0.2.2 10Config iprou add 10.2.1.0/24 10.0.3.1 20
Laboratorio 1-BRIP
A. Habilitar RIP en las VLANs Cx de cada switch
B. Habilitar RIP en la VLAN Bx2 de cada switch
C. Habilitar RIP en el switch
D. Verificar la propagación de rutas de otros switches
E. Verificar conectividad mediante ping
F. ¿Loopback?
Laboratorio 1-BRIP
Switch 1Config rip add c1Config rip add c2Config rip add b12Enable loopback-mode b12Enable rip
Switch 2Config rip add c1Config rip add c3Config rip add b22Enable loopback-mode b22Enable rip
Switch 3Config rip add c2Config rip add c3Config rip add b32Enable loopback-mode b32Enable rip
Laboratorio 1-CExport Static
A. Agregar rutas estáticas ficticias
B. Habilitar exportación de rutas estáticas a otros switches mediante RIP
C. Verificar la propagación de las rutas ficticias de otros switches
Laboratorio 1-CExport Static
Switch 1config iproute add 11.0.0.0/8 10.1.1.100 5 enable rip export static metric 50
Switch 2config iproute add 21.0.0.0/8 10.2.1.100 5 enable rip export static metric 50
Switch 3config iproute add 31.0.0.0/8 10.3.1.100 5 enable rip export static metric 50
OSPF
Routing IPOSPF
A. Es un protocolo de ruteo dinámico más eficiente que RIP
B. Es del tipo Link State Protocol y emplea un modelo de base de datos distribuído
C. Cada router publicita una descripción de su entorno local– Interfaces– Costos– Información de sus vecinos
D. Usa una única base de datos sincronizada qu almacena esta información (LSDB)
E. La tabla de ruteo se deriva de esta base de datos usando un algoritmo conocido como shortest-path first
F. OSPF soporta balance de carga a través de múltiples rutas de igual costo hacia un mismo destino
Routing IPOSPF Router ID
A. Cada switch debe tener un router ID único
B. Si bien el switch puede elegir un router ID automáticamente, se recomienda establecerlo manualmente para cada switch que participe en OSPF
C. No se debe usar 0.0.0.0 como router ID
D. El comando para establecerlo es:config ospf routerid [automatic | <routerid>]
Routing IPAreas OSPF
A. OSPF implementa un esquema de ruteo jerárquico, dividiendo los routers en áreas.
B. Esto representa una reducción en:– La cantidad de memoria consumida por la tabla de ruteo– Recursos requeridos para el cálculo de la tabla de ruteo– Ancho de banda requerido para distribuír información de ruteo
Area
0.0.0.0
Backbone
Area 0.0.0.1
Area 0.0.0.2
Area 0.0.0.3
Area 0.0.0.4
Routing IPAreas OSPF (cont.)
A. Un área es un grupo de uno o más segmentos de red interconectados por routers
B. Existen 4 tipos de áreas:– Area 0 (existe por default y no es necesario crearla)– Normal Area– Stub Area– Not-So-Stubby-Area (NSSA)
C. Las áreas se identifican mediante un Area ID de 32 bits. El identificador 0.0.0.0 se reserva para el área Backbone.
D. El comando para crear un área es:create ospf area <area_id>
Routing IPAreas OSPF (cont.)
A. Para configurar el tipo de área se usa el comandoconfig ospf <area_id> [normal | stub | nssa]
B. El área 0 (backbone) sólo puede ser normal
C. Para agregar una vlan a un área determinada se usa el comandoconfig ospf add vlan [<vlan_name> | all] area <area_id>
D. Para habilitar OSPF en el switch se usa el comandoenable ospf
Routing IPOSPF Export
A. OSPF puede enviar (exportar) a otros routers información que tenga en su tabla de ruteo proveniente de:– Rutas estáticas– Rutas Directas– RIP
B. Se entiende por rutas directas aquellas VLANs con dirección IP válida e IP forwarding habilitado que no tengan RIP habilitado.
C. El comando para exportar rutas es:enable ospf export [direct | rip | static] cost <metric> [ase-type-1 | ase-type-2]
Routing IPTipos de Routers OSPF
A. Internal Router (IR)– Todas sus interfaces pertenecen a la misma área.
B. Area Border Router (ABR)– Sus interfaces pertenecen a distintas áreas. Es responsible de
intercambiar resúmenes de rutas con otros ABR’s. Un switch Extreme soporta hasta 7 áreas no 0.
C. Autonomous System Boundary Router (ASBR)– Un ASBR actúa como gateway entre OSPF y otros protocolos de ruteo,
u otros sistemas autónomos.
Routing IPTipos de routers OSPF
A rea 3
R 13
R 1 R 2
R 3
R 4
R 6R 7
R 9
R 8
R 5
A rea 2
A rea 1
A rea 3
A utonomous S ys tem
R 11
R 10
R 12
ABR ABR
ABR
ASBR
*Todos los routers no etiquetados como ASBR o ABR son Internal Routers
InternetInternet
Routing IPNetwork Type - Broadcast Networks
A. Es el tipo de red usado por defecto en los switches Extreme
B. Existen otros tipos de red que se usan en enlaces WAN
10.1.1.1 10.1.1.510.1.1.3
10.1.1.410.1.1.2
Routing IPDesignated Router
A. Toda red broadcast tiene un Designated Router (DR) y un Backup Designated Router (BDR).
B. Cada router de la red intercambia información sobre el estado de sus enlaces sólo con el DR y el BDR.– La dirección de destino IP del mensaje será la dirección multicast
224.0.0.6 (All DRouters).
C. El DR enviará este update a todos los routers OSPF– La dirección de destino IP del mensaje será la dirección multicast
224.0.0.5 (All OSPFRouters).
D. Esto reduce el nivel de tráfico consumido por el protocolo de ruteo ya que si todos los routers tuvieran que intercambiar información con todos los demás routers tendríamos n*(n-1) intercambios.
Troubleshooting
Routing IPTroubleshooting
A. El comandoshow vlanpermite ver configuración IP importante
Name VID Protocol Addr Flags Proto Super Ports STPs Default 0001 10.0.0.1 /24 -----f--o-- ANY 1/ 8 1MacVlanDis 4095 ------------------ ----- ANY 0/ 0 0 c1 4094 10.0.1.1 /24 -L---f--o-- ANY 0/ 0 0 c2 4093 10.0.2.1 /24 -L---f--o-- ANY 0/ 0 0 c3 4092 10.0.3.1 /24 -L---f--o-- ANY 0/ 0 0
Flags : M=ESRP Master, E=ESRP Slave, G=GVRP Enabled, L=Loopback Enabled S=SuperVlan, s=SubVlan, R=SubVLAN IP Range Configured C=Domain-masterVlan, c=Domain-memberVlan, v=VRRP Enabled f=IP Forwarding Enabled, m=IPmc Forwarding Enabled r=RIP Enabled, o=OSPF Enabled, p=PIM Enabled, d=DVMRP Enabled X=IPX RIP Enabled, P=IPX SAP Enabled N=GNS Reply Enabled, 2=IPX Type 20 Forwarding Enabled
Total number of Vlan(s) : 5* Summit1iTx:39 #
Routing IPTroubleshooting
A. El comandoshow ipconfigpermite ver configuración IP importante
* Summit1iTx:62 # sh ipconfig IP Routing : Enabled IPmc Routing : Disabled Use Redirects : Disabled RIP : Disabled DVMRP : Disabled PIM : Disabled OSPF : Enabled BGP : Disabled IRDP : Disabled BootpRelay : Disabled Route Sharing : Disabled Multinetting : Disabled IGMP Snooping : Enabled SLB : Disabled VRRP : Disabled IpOption LSRR : Enabled IpOption SSRR : Enabled IpOption RR : Enabled IpOption TS : Enabled
Routing IPTroubleshooting
A. El comandoshow ipconfigtambién permite ver más configuración IP importante
VLAN IP Address Flags nSIA nLRMA nLeMADefault 10.0.0.1 /24 EUf----s--uRPXMTA----i-o----- 0 4 3c1 10.0.1.1 /24 EUf----s--uRPXMTA----i-o----- 0 4 0c2 10.0.2.1 /24 EUf----s--uRPXMTA----i-o----- 0 4 0c3 10.0.3.1 /24 EUf----s--uRPXMTA----i-o----- 0 4 0
Flags : E - Interface Enabled, U - Interface Up, f - Forwarding Enabled, m - Multicast Forwarding Enabled, b - Broadcast Forwarding Enabled, h - Directed Broadcast Forwarding by Hardware Enabled, g - Ignore IP Broadcast Enabled, s - SubVLAN Proxy, B - BOOTP Enabled, u - Send Unreachables Enabled, R - Send Redirects Enabled, P - Send Port Unreachables Enabled, X - Send Time Exceeded Enabled, M - Send Parameter Problem Enabled, T - Time Stamp Reply Enabled, A - Address Mask Reply Enabled, I - IRDP Advertisement Enabled, e - ESRP Enabled, i - IGMP Enabled, r - RIP Enabled, o - OSPF Enabled, d - DVMRP Enabled, p - PIM Enabled, q - ISQ Enabled, S - SLB Server, C - SLB Client, v - VRRP Enabled.nSIA - Number of Secondary IP Addresses.nLRMA - Number of Locally registered Multicast Addresses.nLeMA - Number of Learned Multicast Addressess.*
Routing IPTroubleshooting
A. El comandoshow iproutemuestra la tabla de rutas del switch
* Summit1iTx:43 # sh iproute so OR Destination Gateway Mtr Flags Use M-Use VLAN Acct-1*d 10.0.0.0/24 10.0.0.1 1 U------u- 540 0 Default 0*d 10.0.1.0/24 10.0.1.1 1 U------u- 0 0 c1 0*d 10.0.2.0/24 10.0.2.1 1 U------u- 0 0 c2 0*d 10.0.3.0/24 10.0.3.1 1 U------u- 0 0 c3 0*oa 10.1.1.0/24 10.0.0.2 14 UG-----um 0 0 Default 0*or 11.2.1.0/24 10.0.0.2 14 UG-----um 0 0 Default 0*or 11.3.1.0/24 10.0.0.2 14 UG-----um 0 0 Default 0*or 11.4.1.0/24 10.0.0.2 14 UG-----um 0 0 Default 0*d 127.0.0.1/8 127.0.0.1 0 U-H----um 0 0 Default 0
Origin(OR): b - BlackHole, bg - BGP, be - EBGP, bi - IBGP, bo - BOOTP, ct - CBT d - Direct, df - DownIF, dv - DVMRP, h - Hardcoded, i - ICMP mo - MOSPF, o - OSPF, oa - OSPFIntra, or - OSPFInter, oe - OSPFAsExt o1 - OSPFExt1, o2 - OSPFExt2, pd - PIM-DM, ps - PIM-SM, r - RIP ra - RtAdvrt, s - Static, sv - SLB_VIP, un - UnKnown.
Flags: U - Up, G - Gateway, H - Host Route, D - Dynamic, R - Modified, S - Static, B - BlackHole, u - Unicast, m - Multicast.
Routing IPTroubleshooting
A. El comandoshow ospfmuestra información sobre la configuración de RIP
* Summit1iTx:44 # sh osp
Router Id OSPF ASBR ABR ExtLSA ExtLSACsum OrigNewLSA RxNewLSA SpfHoldTime
1.1.1.1 E NO YES 0 0x0 30 16 3
RouterId Selection: User Configured
Export Static: Enabled
Export Rip: Disabled
Export Direct: Disabled
Export EBGP: Disabled
Export IBGP: Disabled
Export Vip: Disabled
Originate Default: Disabled
ASBR route Filter: None
Direct route Filter: None
10M Cost = 10, 100M Cost = 5,1G Cost = 4.
Lsa Batch Interval = 30.
AS-external LSA limit: disabled Timeout: disabled Current count: 0
Capabilities: Opaque LSA: Enabled
Routing IPTroubleshooting
A.El comandoshow ospf interfacesmuestra información sobre la configuración de RIP
* Summit1iTx:45 # sh osp interfaces
VLAN IP Address AREA ID Flags Cost State Neighbors
c3 10.0.3.1 /24 0.0.0.2 -rif- 10/A DR 0
c2 10.0.2.1 /24 0.0.0.2 -rif- 10/A DR 0
c1 10.0.1.1 /24 0.0.0.2 -rif- 10/A DR 0
Default 10.0.0.1 /24 0.0.0.0 -rif- 4/A DR 1
Flags : r - Router OSPF Enabled, i - Interface OSPF Enabled, f - Interface
Forwarding Enabled, p - Passive Interface.
Routing IPTroubleshooting
A.El comandoshow ospf interfaces detailmuestra información sobre la configuración de OSPF
* Summit1iTx:46 # sh osp interfaces detail
Interface(rif0): 10.0.0.1/24 Vlan: Default Ospf: ENABLED Router: ENABLED
AreaId: 0.0.0.0 (0) RtId: 1.1.1.1 Link Type: broadcast(auto) Passive: No
Cost: 4/A Priority: 1 Transit Delay: 1
Hello Interval: 10s Rtr Dead Time: 40s Retransmit Interval: 5s
Wait Timer: 40s(auto)
Authentication: NONE
State: DR Number of events: 5
DR RtId: 1.1.1.1 DR IP addr: 10.0.0.1 BDR IP addr: 10.0.0.2
Num Neighbor State Change to FULL : 1
Neighbours:
RtrId: 2.2.2.2 IpAddr: 10.0.0.2 Pri: 1 Type: Auto
State: FULL Dr: 10.0.0.1 BDR: 10.0.0.2 Dead Time: 10
Options (0x2): Opaque LSA: No
Laboratorio 2
Laboratorio 2OSPF
ObjetivoA. Aprender a configurar y habilitar OSPF
B. Aprender a exportar rutas externas a OSPF
Laboratorio 2-AOSPF
Area
0.0.0.2
Area
0.0.0.3
Area
0.0.0.1
.1S1
S2
S3
.2
.3
.3
VLAN B31
.3
VLAN C3
VLAN C2
VLAN Red IP
C1 10.0.1.x / 24
C2 10.0.2.x / 24
C3 10.0.3.x / 24
B11 10.1.1.x / 24
B21 10.2.1.x / 24
B31 10.3.1.x / 24
VLAN B11
.1
VLAN B21
.2
Area 0.0.0.0
.1
.2
.2
VLAN C1
Laboratorio 2-AOSPF
A. Desconfigurar el switch
B. Crear las VLANs correspondientes al switch elegido y asignarles puertas
C. Habilitar ruteo IP
D. Configurar Router ID– S1: Rtr_ID = 1.1.1.1– S2: Rtr_ID = 2.2.2.2– S3: Rtr_ID = 3.3.3.3
E. Crear áreas
F. Habilitar OSPF en las VLANs y en el switch
G. Verificar establecimiento de OSPF con vecinos
H. Verificar la propagación de rutas de otros switches
I. Verificar conectividad mediante ping
Laboratorio 2-AOSPF
Switch 1Unconfigure switchConfig default del port allCreate vlan c1Create vlan c2Create vlan b11Config c1 ip 10.0.1.1/24Config c2 ip 10.0.2.1/24Config b11 ip 10.1.1.1/24# agregar puertos a las vlansEnable loopback-mode b11Enable ipforwardConfig ospf routerid 1.1.1.1Create ospf area 0.0.0.1Config ospf add vlan c1 area 0.0.0.0Config ospf add vlan c2 area 0.0.0.0Config ospf add vlan b11 area 0.0.0.1Enable ospf
Switch 2Unconfigure switchConfig default del port allCreate vlan c1Create vlan c3Create vlan b21Config c1 ip 10.0.1.2/24Config c3 ip 10.0.3.2/24Config b21 ip 10.2.1.2/24# agregar puertos a las vlansEnable loopback-mode b21Enable ipforwardConfig ospf routerid 2.2.2.2Create ospf area 0.0.0.2Config ospf add vlan c1 area 0.0.0.0Config ospf add vlan c3 area 0.0.0.0Config ospf add vlan b21 area 0.0.0.2Enable ospf
Switch 3Unconfigure switchConfig default del port allCreate vlan c2Create vlan c3Create vlan b31Config c2 ip 10.0.2.3/24Config c3 ip 10.0.3.3/24Config b31 ip 10.3.1.3/24# agregar puertos a las vlans
Enable loopback-mode b31Enable ipforwardConfig ospf routerid 3.3.3.3Create ospf area 0.0.0.3Config ospf add vlan c2 area 0.0.0.0Config ospf add vlan c3 area 0.0.0.0Config ospf add vlan b31 area 0.0.0.3Enable ospf
Laboratorio 2-BExport Static
A. Agregar rutas estáticas inexistentes (sólo para prueba)
B. Habilitar exportación de rutas estáticas a otros switches mediante OSPF
C. Verificar la propagación de rutas de otros switches
Laboratorio 2-BExport Static
Switch 1Config iproute add 11.0.0.0/8 10.1.1.100 200Enable ospf export static cost 100 type ase-type-1
Switch 2Config iproute add 21.0.0.0/8 10.2.1.100 200Enable ospf export static cost 100 type ase-type-1
Switch 3Config iproute add 31.0.0.0/8 10.3.1.100 200Enable ospf export static cost 100 type ase-type-1
¡ Fin !