You are on page 1of 6

Formacin Cisco CCNP

Configuracin
1.- Nombre en el prompt de switch
switch# configure termial
switch (config)# hostname Unireg_SW1_L3
2.- Configuracion de usuarios locales en el switch.
username maria secret unireg
username vlopez secret unireg
3. Configuracin de consola
switch# configure termial
switch (config)# line console 0
switch (config-line)# login local
switch (config-line)# stopbits 1
4. Confiruracin SSH
Primero tenemos que ver si la servio de IOS lo soporta
switch# show version
c3560-ipbasek9-mz.122-55.SE10.bin
Esta si la soporta ya que aparece K9
switch (config)# ip domain-name unireg.es porque la cable publica la
genera con el nombre del sistema y el nombre de dominio.
switch (config)# crypto key generate rsa
The name for the keys will be: switch.unireg.es
Choose the size of the key modulus in the range of 360 to 2048 for
your
General Purpose Keys. Choosing a key modulus greater than 512 may
take a few minutes.
How many bits in the modulus [512]: 1024
La clave le damos una longitud mas larga para poder usar la verion 2
de SSH.
switch# ip ssh version 2
4. Configuracin de vty
switch# configure termial
switch (config)# line vty 0 4
switch (config-line)# access-class acceso in

switch (config-line)# login local


switch (config-line)# transport input ssh
switch (config)# line vty 5 15
switch (config-line)# access-class acceso in
switch (config-line)# login local
switch (config-line)# transport input ssh
!
5. Creacion de VLAN de nivel 2
switch# configure termial
switch (config)# vlan 100
switch (config-vlan)# name RRHH
switch (config-vlan)# exit
switch (config)# do show vlan brief

switch (config)#vlan 20-30


switch (config-vlan)#exit
switch (config)# do show vlan brief
6. Creacion de VLAN de nivel 3 interface vlan
switch# configure termial
switch (config)# interface vlan 100
switch (config-if)# ip address 10.100.100.254 255.255.255.0
switch (config-if)# description RRHH
switch (config-if)# no shutdown
switch (config-if)# exit
switch# show ip interface brief | exclude unassigned
Interface
Protocol
Vlan100

IP-Address

OK?

Method

Status

10.100.100.254

YES

NVRAM

7. Configurar servidor VTP


switch (config)# vtp domain unireg
switch (config)# vtp version 2
switch (config)# vtp password cambrils
switch (config)# vtp mode server

8. Configurar client VTP


switch (config)# vtp domain unireg
switch (config)# vtp version 2
switch (config)# vtp password cambrils
switch (config)# vtp mode client
9. Configurar transparent VTP
switch (config)# vtp domain unireg
switch (config)# vtp version 2
switch (config)# vtp mode transparent
10. Configurar un puerto ethernet como nivel 2
switch (config)# configure terminal
switch (config)#interface gigabitEthernet 0/1
switch (config-if)# switchport
11. Configurar un puerto ethernet como nivel 3
switch (config)# configure terminal
switch (config)#interface gigabitEthernet 0/1
switch (config-if)# no switchport
switch (config-if)# do show running-config interface Gi0/1
interface GigabitEthernet0/1
no switchport
no ip address
shutdown
switch (config-if)# ip address 10.100.200.254 255.255.255.224
switch (config-if)# no shutdown
switch (config-if)# description Enlace Internet

12. Configurar un puerto con VLAN


10. Configurar un puerto ethernet como nivel 2
switch (config)# configure terminal

switch (config)#interface gigabitEthernet 0/1


switch (config-if)# switchport
switch (config-if)# switchport mode access
switch (config-if)# switchport access vlan 100
switch (config-if)# switchport voice vlan 20
switch (config-if)# description Rack5-D255
13. Configurar enlaces trunk
Switch1 (config)# configure terminal
Switch1 (config)#interface gigabitEthernet 0/48
Switch1 (config-if)# description Enlace Switch 2
Switch1 (config-if)# switchport
Switch1 (config-if)# switchport trunk encapsulation dot1q
Switch1 (config-if)# switchport mode trunk
Switch2 (config)# configure terminal
Switch2 (config)#interface gigabitEthernet 0/48
Switch2 (config-if)# description Enlace Switch 1
Switch2 (config-if)# switchport
Switch2 (config-if)# switchport trunk encapsulation dot1q
Switch2 (config-if)# switchport mode trunk

Switch1 (config)# sh interfaces trunk


Port
Gi0/48

Mode
on

Encapsulation
802.1q

Status
trunking

Native vlan
1

Switch2 (config)# sh interfaces trunk


Port
Gi0/48

Mode
on

Encapsulation
802.1q

Status
trunking

Native vlan
1

14. Comprobar puerto ethernet de un switch


Switch1 # sh interfaces gigabitEthernet 0/1
GigabitEthernet0/1 is up, line protocol is up (connected)
Hardware is Gigabit Ethernet, address is 001e.bd14.0181 (bia 001e.bd14.0181)

Description: Router_MarcroLAN-DATOS
MTU 9000 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 35/255, rxload 7/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 10/100/1000BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:01, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 4158
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 3031000 bits/sec, 543 packets/sec
5 minute output rate 13876000 bits/sec, 1435 packets/sec
690808562 packets input, 759878593068 bytes, 0 no buffer
Received 3363216 broadcasts (3325961 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 3325961 multicast, 0 pause input
0 input packets with dribble condition detected
3057043618 packets output, 3647846494141 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output

Switch1 # sh interfaces status


Port
Gi0/1
Gi0/2
Gi0/3
Gi0/4
Gi0/5
Gi0/6
Gi0/7
Gi0/8
Gi0/9

Name

Status
connected
connected
connected
connected
notconnect
notconnect
notconnect
notconnect
notconnect

Vlan
5
21
5
21
330
330
330
5
330

Duplex Speed
a-full
a-100
a-full
a-100
a-full
a-100
a-full
a-100
auto auto
auto auto
auto auto
auto
auto
auto auto

Type
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX

Switch1 # sh interfaces status | include connected


Port
Gi0/1
Gi0/2
Gi0/3
Gi0/4

Name

Status
Vlan
connected 5
connected 21
connected 5
connected 21

Duplex Speed
a-full
a-100
a-full
a-100
a-full
a-100
a-full
a-100

Type
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX

Switch1 # sh interfaces status | exclude connected

Port
Gi0/5
Gi0/6
Gi0/7
Gi0/8
Gi0/9

Name

Status
notconnect
notconnect
notconnect
notconnect
notconnect

Vlan
330
330
330
5
330

Duplex Speed
auto auto
auto auto
auto auto
auto
auto
auto auto

Type
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX
10/100/1000BaseTX

You might also like