Sie sind auf Seite 1von 53

Extreme Training

Configuración
L3 Básica
Agenda

A. Routing IP
B. Rutas Estáticas
C. RIP
D. Troubleshooting
E. Laboratorio 1

G. OSPF
H. Troubleshooting
I. Laboratorio 2
Routing IP
Routing IP
Interfaces 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 comando
config 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 comando
enable ipforwarding vlan <vlan_name>

Ip address Ip address Ip address


10.0.1.1/24 10.0.2.1/24 10.0.3.1/24
Rutas Estáticas
Routing IP
Rutas 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 comando
configure 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 comando
configure iproute add default <gateway_address>
<cost>
RIP
Routing IP
RIP

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 comando
enable rip
D. Adicionalmente, RIP se debe habilitar VLAN por VLAN
mediante el comando
configure rip add vlan [<vlan_name> | all]
E. Similarmente, RIP se puede habilitar VLAN por VLAN
mediante el comando
configure rip delete vlan [<vlan_name> | all]
Routing IP
RIP 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 comando
configure 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 comando
configure rip rxmode [any | none | v1only |
v2only] {[<vlan_name> | all]}
Routing IP
Loopback

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 comando
enable loopback-mode vlan <vlan_name>
Routing IP
RIP 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 IP
Troubleshooting

A. El comando
show vlan
permite ver configuración IP importante

* Summit1iTx:19 # show vlan


Name VID Protocol Addr Flags Proto Super Ports STPs
Default 0001 10.0.0.1 /24 -----f-r--- ANY 0/ 1 1
MacVlanDis 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 IP
Troubleshooting

A. El comando
show ipconfig
permite 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 IP
Troubleshooting

A. El comando
show ipconfig
también permite ver más configuración IP importante
VLAN IP Address Flags nSIA nLRMA nLeMA
Default 10.0.0.1 /24 EUf----s--uRPXMTA----ir------ 0 3 0
v-any 10.0.1.1 /24 EUf----s--uRPXMTA----ir------ 0 3 2
v-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 IP
Troubleshooting

A. El comando
show iproute
muestra 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 IP
Troubleshooting

A. El comando
show rip
muestra información sobre la configuración de RIP
* Summit1iTx:71 # sh rip
Rip Enabled: YES Split Horizon: YES Poison Reverse: YES
Triggered Updates: YES Aggregate Routes: NO
UpdateInterval: 30 RouteTimeout: 180 GarbageTime: 120
RouteChanges: 0 Queries: 0
Export Static: YES
Export Ospf-Intra: NO
Export Ospf-Inter: NO
Export Ospf-Extern1: NO
Export Ospf-Extern2: NO
Export Direct: NO
Export Vip: NO
Originate Default: NO

VLAN IP Address Flags Tx Mode Rx Mode Cost Peers


v-ip 10.0.2.1 /24 -rif- V2 V2 1 0
v-any 10.0.1.1 /24 -rif- V2 V2 1 0
Default 10.0.0.1 /24 -rif- V2 V2 1 0
Flags : r - Router RIP Enabled, i - Interface RIP Enabled, f - Interface
Forwarding Enabled.
Laboratorio 1
Laboratorio 1
IP Routing, Rutas Estáticas y RIP

Objetivo
B. Aprender a configurar direcciones IP en las interfaces, habilitar
IP routing y configurar rutas estáticas
C. Aprender a configurar y habilitar RIP
D. Aprender a exportar rutas externas a RIP
Laboratorio 1-A
IP Routing y Rutas Estáticas

