0% found this document useful (0 votes)
96 views

Router RA

This document contains configuration examples for routers, switches, and endpoints in a network. The routers and switches are configured with VLANs, interfaces, routing protocols, trunking, and basic security. Switches are also configured for spanning tree protocol. Endpoints such as PCs, servers and a DHCP server are configured with IP addresses, subnets, and default gateways.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views

Router RA

This document contains configuration examples for routers, switches, and endpoints in a network. The routers and switches are configured with VLANs, interfaces, routing protocols, trunking, and basic security. Switches are also configured for spanning tree protocol. Endpoints such as PCs, servers and a DHCP server are configured with IP addresses, subnets, and default gateways.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 13

--------------------------------------------Router RA

--------------------------------------------enable
configure terminal
hostname RA
interface fastethernet 0/0.10
encapsulation dot1q 10
ip addres 172.31.0.129 255.255.255.192
exit
interface fastethernet 0/0.20
encapsulation dot1q 20
ip addres 172.31.0.1 255.255.255.128
exit
interface fastethernet 0/0.200
encapsulation dot1q 200
ip addres 172.31.0.193 255.255.255.240
exit
interface fastethernet 0/0.99
encapsulation dot1q 99 native
ip addres 172.31.0.209 255.255.255.248
exit
interface fastethernet 0/0
no shut
exit
interface serial 0/0/0
ip address 178.52.0.14 255.255.255.252
clock rate 64000

no shut
exit
router rip
version 2
network 178.52.0.12
network 172.31.0.0
network 172.31.0.128
network 172.31.0.192
network 172.31.0.208
no auto-summary
end
wr

--------------------------------------------rOUTER RB
--------------------------------------------enable
configure terminal
hostname RB
interface fastethernet 0/1.40
encapsulation dot1q 40
ip addres 10.0.0.1 255.255.255.248
exit
interface fastethernet 0/1
no shut
exit
interface serial 0/0/0
ip address 178.52.0.13 255.255.255.252

no shut
exit
router rip
version 2
network 178.52.0.12
network 10.0.0.0
no auto-summary
end
wr

--------------------------------------------SD1
--------------------------------------------enable
conf t
hostname SD1
interface vlan 99
ip address 172.31.0.210 255.255.255.248
no shut
interface range fast 0/1, gigabite 1/1, gigabite 1/2
switchport mode trunk
switchport trunk native vlan 99
end
wr

--------------------------------------------SD2
---------------------------------------------

enable
conf t
hostname SD2
interface vlan 99
ip address 172.31.0.211 255.255.255.248
no shut
interface range fast 0/3, fast 0/4,gigabite 1/1, gigabite 1/2
switchport mode trunk
switchport trunk native vlan 99
end
wr

--------------------------------------------SD3
--------------------------------------------enable
conf t
hostname SD3
interface range fast 0/4, gigabite 1/1, gigabite 1/2
switchport mode trunk
end
wr

--------------------------------------------SD4
---------------------------------------------

enable
conf t
hostname SD4
interface range fast 0/1, gigabite 1/1, gigabite 1/2
switchport mode trunk
end
wr

--------------------------------------------SA1
--------------------------------------------enable
conf t
hostname SA1
enable secret cisco
line console 0
password cisco
login
exit
line vty 0 15
password cisco
exit
banner motd #Acceso restringido#
vlan 10
name administracion
exit

vlan 20
name ventas
exit
vlan 200
name voz
exit
vlan 99
name soporte
exit
interface vlan 99
ip address 172.31.0.212 255.255.255.248
no shut
interface fast 0/3
switchport mode trunk
switchport trunk native vlan 99
exit
interface fast 0/1
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security max 3
switchport port-security mac-add 000A.F366.D863
switchport port-security violation protect
exit
interface fast 0/4
switchport mode access
switchport access vlan 10
switchport port-security

switchport port-security max 3


switchport port-security mac-add 0060.4749.A423
switchport port-security violation protect
exit
interface fast 0/2
switchport mode access
switchport access vlan 99
switchport port-security
switchport port-security max 3
switchport port-security mac-add 0040.0B76.A626
switchport port-security violation restric
exit
end
wr

--------------------------------------------SA2
--------------------------------------------enable
conf t
hostname SA2
vlan 10
name administracion
exit
vlan 20
name ventas
exit
vlan 200

