Beruflich Dokumente
Kultur Dokumente
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. El comando
show vlan
permite ver configuración IP importante
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
A. El comando
show iproute
muestra la tabla de rutas del switch
* Summit1iTx:70 # sh iproute
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
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
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
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
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.)
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
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. El comando
show vlan
permite ver configuración IP importante
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
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
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
A. El comando
show ospf interfaces
muestra información sobre la configuración de RIP
A. El comando
show ospf interfaces detail
muestra información sobre la configuración de 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
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 !