Cisco Exam Questions

What commands must be configured on the 2950 switch and the router to allow communication between ho

Refer to the exhibit.

What commands must be configured on the 2950 switch and the router to allow communication
between host 1 and host 2? (Choose two.)

A.
Router(config)# interface fastethernet 0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shut down

B.
Router(config)# interface fastethernet 0/0
Router(config-if)# no shut down
Router(config)# interface fastethernet 0/0.1
Router(config-subif)# encapsulation dot1q 10
Router(config-subif)# ip address 192.168.10.1 255.255.255.0
Router(config)# interface fastethernet 0/0.2
Router(config-subif)# encapsulation dot1q 20
Router(config-subif)# ip address 192.168.20.1 255.255.255.0

C.
Router(config)# router eigrp 100
Router(config-router)# network 192.168.10.0
Router(config-router)# network 192.168.20.0

D.
Switch1(config)# vlan database
Switch1(config-vlan)# vtp domain XYZ
Switch1(config-vlan)# vtp server

E.
Switch1(config)# interface fastethernet 0/1
Switch1(config-if)# switchport mode trunk

F.
Switch1(config)# interface vlan 1
Switch1(config-if)# ip default-gateway 192.168.1.1

Explanation:
The router will need to use subinterfaces, where each subinterface is assigned a VLAN and IP
address for each VLAN. On the switch, the connection to the router need to be configured as a
trunk using the switchport mode trunk command and it will need a default gateway for VLAN 1.