Vous êtes sur la page 1sur 12

Configuracin de OSPF en Cisco

Objetivos
Configurar las direcciones IP en las interfaces ethernet en cada uno de los dos routers.
El objetivo de esta prctica de laboratorio es integrar los conocimientos adquiridos en los mdulos 1, 2 y 3.
Mdulo 1, Direccionamiento IP
Mdulo 2, Configuracin de Switches, Enlaces Troncales, VLANs y DHCP
Mdulo 3, Configuracin de routers y encaminamiento dinmico con OSPF.

Actividades
Agregue 6 routers segn la siguiente topologa de interconexin.

Basados en la siguiente tabla, realice la configuracin inicial de los routers.


Router
Router1
Router2
Router3
Router4
Router5
Router6

Nombre
R1
R2
R3
R4
R5
R6

IP de Loopback
10.0.0.1/32
10.0.0.2/32
10.0.0.3/32
10.0.0.4/32
10.0.0.5/32
10.0.0.6/32

Contraseas
Consola
consola
VTY
vty123
Enable
Redes1

1) Realice la configuracin bsica de cada router


Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#line console 0
R1(config-line)#password consola
R1(config-line)#login
R1(config-line)#
R1(config-line)#line vty 0 15
R1(config-line)#password vty123
R1(config-line)#login
R1(config-line)#exit
R1(config)# enable secret Redes1
R1(config)#
R1(config)#interface loopback 0
R1(config-if)#ip address 10.0.0.1 255.255.255.255
R1(config-if)#end
R1#

Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#line console 0
R2(config-line)#password consola
R2(config-line)#login
R2(config-line)#exit
R2(config)#line vty 0 15
R2(config-line)#password vty123
R2(config-line)#login
R2(config-line)#exit
R2(config)#enable secret Redes1
R2(config)#
R2(config)#interface loopback 0
R2(config-if)#ip address 10.0.0.2 255.255.255.255
R2(config-if)#end
R2#

Router>enable
Router#configure terminal
Router(config)#hostname R3
R3(config)#line console 0
R3(config-line)#password consola
R3(config-line)#login
R3(config-line)#exit
R3(config)#line vty 0 15
R3(config-line)#password vty123
R3(config-line)#login
R3(config-line)#exit
R3(config)#enable secret Redes1
R3(config)#
R3(config)#interface loopback 0
R3(config-if)#ip address 10.0.0.3 255.255.255.255
R3(config-if)#end
R3#
Router>enable
Router#configure terminal
Router(config)#hostname R4
R4(config)#line console 0
R4(config-line)#password consola
R4(config-line)#login
R4(config-line)#exit
R4(config)#line vty 0 15
R4(config-line)#password vty123
R4(config-line)#login
R4(config-line)#exit
R4(config)#enable secret Redes1
R4(config)#
R4(config)#interface loopback 0

R4(config-if)#ip address 10.0.0.4 255.255.255.255


R4(config-if)#end
R4#
Router>enable
Router#configure terminal
Router(config)#hostname R5
R5(config)#line console 0
R5(config-line)#password consola
R5(config-line)#login
R5(config-line)#exit
R5(config)#line vty 0 15
R5(config-line)#password vty123
R5(config-line)#login
R5(config-line)#exit
R5(config)#enable secret Redes1
R5(config)#
R5(config)#interface loopback 0
R5(config-if)#ip address 10.0.0.5 255.255.255.255
R5(config-if)#end
R5#
Router>enable
Router#configure terminal
Router(config)#hostname R6
R6(config)#line console 0
R6(config-line)#password consola
R6(config-line)#login
R6(config-line)#exit
R6(config)#line vty 0 15
R6(config-line)#password vty123
R6(config-line)#login
R6(config-line)#exit
R6(config)#enable secret Redes1
R6(config)#
R6(config)#interface loopback 0
R6(config-if)#ip address 10.0.0.6 255.255.255.255
R6(config-if)#end
R6#