VLAN B11
.1
VLAN Red IP VLAN C2 .1
C1 10.0.1.x / 24 S1
C2 10.0.2.x / 24 VLAN B31
.1 .1
C3 10.0.3.x / 24 .3 .3 VLAN B12
B11 10.1.1.x / 24
S3 VLAN C1
B12 10.1.2.x / 24
B21 10.2.1.x / 24 .3 .3
VLAN B21
B22 10.2.2.x / 24 VLAN B32
.2 .2
B31 10.3.1.x / 24
S2
B32 10.3.2.x / 24 .2
VLAN C3
.2
VLAN B22
Laboratorio 1-A
IP 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-A
IP Routing y Rutas Estáticas
Switch 1 Switch 2
Unconfigure switch Unconfigure switch
Config default del port all Config default del port all
Create vlan c1 Create vlan c1
Create vlan c2 Create vlan c3
Create vlan b11 Create vlan b21
Create vlan b12 Create vlan b22
Config c1 ip 10.0.1.1/24 Config c1 ip 10.0.1.2/24
Config c2 ip 10.0.2.1/24 Config c3 ip 10.0.3.2/24
Config b11 ip 10.1.1.1/24 Config b21 ip 10.2.1.2/24
Config b12 ip 10.1.2.1/24 Config b22 ip 10.2.2.2/24
# agregar puertos a las vlans # agregar puertos a las vlans
Enable loopback-mode b11 Enable loopback-mode b21
Enable ipforward Enable ipforward
Config iprou add 10.2.1.0/24 10.0.1.2 10 Config iprou add 10.1.1.0/24 10.0.1.1 10
Config iprou add 10.2.1.0/24 10.0.2.3 20 Config iprou add 10.1.1.0/24 10.0.3.3 20
Config iprou add 10.3.1.0/24 10.0.2.3 10 Config iprou add 10.3.1.0/24 10.0.3.3 10
Config iprou add 10.3.1.0/24 10.0.1.2 20 Config iprou add 10.3.1.0/24 10.0.1.1 20

Switch 3
Unconfigure switch # agregar puertos a las vlans
Config default del port all Enable loopback-mode b31
Create vlan c2 Enable ipforward
Create vlan c3 Config iprou add 10.1.1.0/24 10.0.3.1 10
Create vlan b31 Config iprou add 10.1.1.0/24 10.0.2.2 20
Create vlan b32 Config iprou add 10.2.1.0/24 10.0.2.2 10
Config c2 ip 10.0.2.3/24 Config iprou add 10.2.1.0/24 10.0.3.1 20
Config c3 ip 10.0.3.3/24
Config b31 ip 10.3.1.3/24
Config b32 ip 10.3.2.3/24
Laboratorio 1-B
RIP

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-B
RIP
Switch 1
Config rip add c1
Config rip add c2
Config rip add b12
Enable loopback-mode b12
Enable rip

Switch 2
Config rip add c1
Config rip add c3
Config rip add b22
Enable loopback-mode b22
Enable rip

Switch 3
Config rip add c2
Config rip add c3
Config rip add b32
Enable loopback-mode b32
Enable rip
Laboratorio 1-C
Export 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-C
Export Static
Switch 1
config iproute add 11.0.0.0/8 10.1.1.100 5
enable rip export static metric 50

Switch 2
config iproute add 21.0.0.0/8 10.2.1.100 5
enable rip export static metric 50

Switch 3
config iproute add 31.0.0.0/8 10.3.1.100 5
enable rip export static metric 50
OSPF
Routing IP
OSPF

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 IP
OSPF 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 IP
Areas 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 Area
0.0.0.1 Area 0.0.0.3
0.0.0.0
Area Backbone Area
0.0.0.2 0.0.0.4
Routing IP
Areas 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 IP
Areas OSPF (cont.)

A. Para configurar el tipo de área se usa el comando


config 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
comando
config ospf add vlan [<vlan_name> | all] area
<area_id>
D. Para habilitar OSPF en el switch se usa el comando
enable ospf
Routing IP
OSPF 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 IP
Tipos 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 IP
Tipos de routers OSPF

R 1 R 2
R 7 R 6
Internet

R 3 A re a 1 R 9

R 8 A re a 2
R 4 R 10
ABR ABR
ASBR

A re a 3 R 11
R 5 A re a 3
ABR
R 12
R 13

A u to n o m o u s S y s te m

*Todos los routers no etiquetados como ASBR o ABR son Internal Routers
Routing IP
Network 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

1 0 .1 .1 .1 1 0 .1 .1 .3 1 0 .1 .1 .5

