Sunteți pe pagina 1din 3

1.

COMANDOS BASICOS
Switch(config)#hostname S1
S1(config)#enable secret class
S1(config)#no ip domain-lookup
S1(config)#ip default-gateway 172.17.99.1
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

2. DESHABILITAR LOS PUERTOS EN LOS SWITCH


S1(config)#interface range fa0/1-24
S1(config-if-range)#shutdown
S1(config-if-range)#interface range gi0/1-2
S1(config-if-range)#shutdown

3. HABILITAR LOS PUERTOS DE USUARIO


S2(config)#interface range fa0/6, fa0/11, fa0/18
S2(config-if-range)#switchport mode Access
S2(config-if-range)#no shutdown

4. CONFIGURAR VTP
Paso 1. Habilitar los puertos del usuario en S2 y S3.

S2(config)#interface fa0/6
S2(config-if)#switchport mode access
S2(config-if)#no shutdown
S2(config-if)#interface fa0/11
S2(config-if)#switchport mode access
S2(config-if)#no shutdown
S2(config-if)#interface fa0/18
S2(config-if)#switchport mode access
S2(config-if)#no shutdown

Paso 3. Configurar el modo de funcionamiento, el nombre de dominio y la


contraseña de VTP en los tres switches. (server,client,transparent)
S1(config)#vtp mode server
S1(config)#vtp domain Lab4
S1(config)#vtp password cisco
S1(config)#end

5. CONFIGURAR ENLACES TRONCALES Y LA VLAN NATIVA


S1(config)#interface range fa0/1-4
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk native vlan 99
S1(config-if-range)#no shutdown
S1(config-if-range)#end
6. CONFIGURAR VLAN
EN EL SERVIDOR
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)#exit
S1(config)#vlan 20
S1(config-vlan)#name students
S1(config-vlan)#exit
S1(config)#vlan 30
S1(config-vlan)#name guest
S1(config-vlan)#exit

ASIGNAR PUERTOS DE SWICTH A LAS VLAN


S2(config)#interface range fa0/5-10
S2(config-if-range)#switchport access vlan 30
S2(config-if-range)#interface range fa0/11-17
S2(config-if-range)#switchport access vlan 10
S2(config-if-range)#interface range fa0/18-24
S2(config-if-range)#switchport access vlan 20
S2(config-if-range)#end

7. CONFIGURAR VLAN DE ADMINITRACION/DIRECCION DE LA INTERFAZ DE


ADMINISTRACION EN LOS SWTICHES

S1(config)#interface vlan99
S1(config-if)#ip address 172.17.99.11 255.255.255.0
S1(config-if)#no shutdown

8. CONFIGURAR STP
SELECCIÓN DE LA RAIZ
S1(config)#spanning-tree vlan 1 priority 4096
S1(config)#spanning-tree vlan 10 priority 4096
S1(config)#spanning-tree vlan 20 priority 4096
S1(config)#spanning-tree vlan 30 priority 4096
S1(config)#exit

S1(config)#spanning-tree vlan 1,10,20,30 root primary

9. CONFIGURAR LA INTERFAZ DE ENLACES TRONCALES EN EL ROUTER


R1(config)#interface fastethernet 0/1
R1(config-if)#no shutdown
R1(config-if)#interface fastethernet 0/1.1
R1(config-subif)#encapsulation dot1q 1
R1(config-subif)#ip address 172.17.1.1 255.255.255.0
R1(config-if)#interface fastethernet 0/1.10
R1(config-subif)#encapsulation dot1q 10
R1(config-subif)#ip address 172.17.10.1 255.255.255.0
R1(config-if)#interface fastethernet 0/1.20
R1(config-subif)#encapsulation dot1q 20
R1(config-subif)#ip address 172.17.20.1 255.255.255.0
R1(config-if)#interface fastethernet 0/1.30
R1(config-subif)#encapsulation dot1q 30
R1(config-subif)#ip address 172.17.30.1 255.255.255.0
R1(config-if)#interface fastethernet 0/1.99
R1(config-subif)#encapsulation dot1q 99 native
R1(config-subif)#ip address 172.17.99.1 255.255.255.0

10. CONFIGURAR LA INTERFAZ DE SERVIDOR LAN EN R1


R1(config)# interface FastEthernet0/0
R1(config-if)#ip address 172.17.50.1 255.255.255.0
R1(config-if)#description server interface
R1(config-if)#no shutdown
R1(config-if)#end

11. CONFIGURAR DHCP


R1(config)# Ip dhcp excluded-address 192.168.10.1 192.168.10.9
R1(config)# Ip dhcp excluded-address 192.168.10.254
R1(config)# Ip dhcp pool RED1
R1(dhcp-config)# network 192.168.10.0 255.255.255.0
R1(dhcp-config)# default-router 192.168.10.1
R1(dhcp-config)# dns-server 8.8.8.8

R1# sh ip dhcp binding


R1# sh ip dhcp server stat
R1# s hip dhcp pool

Para una interfaz ethernet


R1(config)# ip address dhcp
R1(config)# int fa0/0
R1(config)# no shut

S-ar putea să vă placă și