2) Realice la configuracin de las interfaces de cada router segn la informacin de la siguiente tabla.
Router
R1
R1
R2
R2
R3
R4
R4
R5

Interface
gi1/0
gi2/0
gi3/0
gi4/0
gi1/0
gi3/0
gi2/0
gi1/0

Descripcin
InterfaceR1aR2
InterfaceR1aR3
InterfaceR2aR3
InterfaceR2aR6
InterfaceR3aR4
InterfaceR4aR5
InterfaceR4aR6
InterfaceR5aR6

IP
10.1.2.1
10.1.3.1
10.2.3.1
10.2.6.1
10.3.4.1
10.4.5.1
10.4.6.1
10.5.6.1

Mscara
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252

Configuracin de interfaces por router


R1
3

Router
R2
R3
R3
R6
R4
R5
R6
R6

Interface
gi1/0
gi2/0
gi3/0
gi4/0
gi1/0
gi3/0
gi2/0
gi1/0

Descripcin
InterfaceR2aR1
InterfaceR3aR1
InterfaceR3aR2
InterfaceR6aR2
InterfaceR4aR3
InterfaceR5aR4
InterfaceR6aR4
InterfaceR6aR5

IP
10.1.2.2
10.1.3.2
10.2.3.2
10.2.6.2
10.3.4.2
10.4.5.2
10.4.6.2
10.5.6.2

Mscara
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252
255.255.255.252

configure terminal
interface gi1/0
ip address 10.1.2.1 255.255.255.252
description InterfaceR1aR2
no shutdown
exit
interface gi2/0
ip address 10.1.3.1 255.255.255.252
description InterfaceR1aR3
no shutdown
end

R2
configure terminal
interface gi1/0
ip address 10.1.2.2 255.255.255.252
description InterfaceR2aR1
no shutdown
exit
interface gi3/0
ip address 10.2.3.1 255.255.255.252
description InterfaceR2aR3
no shutdown
exit
interface gi4/0
ip address 10.2.6.1 255.255.255.252
description InterfaceR2aR6
no shutdown
end

R3
configure terminal
interface gi1/0
ip address 10.3.4.1 255.255.255.252
description InterfaceR3aR4
no shutdown
exit
interface gi2/0
ip address 10.1.3.2 255.255.255.252
description InterfaceR3aR1
no shutdown
exit
interface gi3/0
ip address 10.2.3.2 255.255.255.252
description InterfaceR3aR2
no shutdown
end

R4
configure terminal
interface gi1/0
ip address 10.3.4.2 255.255.255.252
description InterfaceR4aR3
no shutdown
exit
interface gi2/0
ip address 10.4.6.1 255.255.255.252
description InterfaceR4aR6
no shutdown
exit
interface gi3/0
ip address 10.4.5.1 255.255.255.252
description InterfaceR4aR5
no shutdown
end

R5
configure terminal
interface gi1/0
ip address 10.5.6.1 255.255.255.252
description InterfaceR5aR6
no shutdown
exit
interface gi3/0

ip address 10.4.5.2 255.255.255.252


description InterfaceR5aR4
no shutdown
end

R6
configure terminal
interface gi1/0
ip address 10.5.6.2 255.255.255.252
description InterfaceR6aR5
no shutdown
exit
interface gi2/0
ip address 10.4.6.2 255.255.255.252
description InterfaceR6aR4
no shutdown
exit
interface gi4/0
ip address 10.2.6.2 255.255.255.252
description InterfaceR6aR2
no shutdown
end

Verificamos ahora cada Router


R1#show ip int brief
Interface
FastEthernet0/0
FastEthernet0/1
GigabitEthernet1/0
GigabitEthernet2/0
GigabitEthernet3/0
GigabitEthernet4/0
SSLVPN-VIF0
Loopback0

IP-Address
unassigned
unassigned
10.1.2.1
10.1.3.1
unassigned
unassigned
unassigned
10.0.0.1

OK?
YES
YES
YES
YES
YES
YES
NO
YES

Method
unset
unset
manual
manual
unset
unset
unset
manual

