Professional Documents
Culture Documents
line vty 0 4
password 123
exec-timeout 5
login
line console 0
password 123
exec-timeout 5
logging synchronous
login
enable secret 123
hostname
no ip domain look-up
service password-encryption
ip domain-name ista.jl
ip ssh version 2
username gleen password 123
line vty 0 4
login local
transport input ssh
crypto key generate rsa 1024
ip default-gateway 192.168.1.1
delete flash:vlan.dat / vlan.dat
switchport nonegotiate
show interfaces
show startup-config
show running-config
show flash
show version
show history
show ip interface + brief
show mac-address-table
show ip route
show vlan brief | id 10 | name da | summary
show interface f0/1 switchport
show interface trunk
show dtp interface
show cdp interface
show lldp neighbors detail
R1# clock set
R1(config)# ntp server 209.165.200.225
R1# show clock detail
show ntp status
show file system > cd nvram:
copy running-config tftp/usbflash0:
active mode rommon > confreg 0x2142 > reset
copy startup-config running-config
enable secret
config-register 0x2102
copy run
R1(config)# service timestamps log datetime
Spanning-Tree:
spanning-tree mode {pvst | mst | rapid-pvst}
int f0/1
spanning-tree link-type point-to-point
switchport trunk allowed vlan vlan-list
spanning-tree vlan vlan-id root primary/secondary
spanning-tree vlan vlan-id priority priority
end > clear spanning-tree detected-protocols
show spanning-tree summary
show spanning-tree interface f0/1
EtherChannel:
int range f0/1-4
channel-protocol pagp|lacp
channel-group 1 mode desirable/auto|active/passive
int port-channel 1
ip add x.x.x.x x.x.x.x
switchport mode trunk
switchport trunk encapsulation dot1q
show interface etherchannel
show etherchannel summary|port|oad-balance|port-
channel|detail
show pagp|lacp neighbors
First Hop Redundancy Protocol:
Hsrp:R1=int f0/0
Standby 1 ip 192.168.1.1
R2=int f0/0
Standby 1 ip 192.168.1.1
R1=int f0/0
standby 1 pirority 150
Standby 1 preempt
Show standby
Show standbyfastethernet 0/0
VRRP:R1=int f0/0
vrrp 1 ip 192.168.1.1
R2=int f0/0
vrrp 1 ip 192.168.1.1
R1=int f0/0
vrrp 1 pirority 150
vrrp 1 preempt
GLBP:R1=int f0/0
glbp 1 ip 192.168.1.1
R2=int f0/0
glbp 1 ip 192.168.1.1
R1=int f0/0
glbp 1 pirority 150
glbp 1 preempt
glbp 1 load-balancing round-robin|weighted|host-
dependant
DHCP IPV6:
Stateless:
o SLAAC only: ipv6 unicast-routing
o Int g0/0
o Ipv6 add 2001:acad;cafe:a::1/64
o Ipv6 nd auto-config-flag
o No shutdown
o Dhcp:ipv6 unicast-routing
o Ipv6 dhcp pool ista
o Dns-server 2001:acad;cafe:a::2
o Domain-name ista.jl
o Int g0/0
o Ipv6 add 2001:acad;cafe:a::1/64
o Ipv6 add FE80:: link-local
o Ipv6 dhcp server ista
o Ipv6 nd other-config-flag
o Client:int g0/0
o Enable ipv6
o Ipv6 nd auto-config-flag
Stateful:
o Dhcp:ipv6 unicast-routing
o Ipv6 local pool ista 2001:acad:db8::/48 64
o Ipv6 dhcp pool istaaa
o address prefix 2001:1234:A:B::/64
o Domain-name ista.jl
o Dns-server 2001:acad;cafe:a::2
o Prefix-delegation pool ista
o Int g0/0
o Ipv6 dhcp server istaa
o Ipv6 nd managed-config-flag
o Ipv6 dhcp relay destination address intid
o
Voip
o telephony-service
o max-ephones 10 (devices)
o max-dn 10 (lines)
o ip source-address 30.0.0.1 port 2000 (tftp)
o auto assign 1 to 2
o exit
o ephone-dn 1 (line 1)
o number 101
o ephone-dn 2
o number 102
o exit
o ephone 1 (device 1)
o type 7960
o mac-address ..
o button 1:1
o ephone 2 ... button 1:2
o (conf)#dial-peer voice 10 voip
o destination-pattern 2..
o session target ipv4:(next hop add)
o
show controllers ethernet-controller f0/0 phy
Inclut Auto-MDIX
R1(config)# interface GigabitEthernet 0/0/0
R1(config-if)# ip ospf priority 255
R1(config-if)# end
R1# clear ip ospf process
R2(config)# router ospf 10
R2(config-router)# default-information originate
R2(config-router)# end
R1 (config) # interface g0/0/1
R1(config-if)# ip ospf hello-interval 5
R1(config-if)# ip ospf dead-interval 20
R1(config)#auto-cost reference-bandwidth 10000
R1(config)#interface g0/0/1
R1(config-if)# ip ospf cost 30
Page 318