Sei sulla pagina 1di 2

Comandos Router

Router config) # hostname Router1 Router1 (config) # enable secret class Router1 (config) # line console 0 Router1 (config-line) # password cisco Router1 (config-line) # login Router1 (config-line) # line vty 0 4 Router1 (config-line) # password cisco Router1 (config-line) # login Router1 (config-line) # interface fa0/0 Router1 (config-if) #ip address 192.168.7.126 255.255.255.128 Router1 (config-if) # no shutdown Router1 (config-if) #description connection to host1 Router1 (config-if) #interface fa0/1 Router1 (config-if) #description connection to switch1 Router1 (config-if) #ip address 192.168.7.190 255.255.255.192 Router1 (config-if) # no shutdown Router1 (config-if) # end

Comandos para Encapsulation.


R1 (config-if) # interface fastethernet 0/1.1 R1 (config-subif) #encapsulation dot1q 1 R1 (config-subif) # ip address 172.17.1.1 255.255.255.0

Comandos Switch
S1#configure terminal S1 (config) #hostname S1 S1 (config) #line console 0 S1 (config-line) #password cisco S1 (config-line) #login S1 (config-line) #line vty 0 15 S1 (config-line) #password cisco S1 (config-line) #login S1 (config-line) #exit S1 (config) #enable secret class

Comandos VLAN
S1 S1 S1 S1 S1 S1 S1 S1 S1 (config) #vlan 99 (config-vlan) #exit (config) #interface vlan99 (config-if) #ip address 172.17.99.11 255.255.255.0 (config-if) #no shutdown (config-if) #exit (config) #interface range fa0/1 - 24 (config-if-range) #switchport access vlan 99 (config-if-range) #exit

Comandos VTP
S1 (config) # vtp domain nombre-dominio S1 (config) # vtp password contrasea S1 (config) # vtp version numero-version (1, 2, 3) S1 (config) # vtp mode server | client | transparent S1 #show vtp status

Comandos enlaces Troncales


S1 S1 S1 S1 S1 S1 # configure terminal (config) # interface interface-id (config-if) # switchport mode trunk (config-if) # switchport trunk native vlan vlan-id (config-if) # exit # show interface trunk

Comandos ruta estatica


S1 (config) # ip route direccin, mascara, Gateway

Comandos seguridad de Puertos


S1 S1 S1 S1 S1 S1 (config-if) (config-if) (config-if) (config-if) (config-if) (config-if) #switchport mode access #switchport port-security #switchport port-security maximum 2 #switchport port-security mac-address sticky #switchport port-security violation protect #exit

S1#show port-security

Potrebbero piacerti anche