1 0 .1 .1 .2 1 0 .1 .1 .4
Routing IP
Designated 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 IP
Troubleshooting

A. El comando
show vlan
permite 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 1
MacVlanDis 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 IP
Troubleshooting

A. El comando
show ipconfig
permite 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 IP
Troubleshooting

A. El comando
show ipconfig
también permite ver más configuración IP importante
VLAN IP Address Flags nSIA nLRMA nLeMA
Default 10.0.0.1 /24 EUf----s--uRPXMTA----i-o----- 0 4 3
c1 10.0.1.1 /24 EUf----s--uRPXMTA----i-o----- 0 4 0
c2 10.0.2.1 /24 EUf----s--uRPXMTA----i-o----- 0 4 0
c3 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 IP
Troubleshooting

A. El comando
show iproute
muestra 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 IP
Troubleshooting

A. El comando
show ospf
muestra 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 IP
Troubleshooting

A. El comando
show ospf interfaces
muestra 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 IP
Troubleshooting

A. El comando
show ospf interfaces detail
muestra 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 2
OSPF

Objetivo
B. Aprender a configurar y habilitar OSPF
C. Aprender a exportar rutas externas a OSPF
Laboratorio 2-A
OSPF

VLAN B11
.1
VLAN C2 .1
S1
VLAN Red IP
VLAN B31
.1 Area
C1 10.0.1.x / 24
.3 .3 0.0.0.1
C2 10.0.2.x / 24
C3 10.0.3.x / 24 S3 VLAN C1
B11 10.1.1.x / 24 .3 Area
B21 10.2.1.x / 24 VLAN B21
0.0.0.3 .2 .2
B31 10.3.1.x / 24
S2
.2
VLAN C3
Area 0.0.0.0 Area
0.0.0.2
Laboratorio 2-A
OSPF

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-A
OSPF
Switch 1 Switch 2
Unconfigure switch Unconfigure switch
Config default del port all Config default del port all
Create vlan c1 Create vlan c1
Create vlan c2 Create vlan c3
Create vlan b11 Create vlan b21
Config c1 ip 10.0.1.1/24 Config c1 ip 10.0.1.2/24
Config c2 ip 10.0.2.1/24 Config c3 ip 10.0.3.2/24
Config b11 ip 10.1.1.1/24 Config b21 ip 10.2.1.2/24
# agregar puertos a las vlans # agregar puertos a las vlans
Enable loopback-mode b11 Enable loopback-mode b21
Enable ipforward Enable ipforward
Config ospf routerid 1.1.1.1 Config ospf routerid 2.2.2.2
Create ospf area 0.0.0.1 Create ospf area 0.0.0.2
Config ospf add vlan c1 area 0.0.0.0 Config ospf add vlan c1 area 0.0.0.0
Config ospf add vlan c2 area 0.0.0.0 Config ospf add vlan c3 area 0.0.0.0
Config ospf add vlan b11 area 0.0.0.1 Config ospf add vlan b21 area 0.0.0.2
Enable ospf Enable ospf

Switch 3
Unconfigure switch Enable loopback-mode b31
Config default del port all Enable ipforward
Create vlan c2 Config ospf routerid 3.3.3.3
Create vlan c3 Create ospf area 0.0.0.3
Create vlan b31 Config ospf add vlan c2 area 0.0.0.0
Config c2 ip 10.0.2.3/24 Config ospf add vlan c3 area 0.0.0.0
Config c3 ip 10.0.3.3/24 Config ospf add vlan b31 area 0.0.0.3
Config b31 ip 10.3.1.3/24 Enable ospf
# agregar puertos a las vlans
Laboratorio 2-B
Export 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-B
Export Static
Switch 1
Config iproute add 11.0.0.0/8 10.1.1.100 200
Enable ospf export static cost 100 type ase-type-1

Switch 2
Config iproute add 21.0.0.0/8 10.2.1.100 200
Enable ospf export static cost 100 type ase-type-1

Switch 3
Config iproute add 31.0.0.0/8 10.3.1.100 200
Enable ospf export static cost 100 type ase-type-1
¡ Fin !

Das könnte Ihnen auch gefallen