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

Comandos Cisco

The document contains configurations for a switch and router including: - Configuring basic settings like hostname, passwords, and banners - Creating and naming VLANs 10, 2, 30 for different networks - Assigning switch ports to the appropriate VLANs - Configuring trunk links between the switch and router - Configuring basic settings on the router like hostname, passwords, and banners - Configuring VLAN subinterfaces on the router with IP addresses - Adding VLANs, IP addresses and enabling interfaces on the router - Configuring STP, EtherChannel, and enabling routing on the switch
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)
14 views

Comandos Cisco

The document contains configurations for a switch and router including: - Configuring basic settings like hostname, passwords, and banners - Creating and naming VLANs 10, 2, 30 for different networks - Assigning switch ports to the appropriate VLANs - Configuring trunk links between the switch and router - Configuring basic settings on the router like hostname, passwords, and banners - Configuring VLAN subinterfaces on the router with IP addresses - Adding VLANs, IP addresses and enabling interfaces on the router - Configuring STP, EtherChannel, and enabling routing on the switch
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/ 4

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

CONFIGURACION BASICA SWITCH


Hostname SW-1

no ip domain-lookup

Enable secret cisco

line console 0
password cisco
login
exit

line vty 0 4
password cisco
login
exit

line vty 5 15
password cisco
login
exit

banner motd "acceso restringido a dispositivos"

service password-encryption
---------------------------------------------------------------------------------
CREAR Y NOMBRAR VLAN

vlan 1
name TICS
exit

vlan 30
name REDES
exit

vlan 10
name DESARROLO
exit

vlan 2
name ENTORNOS
exit

ASIGNAR PUERTOS A LA VLAN

interface range fa 0/2-12


switchport mode acces
switchport acces vlan 10
exit

interface range fa0/13-20


switchport mode acces
switchport acces vlan 2
exit
-----------------------------------------------------------------------------
CONFIGURACION ENLACES TRONCALES

interface g0/2
switchport mode trunk
exit

interface g 0/1
switchport mode trunk
exit
---------------------------------------------------------------------------------
CONFIGURACION BASICA ROUTER

hostname R1

no ip domain-lookup

Enable secret cisco

line console 0
password cisco
login
exit

line vty 0 4
password cisco
login
exit

line aux 0
password cisco
login
exit

banner motd "acceso restringido a dispositivos"

service password-encryption
---------------------------------------------------------------------------------

interface g0/0
no shutdown
exit

interface gig 0/0.10


encapsulation dot1q 10
ip address 192.168.2.254 255.255.255.0
no shutdown
exit

interface gig 0/0.30


encapsulation dot1q 30
ip address 172.16.1.254 255.255.255.0
no shutdown
exit

interface gig 0/0.9


encapsulation dot1q 9
ip address 172.16.4.62 255.255.255.192
no shutdown
exit

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

vlan 10
name ADMIN
exit

vlan 20
name TICS
exit

vlan 30
name QUIMICA
exit

_____________________________________

interface vlan 40
ip address 172.16.1.50 255.255.255.192
no shutdown
exit

interface vlan 30
ip address 172.16.0.125 255.255.255.128
no shutdown
exit

interface vlan 20
ip address 172.16.0.135 255.255.255.128
no shutdown
exit
___________________________________________

vlan 10
name UAT
vlan 5
name UTTT

interface vlan 10
ip add 172.16.1.5 255.255.252.0
no shutdown
exit

interface vlan 5
ip add 172.16.4.5 255.255.255.128
no shutdown
exit

______________________________________________

interface gig 1/0/4


switchport mode acces
switchport acces vlan 5
exit
____________________________________________
STP
int fa 0/20
spanning-tree bpduguard enable
spanning-tree portfas
spanning-tree mode rapid-pvst
__________________________________

EtherChannel

interface range fa0/23-24


channel-group 1 mode active
exit

interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan 10,20,1
exit
__________________________________________

SWITCH CAPA 3

interface g1/0/1
switchport mode access
switchport access vlan 10
exit

ip routing -- habilitar el routing

You might also like