name voz
exit
vlan 99
name soporte
exit
interface vlan 99
ip address 172.31.0.213 255.255.255.248
no shut
exit
interface fast 0/4
switchport mode trunk
switchport trunk native vlan 99
exit
interface fast 0/1
switchport mode access
switchport access vlan 20
switchport port-security
switchport port-security max 2
switchport port-security mac-add sticky
switchport port-security violation shut
exit
interface fast 0/24
mls qos trust cos
switchport voice vlan 200
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security max 3

switchport port-security mac-a 0001.968B.5D85


switchport port-security violation protect
end
wr

--------------------------------------------SA3
--------------------------------------------enable
conf t
hostname SA3
vlan 40
name server
exit
interface fast 0/4
switchport mode trunk
exit
interface range fast 0/1 - 2
switchport mode access
switchport access vlan 40
end
wr

--------------------------------------------DHCP

--------------------------------------------IP 172.31.0.130
MASK 255.255.255.192
GW 172.31.0.129
DNS 10.0.0.3

--------------------------------------------MAIL
--------------------------------------------IP 10.0.0.2
MASK 255.255.255.248
GW 10.0.0.1
DNS 10.0.0.3

--------------------------------------------DNS
--------------------------------------------IP 172.31.0.130
MASK 255.255.255.248
GW 10.0.0.1
DNS 10.0.0.3

--------------------------------------------PC Soporte
--------------------------------------------IP 172.31.0.214
MASK 255.255.255.248

GW 172.31.0.209
DNS 10.0.0.3

--------------------------------------------PC Ventas
--------------------------------------------IP 172.31.0.126
MASK 255.255.255.128
GW 172.31.0.1
DNS 10.0.0.3

*******************************************
--+Configuracin bsica del VTP
--+Configurar VTP en los switches
--+Configurar el modo operativo, el nombre de dominio y la contrasea de VTP en los
tres switches.
S1(config)#vtp mode serverModo dispositivo ya es SERVIDOR VTP.
S1(config)#vtp domain Lab4Cambiar el nombre del dominio VTP de NULL a Lab4
S1(config)#vtp password ciscoConfigurar la contrasea de la base de datos VLAN del
dispositivo en cisco
S1(config)#endS2(config)#vtp mode clientConfigurar el dispositivo en modo CLIENTE
VTP

S2(config)#vtp domain Lab4Cambiar el nombre del dominio VTP de NULL a Lab4


S2(config)#vtp password ciscoConfigurar la contrasea de la base de datos VLAN del
dispositivo en cisco
S2(config)#endS3(config)#vtp mode transparentConfigurar el dispositivo en modo
TRANPARENT VTP.
S3(config)#vtp domain Lab4Cambiar el nombre del dominio VTP de NULL a Lab4
S3(config)#vtp password ciscoConfigurar la contrasea de la base de datos VLAN del
dispositivo en cisco
S3(config)#end

--+Configurar las VLAN en el servidor VTP.


S1(config)#vlan 99
S1(config-vlan)#name management
S1(config-vlan)#exit
S1(config)#vlan 10
S1(config-vlan)#name faculty/staff
S1(config-vlan)#exitS1(config)#vlan 20
S1(config-vlan)#name students
S1(config-vlan)#exit
S1(config)#vlan 30
S1(config-vlan)#name guest
S1(config-vlan)#exi
--+Configurar la depuracin VTP en los switchesvtp pruning
--*Protocolo spanning tree bsico
Switch>enable
Switch#configure terminal
Ingrese los comandos de configuracin, uno por lnea. Finalice con CNTL/Z.
Switch(config)# hostname S1
S1(config)#enable secret class

S1(config)#no ip domain-lookup
S1(config)#line console 0
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#end

--*Configurar Spanning Tree-*Examinar la configuracin predeterminada de 802.1D STP.


S1#show spanning-tree-*Poner los switches en modo spanning tree debug utilizando el comando debug
spanning-tree events
S1#debug spanning-tree events
Spanning Tree event debugging is on
S2#debug spanning-tree eventsSpanning Tree event debugging is on
S3#debug spanning-tree eventsSpanning Tree event debugging is on
--*Cerrar intencionalmente el puerto Fa0/1 en S1.
S1(config)#interface fa0/1S1(config-if)#shutdown
--+*Desafo de laboratorio: protocolo spanning tree

You might also like