Sie sind auf Seite 1von 1

Comandos de Configuración Básica de un Switch Cisco By* Gmo

Switch1> Enable
Switch1# Configure Terminal
Switch1(Config)# Enable Secret Class
Switch1(Config)# Hostname
S1(config)# Exit
S1(config)# no ip domain-lookup
S1(config)# vlan 56
S1(config)# Line console 0
S1(config)# Line vty 0 15
S1(config)# Vtp mode Server
S1(config)# Vtp domain CCNA
S1(config)# Vtp password Cisco
s1(config-Vlan)# Name nombreVlan
s1(config-Line)# Password Cisco
s1(config-Line)# Login
s1(config-Line)# history size 50
S1(config)# service Password-encryption
S1(config)# banner MOTD & Solo Acceso Autorizado &
S1(config)# Interface range Fa0/1 – Fa0/5
S1(config)# Interface vlan 99
S1(config-if)# ip address 192.168.1.253 255.255.255.0
S1(config-if)# ip default gateway 192.168.1.1
S1(config-if)# duplex full/auto
S1(config-if)# speed 100/auto
S1(config-if)# no shutdown
S1(config-if)# shutdown
S1(config-if)# Interface fa (fastethernet) 0/18
S1(config-if)# switchport mode access/ trunk
S1(config-if)# switchport trunk native Vlan 99
S1(config-if)# switchport access vlan 99
S1(config-if)# switchport Port-security
S1(config-if)# switchport Port-security maximum 1
S1(config-if)# switchport Port-security Mac-address sticky
S1(config-if)# switchport Port-security violation shutdown
S1# clock set hh:mm:ss dd MES aaaa
S1# show Running-config
S1# show Startup-config
S1# show version
S1# show flash
S1# show vlan
S1# show vlan id/name 20/Students
S1# show vtp status
S1# show vtp password
S1# show vlan brief
S1# show interface fa 0/18
S1# show Port-security interface fa 0/18
S1# show interface vlan 99
S1# show ip interface Vlan 99
S1(config)# boot system flash: Nombre-del-IOS-Cisco.bin
S1# show Mac-address-table
S1(config)# Mac-address-table static Dire.ccion.MAC Vlan 99 int Fa0/18
S1(config)# No Mac-address-table static Dire.ccion.MAC Vlan 99 int (interface) fa0/18
S1# copy Startup-config tftp:
S1# delete flash: vlan.dat
S1# erase Startup-config
S1# Reload
S1# copy Running-config Startup-config
S1# terninal history
S1# terminal history size 50
S1# clear Mac-address-table dynamic

Das könnte Ihnen auch gefallen