Status
administratively
administratively
up
up
administratively
administratively
up
up

R1#ping 10.1.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.2.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/17/24 ms
R1#ping 10.1.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.3.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/16/24 ms
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

Protocol
down down
down down
up
up
down down
down down
up
up

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area


N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

C
C
C
R1#

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks


10.1.3.0/30 is directly connected, GigabitEthernet2/0
10.1.2.0/30 is directly connected, GigabitEthernet1/0
10.0.0.1/32 is directly connected, Loopback0

R2#show ip interface brief


Interface
IP-Address
OK? Method Status
Protocol
FastEthernet0/0
unassigned
YES unset administratively down down
FastEthernet0/1
unassigned
YES unset administratively down down
GigabitEthernet1/0
10.1.2.2
YES manual up
up
GigabitEthernet2/0
unassigned
YES unset administratively down down
GigabitEthernet3/0
10.2.3.1
YES manual up
up
GigabitEthernet4/0
10.2.6.1
YES manual up
up
SSLVPN-VIF0
unassigned
NO unset up
up
Loopback0
10.0.0.2
YES manual up
up
R2#
R2#ping 10.1.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/18/48 ms
R2#ping 10.2.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/18/48 ms
R2#ping 10.2.6.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.6.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/19/20 ms
R2#
R2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

C
C
C
C

10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks


10.0.0.2/32 is directly connected, Loopback0
10.1.2.0/30 is directly connected, GigabitEthernet1/0
10.2.3.0/30 is directly connected, GigabitEthernet3/0
10.2.6.0/30 is directly connected, GigabitEthernet4/0

R3#show ip interface brief


Interface
IP-Address
FastEthernet0/0
unassigned
FastEthernet0/1
unassigned
GigabitEthernet1/0
10.3.4.1
GigabitEthernet2/0
10.1.3.2
GigabitEthernet3/0
10.2.3.2
GigabitEthernet4/0
unassigned
SSLVPN-VIF0
unassigned
Loopback0
10.0.0.3

OK?
YES
YES
YES
YES
YES
YES
NO
YES

Method
unset
unset
manual
manual
manual
unset
unset
manual

Status
Protocol
administratively down down
administratively down down
up
up
up
up
up
up
administratively down down
up
up
up
up

R3#ping 10.3.4.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.3.4.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/9/12 ms
R3#ping 10.1.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/13/24 ms
R3#ping 10.2.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/14/28 ms

R3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

C
C
C
C

10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks


10.1.3.0/30 is directly connected, GigabitEthernet2/0
10.0.0.3/32 is directly connected, Loopback0
10.2.3.0/30 is directly connected, GigabitEthernet3/0
10.3.4.0/30 is directly connected, GigabitEthernet1/0

R4#show ip int brief


Interface
FastEthernet0/0
FastEthernet0/1
GigabitEthernet1/0
GigabitEthernet2/0
GigabitEthernet3/0
GigabitEthernet4/0
SSLVPN-VIF0
Loopback0

IP-Address
unassigned
unassigned
10.3.4.2
10.4.6.1
10.4.5.1
unassigned
unassigned
10.0.0.4

OK?
YES
YES
YES
YES
YES
YES
NO
YES

Method
unset
unset
manual
manual
manual
unset
unset
manual

Status
Protocol
administratively down down
administratively down down
up
up
up
up
up
up
administratively down down
up
up
up
up

R4#ping 10.3.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.3.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/10/12 ms
R4#ping 10.4.6.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.4.6.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/9/12 ms
R4#ping 10.4.5.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.4.5.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/11/12 ms
R4#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

C
C
C
C

10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks


10.4.6.0/30 is directly connected, GigabitEthernet2/0
10.4.5.0/30 is directly connected, GigabitEthernet3/0
10.3.4.0/30 is directly connected, GigabitEthernet1/0
10.0.0.4/32 is directly connected, Loopback0

R5#show ip interface brief


