QUESTIONS VERIFIED
⫸ Configure a sub-interface for Inter-VLAN configuration. Answer:
(config)#interface INTERFACE.SUB-INTERFACE
(config-subif)#no shut
(config-subif)#encapsulation dot1q VLAN NUMBER
(config-subif)#ip address IP ADDRESS AND SUBNET MASK
(config)#end
#copy run start
⫸ Configure a trunk interface. Answer: (config)# interface
INTERFACE
(config)#switchport trunk encapsulation dot1q
(config)#switchport mode trunk
(config)#exit
#copy run start
⫸ Configure a default gateway on a switch. Answer: (config)#ip
default-gateway IP ADDRESS
⫸ Configure a hostname. Answer: (config)#hostname HOSTNAME
,⫸ Configure a banner. Answer: (config)#banner motd # BANNER
MESSAGE #
⫸ Configure exec mode passsword. Answer: (config)#enable secret
PASSWORD
OR
(config)#enable password PASSWORD
(config)#exit
#copy run start
⫸ Configure console password. Answer: (config)#line console 0
(config-line)#password PASSWORD
(config-line)#login
(config-line)#end
#copy run start
⫸ Configure Telnet password. Answer: (config)#line vty 0 4
(config-line)#password PASSWORD
(config-line)#login
(config-line)#end
#copy run start
⫸ Configure SSH. Answer: (config)#hostname HOSTNAME
(config)#ip domain-name DOMAIN NAME
,(config)#crypto key generate rsa modulus 1024
(config)#line vty 0 4
(config-line)#transport input ssh
(config-line)#end
#copy run start
⫸ Encrypt all passwords. Answer: (config)#service password-
encryption
⫸ Add IP address of DNS server. Answer: (config)#ip name-server
DNS SERVER IP ADDRESS
⫸ Save running configuration. Answer: #copy running-config
startup-config
⫸ Copy running configuration to FTP server. Answer: #copy
running-config tftp:
#TFTP SERVER IP ADDRESS
#DESTINATION FILE NAME
⫸ Copy IOS to TFTP server. Answer: #copy flash: tftp:
#SOURCE FILE NAME
#TFTP SERVER IP ADDRESS
#DESTINATION FILE NAME
, ⫸ Recover password. Answer: Press ctrl+break during boot.
rommon 1 > confreg 0x2142 #enable, #config-t (config)#enable secret
PASSWORD
(config)#line console 0
(config)#password PASSWORD
(config)#exit
#^Z
#config t
(config)#config-register 0x2102
(config)#exit
⫸ Configure a static route. Answer: (config)#ip route
DESTINATION NETWORK IP ADDRESS AND SUBNETMASK
AND IP ADDRESS OF NEXT-HOP ROUTER INTERFACE
⫸ Configure a default route. Answer: (config)#ip route 0.0.0.0
0.0.0.0 IP ADDRESS OF NEXT-HOPE ROUTER INTERFACE
⫸ Administrative distances:
Directly Connected
Static
EIGRP
OSPF
External EIGRP
Unknown. Answer: Directly connected: 0