1. What is the difference between a 9. How do you configure a static route?
router and a switch? Router(config)# ip route [Link]
- Router: Connects different [Link] [Link]
networks, works with IP addresses.
- Switch: Connects devices within
10. How do you configure a default
the same network, works with MAC route?
addresses. Router(config)# ip route [Link] [Link]
[Link]
2. What is the default gateway?
The default gateway is the IP address used 11. What is VLAN and how to configure it
by a device to communicate outside its local on a switch?
network (usually the router’s interface IP). VLAN: Virtual LAN, creates separate
broadcast domains on the same switch.
3. What is an IP address?
An IP address is a unique identifier assigned Switch(config)# vlan 10
to each device on a network to enable Switch(config-vlan)# name SALES
communication. IPv4 is 32-bit, IPv6 is 128- Switch(config)# interface fastEthernet 0/1
bit. Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan
4. What is a subnet mask? 10
A subnet mask defines which portion of the
IP address refers to the network and which 12. How do you configure a trunk port on
refers to the host.
a switch?
5. What is DNS? Switch(config)# interface fastEthernet 0/24
Switch(config-if)# switchport mode trunk
DNS (Domain Name System) translates
Switch(config-if)# switchport trunk allowed
domain names into IP addresses so devices
vlan 10,20
can locate each other on the network.
13. How to configure RIP routing
6. How do you configure a hostname on
protocol?
a Cisco device?
Router(config)# router rip
Router> enable
Router(config-router)# version 2
Router# configure terminal
Router(config-router)# network
Router(config)# hostname MyRouter
[Link]
MyRouter(config)#
Router(config-router)# network
7. How do you configure an IP address [Link]
on a router interface? 14. How to configure OSPF routing
Router> enable
protocol?
Router# configure terminal
Router(config)# router ospf 1
Router(config)# interface fastEthernet 0/0
Router(config-router)# network
Router(config-if)# ip address [Link]
[Link] [Link] area 0
[Link]
Router(config-if)# no shutdown
15. How to configure EIGRP routing
8. What is the purpose of the 'no protocol?
shutdown' command? Router(config)# router eigrp 100
Router(config-router)# network
It enables the router or switch interface (by
[Link] [Link]
default interfaces are administratively
down).
16. How to set a console password? 25. How to check interface status?
Router(config)# line console 0 Router# show ip interface brief
Router(config-line)# password cisco
Router(config-line)# login 26. How to save configurations
permanently?
17. How to change a console password? Router# copy running-config startup-config
Router(config)# line console 0
Router(config-line)# password newpass 27. What is STP (Spanning Tree Protocol)?
Router(config-line)# login STP prevents switching loops in a network
by blocking redundant paths while ensuring
18. How to set an enable secret redundancy.
password?
Router(config)# enable secret mysecret 28. What is Port Security and how to
configure it?
19. How to change the enable secret Switch(config)# interface fastEthernet 0/1
password? Switch(config-if)# switchport mode access
Router(config)# enable secret newsecret Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security
20. How to configure VTY (Telnet) maximum 2
password? Switch(config-if)# switchport port-security
Router(config)# line vty 0 4 violation shutdown
Router(config-line)# password cisco Switch(config-if)# switchport port-security
Router(config-line)# login mac-address sticky
21. How to configure Telnet access? 29. How to configure DHCP on a router?
1. Configure an IP address on the router Router(config)# ip dhcp pool LAN
interface. Router(dhcp-config)# network [Link]
2. Set VTY line password. [Link]
3. Ensure the router has 'login' enabled on Router(dhcp-config)# default-router
VTY lines. [Link]
Access with: telnet <router-ip> Router(dhcp-config)# dns-server [Link]
22. How to configure SSH access?
Router(config)# ip domain-name
[Link]
Router(config)# crypto key generate rsa
Router(config)# username admin privilege
15 secret adminpass
Router(config)# line vty 0 4
Router(config-line)# transport input ssh
Router(config-line)# login local
23. How to create an enable user with
privilege 15 and password?
Router(config)# username admin privilege
15 secret adminpass
24. How to check routing table on a
router?
Router# show ip route