Interface
IP-Address
FastEthernet0/0
unassigned
FastEthernet0/1
unassigned
GigabitEthernet1/0
10.5.6.1
GigabitEthernet2/0
unassigned
GigabitEthernet3/0
10.4.5.2
GigabitEthernet4/0
unassigned
SSLVPN-VIF0
unassigned
Loopback0
10.0.0.5

OK?
YES
YES
YES
YES
YES
YES
NO
YES

Method
unset
unset
manual
unset
manual
unset
unset
manual

Status
administratively
administratively
up
administratively
up
administratively
up
up

R5#ping 10.5.6.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.5.6.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/11/12 ms
R5#ping 10.4.5.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.4.5.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/15/36 ms
R5#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2

Protocol
down down
down down
up
down down
up
down down
up
up

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2


ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

C
C
C

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks


10.5.6.0/30 is directly connected, GigabitEthernet1/0
10.4.5.0/30 is directly connected, GigabitEthernet3/0
10.0.0.5/32 is directly connected, Loopback0

R6#show ip interface brief


Interface
IP-Address
FastEthernet0/0
unassigned
FastEthernet0/1
unassigned
GigabitEthernet1/0
10.5.6.2
GigabitEthernet2/0
10.4.6.2
GigabitEthernet3/0
unassigned
GigabitEthernet4/0
10.2.6.2
SSLVPN-VIF0
unassigned
Loopback0
10.0.0.6

OK?
YES
YES
YES
YES
YES
YES
NO
YES

Method
unset
unset
manual
manual
unset
manual
unset
manual

Status
Protocol
administratively down down
administratively down down
up
up
up
up
administratively down down
up
up
up
up
up
up

R6#ping 10.5.6.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.5.6.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/9/12 ms
R6#ping 10.4.6.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.4.6.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/15/36 ms
R6#ping 10.2.6.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.6.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/22/36 ms
R6#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

C
C
C
C

10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks


10.4.6.0/30 is directly connected, GigabitEthernet2/0
10.5.6.0/30 is directly connected, GigabitEthernet1/0
10.0.0.6/32 is directly connected, Loopback0
10.2.6.0/30 is directly connected, GigabitEthernet4/0

Realice la configuracin de los servidores DHCP en los routers correspondientes.

Pool
LAN50
LAN30
LAN20

Red
192.168.50.0
192.168.30.0
192.168.20.0

DHCP Server
Mscara
Default-router
255.255.255.0 192.168.50.1
255.255.255.0 192.168.30.1
255.255.255.0 192.168.20.1

IPs Excluidas
192.168.50.1 a 10
192.168.30.1 a 10
192.168.20.1 a 10

Configurar las PCs para que obtengan direccin va DHCP.


Verificar conectividades.
1) Desde las PCs a sus default-gateway correspondiente.
2) Desde el R1 al router R2 (ping 10.1.2.2)

3) Desde el R2 a los routers R3 (ping 10.2.3.2) y R4 (ping 10.2.4.2)


4) Desde el R5 a los routers R3 (ping 10.3.5.2) y R4 (ping 10.4.5.2)

Habilitar encaminamiento dinmico, mediante la utilizacin de RIP.


Ejemplo de configuracin
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.1.2.0/30 is subnetted, 1 subnets
C
10.1.2.0 is directly connected, GigabitEthernet1/0
C
192.168.50.0/24 is directly connected, GigabitEthernet0/0
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router rip
R1(config-router)#network 10.1.2.0
R1(config-router)#network 192.168.50.0
R1(config-router)#version 2
R1(config-router)#end
R1#

Se recomienda ir configurando RIP de a un router a la vez y verificando si los vecinos aprenden las
rutas.
R1#show ip route
R1#show ip rip database

Verificar la conectividad entre las PCs de las distintas redes.


Una vez finalizada la configuracin de RIP, las PCs de las distintas redes deberan de verse entre si.
Si desde una PC particular no responde el ping a otra/s PC/s, verifique:
o
o
o
o
o
o

