You are on page 1of 6

---------VTP--------------

interface f0/1

switchport mode dynamic desirable

vtp domain CCNA

vtp mode server / client

vtp password cisco

show vtp status

show vtp password

vtp mode transparent

vlan 2000

show vlan brief

interface g0/2

switchport mode trunk

show interfaces trunk

interface range g0/1 - 2

switchport trunk native vlan 999

S2(config-if)# interface range f0/1 -8

S2(config-if-range)# switchport mode access

-----------ETHER CHANNEL-------------------

interface range f0/3-4

channel-group 1 mode desirable

no shutdown PAgP
interface port-channel 1
switchport mode trunk
switchport trunk native vlan 99

switchport trunk allowed vlan 1,10,99

show etherchannel summary

show run interface f0/3


show interfaces f0/3 switchport

show interfaces trunk

show spanning-tree

auto-auto no funciona

S1(config)# interface range f0/1-2

S1(config-if-range)# switchport mode trunk

S1(config-if-range)# switchport trunk native vlan 99

S1(config-if-range)# channel-group 2 mode active

S1(config-if-range)# no shutdown LACP

S2(config)# interface range f0/1-2

S2(config-if-range)# switchport mode trunk

S2(config-if-range)# switchport trunk native vlan 99

S2(config-if-range)# channel-group 2 mode passive

S2(config-if-range)# no shutdown

Show etherchannel summary

Pasivo- Pasivo no funciona

Show etherchannel summary

show run | begin interface Port-channel

show interfaces trunk

show interfaces etherchannel


------------------------------ HSRP ----------------------

ip route 0.0.0.0 0.0.0.0 lo1

router rip

default-information originate

R1(config)# interface g0/1

R1(config-if)# standby version 2

R1(config-if)# standby 1 ip 192.168.1.254

R1(config-if)# standby 1 priority 150 -- Mayor prioridad router es activo pero debe tener
configurado el preempt

R1(config-if)# standby 1 preempt -- Solo en activo

R3(config)# interface g0/1

R3(config-if)# standby version 2

R3(config-if)# standby 1 ip 192.168.1.254

show standby

show standby brief ---HSRP status summary.

ip default-gateway 192.128.1.1

----------------------OSPF------------
R1(config)# router ospf 1

R1(config-router)# network 192.168.1.0 0.0.0.255 area 0

interface g0/0

ip ospf priority 200 **Mayor es el DR

end

clear ip ospf process

yes
R1(config)# router ospf 1

R1(config-router)# router-id 11.11.11.11

interface lo0

ip address 1.1.1.1 255.255.255.255

end

clear ip ospf process

R1(config)# router ospf 1

R1(config-router)# passive-interface g0/0 (lo,l1)

R2(config)# router ospf 1

R2(config-router)# passive-interface default

R2(config)# router ospf 1

R2(config-router)# no passive-interface s0/0/0

show interface g0/0 --ancho de banda

show ip route ospf -- x/costo

show ip ospf interface g0/0 --costo

** costo menor es preferido

R1(config)# router ospf 1

R1(config-router)# auto-cost reference-bandwidth 10000

(1 es 10 y 64 es 6476) 100 normal

R1(config)# interface s0/0/0

R1(config-if)# bandwidth 128

show ip interface brief


R1(config)# interface s0/0/1

R1(config-if)# ip ospf cost 1565 **Mejor

show ip ospf neighbor

show ip route

show ip protocols

show ip ospf

show ip ospf interface brief -- costo

show ip ospf interface g0/0

show interface g0/0 --ancho de banda

show ip database

show ip ospf neighbor PARA VER EL DR

--------------------------OSPF MULTIAREA----------

interface s0/0/0

Bandwidth 128

R1(config)# router ospf 1

R1(config-router)# network 192.168.1.0 0.0.0.255 area 1

R1(config-router)# network 192.168.12.0 0.0.0.3 area 0

R1(config)# router ospf 1

R1(config-router)# default-information originate

interface s0/0/0

ip ospf message-digest-key 1 md5 cisco

ip ospf authentication message-digest

router ospf 1

area 1 range 192.168.0.0 255.255.252.0 */22


RA# debug ip ospf adj
undebug all

erase startup-config

delete vlan.dat

delete flash:vlan.dat

reload

no ip domain lookup

hostname S3

service password-encryption

banner motd #INGRESO NO AUTORIZADO#

enable secret class

line vty 0 15

password cisco

login

logging synchronous

line con 0

password cisco

login

logging synchronous

interface range f0/1-24, g0/1-2

shutdown

You might also like