0% found this document useful (0 votes)
35 views7 pages

Comandos Switches

comandos para switches
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views7 pages

Comandos Switches

comandos para switches
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

En el siguiente ejemplo vamos a configurar la vlan a la que pertence una interface

0/3

1 #show configuration ( MOSTRAR CONFIGURACION )


2 #config terminal ( HABILITAR CONFIGURACION )
3 (config)#interface FastEthernet0/3 ( SELECCIONAMOS INERFACE 3 )
4 (config-if)#switchport access vlan 8 ( LE INDICAMOS LA VLAN )
5 (config-if)#switchport mode access #spanning-tree portfast
( exit )
6 #copy running-config startup-config ( GUARDAMOS CONFIGURACION )

modo configuración de interfaz

Router#configure terminal
Router(config)#interface [tipo] [módulo/interfaz.subinterfaz]
Router(config)#interface fastethernet 0/0.1

-----------------------------------------------------------------------------------
----------

BPO-PatioBonito-SW3#show running-config
BPO-PatioBonito-SW3#show running-config
Building configuration...

Current configuration : 7779 bytes


!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname BPO-PatioBonito-SW3
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$KgYc$20LYXAoQh45wHyj.MzLnR.
!

username soporte privilege 15 secret 5 $1$NAne$j.stn71aHxAW3wLmkgP0/.


!
!
no aaa new-model
clock timezone COL -5
!
!
ip domain-name bpo.com
!
!
crypto pki trustpoint TP-self-signed-4173316224
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-4173316224
revocation-check none
rsakeypair TP-self-signed-4173316224
!
!
crypto pki certificate chain TP-self-signed-4173316224
certificate self-signed 01
30820253 308201BC A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 34313733 33313632 3234301E 170D3933 30333031 30303031
34305A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D34 31373333
31363232 3430819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100DC56 8F8BADBB 06681BF6 15A8C201 C0560F79 6682B96E F39CEDC2 DF05D312
82644861 D5F96564 E45E5907 765D0F4D 825CB049 A5A725D2 0DD6093B 4C12E171
6308B658 1E3A7E4A D6A69F23 15D2F965 09FB1239 1C667C06 6B10DDC8 CE64AD7B
5F5BD083 ED0A37C6 03D02E10 CE0AC64E 79220FAB 8B0B9A97 1AF7FAED DF96C0BA
4A970203 010001A3 7B307930 0F060355 1D130101 FF040530 030101FF 30260603
551D1104 1F301D82 1B42504F 2D506174 696F426F 6E69746F 2D535733 2E62706F
2E636F6D 301F0603 551D2304 18301680 1484F1D3 B3D03C15 6991AA86 D7BCE0CD
8120D0D0 E1301D06 03551D0E 04160414 84F1D3B3 D03C1569 91AA86D7 BCE0CD81
20D0D0E1 300D0609 2A864886 F70D0101 04050003 818100B7 AB5675EE 433452D2
EACF4975 D9FD6924 63E5F40D 36283B48 8CBCD801 A6A5C33D 5F660ACB CB3C074B
5BE4E622 BFFB9F38 6D5A9F2D 3AB64ACF 8C694AD2 F96C088A 7A854AF5 0B755757
91F342F1 D594825B 99F2C3F5 7D33169C B47E264A CED03DCB 7E1A3473 C72C911D
584143D3 68688C80 41404734 5E0947BB A8EE92B0 0EF054
quit
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
ip ssh version 2
!
interface FastEthernet0
no ip address
!
interface GigabitEthernet0/1
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/2
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/3
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/4
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/5
switchport trunk native vlan 10
switchport mode trunk
spanning-tree portfast
!
interface GigabitEthernet0/6
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/7
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/8
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/9
switchport trunk native vlan 10
switchport mode trunk
spanning-tree portfast
!
interface GigabitEthernet0/10
switchport trunk native vlan 10
switchport mode trunk
spanning-tree portfast
!
interface GigabitEthernet0/11
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/12
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/13
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/14
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/15
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/16
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/17
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/18
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/19
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/20
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/21
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/22
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/23
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/24
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/25
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/26
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/27
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/28
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/29
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/30
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/31
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/32
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/33
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/34
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/35
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/36
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/37
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/38
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/39
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/40
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/41
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/42
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/43
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/44
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/45
switchport trunk native vlan 10
switchport mode trunk
spanning-tree portfast
!
interface GigabitEthernet0/46
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/47
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/48
description MIKRO
switchport trunk native vlan 10
switchport mode trunk
spanning-tree portfast
!
interface GigabitEthernet0/49
!
interface GigabitEthernet0/50
!
interface Vlan1
no ip address
!
interface Vlan10
description USUARIOS_BPO
ip address 192.168.84.5 255.255.255.0
!
ip default-gateway 192.168.84.1
ip http server
ip http secure-server
!
line con 0
login local
line vty 0 4
login local
transport input ssh
line vty 5 15
login
!
end

BPO-PatioBonito-SW3#

------------------------------------------

interface GigabitEthernet0/48
description MIKRO
switchport trunk native vlan 10
switchport mode trunk

BPO-PatioBonito-SW3#confi
BPO-PatioBonito-SW3#configure ter
BPO-PatioBonito-SW3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
BPO-PatioBonito-SW3(config)#inter
BPO-PatioBonito-SW3(config)#interface gi
BPO-PatioBonito-SW3(config)#interface gigabitEthernet 0/44
BPO-PatioBonito-SW3(config-if)#wi
BPO-PatioBonito-SW3(config-if)#swi
BPO-PatioBonito-SW3(config-if)#switchport ac
BPO-PatioBonito-SW3(config-if)#switchport access vl
BPO-PatioBonito-SW3(config-if)#switchport access vlan

-------------------------------------------------

BPO-PatioBonito-SW3#cop
BPO-PatioBonito-SW3#copy r
BPO-PatioBonito-SW3#copy ru
BPO-PatioBonito-SW3#copy running-config st
BPO-PatioBonito-SW3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
0 bytes copied in 1.206 secs (0 bytes/sec)
BPO-PatioBonito-SW3#
---------------------------------------------------

interface GigabitEthernet0/19

You might also like