las tablas de encaminamiento (show ip route).


la configuracin de DHCP.
la configuracin de las IPs en las interfaces de los deaful-routers.
La configuracin de RIP
Las direcciones IPs obtenidas por las PCs via DHCP.
Las conexiones punto a punto entre los routers utilizando ping.

Agregado de redes de Area Local.

Redes de rea Local conectadas al router R1


VLAN 10
VLAN 20
VLAN 30

192.161.10.0/24
192.161.20.0/24
192.161.30.0/24

Redes de rea Local conectadas al router R2


VLAN 10
VLAN 20
VLAN 30

192.162.10.0/24
192.162.20.0/24
192.162.30.0/24

Redes de rea Local conectadas al router R6


VLAN 10
VLAN 20
VLAN 30

192.166.10.0/24
192.166.20.0/24
192.166.30.0/24

Configuracin realizada en el router R1 para agregar las Redes de rea Local.


Lo primero que debemos haces es configurar las interfaces lgicas (subinterfaces) que corresponden a cada VLAN.
configure terminal
interface g0/0.10
description "Interface conectada a VLAN 10"
encapsulation dot1q 10
ip address 192.161.10.1 255.255.255.0
configure terminal
interface g0/0.20
description "Interface conectada a VLAN 20"
encapsulation dot1q 20
ip address 192.161.20.1 255.255.255.0
configure terminal
interface g0/0.20
description "Interface conectada a VLAN 30"
encapsulation dot1q 20
ip address 192.161.20.1 255.255.255.0

Ahora debemos realizar la configuracin de 1 servidor DHCP para cada una de las VLANs. Para esto primero excluiremos
los rangos de direcciones IP que deseamos reservar para asignar en forma esttica.
ip dhcp excluded-address 192.161.10.1 192.168.10.10
ip dhcp excluded-address 192.161.20.1 192.168.20.10
ip dhcp excluded-address 192.161.30.1 192.168.30.10
Ahora configuramos los pools de direcciones IPs para cada VLAN.
ip dhcp pool VLAN10_R1
network 192.161.10.0 255.255.255.0
default-router 192.161.10.1
exit

ip dhcp pool VLAN20_R1


network 192.161.20.0 255.255.255.0
default-router 192.161.20.1
exit
ip dhcp pool VLAN30_R1
network 192.161.30.0 255.255.255.0
default-router 192.161.30.1
exit

Configuracin en el switch SW_R1 para agregar las Redes de rea Local.


1) Configuramos el enlace que conecta el switch con el router como troncal.
configure terminal
hostname SW_R1
interface gi1/1
switchport mode trunk
exit
2) Creamos las tres vlans y les asignamos nombres.
vlan 10
name Administracin
exit
vlan 20
name Soporte IT
exit
vlan 30
name Ventas
exit
3) Asignamos puertos a cada vlan.
interface range fa0/1 5
switchport access vlan 20
exit
interface range fa0/6 10
switchport access vlan 20
exit
interface range fa0/11 15
switchport access vlan 30

Finalmente en el Router R1 publicamos las nuevas redes.


En el router R1 publicamos las redes conectadas a las VLANs para que las mismas sean accesibles desde cualquier otro
equipo de la red.
R1#show ip route connected
C 10.0.0.1/32 is directly connected, Loopback1
C 10.1.1.0/30 is directly connected, GigabitEthernet2/0
C 10.1.1.4/30 is directly connected, GigabitEthernet1/0
C 192.161.10.0/24 is directly connected, GigabitEthernet0/0.10
1

C 192.161.20.0/24 is directly connected, GigabitEthernet0/0.20


C 192.161.30.0/24 is directly connected, GigabitEthernet0/0.30

Ahora agregamos en OSPF las 3 redes correspondientes a las VLANs.


configure terminal
router ospf 100
network 192.161.10.0 0.0.0.255 area 0
network 192.161.20.0 0.0.0.255 area 0
network 192.161.30.0 0.0.0.255 area 0

Vous aimerez peut-être aussi