Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Refer to the exhibit: fa0/0 fa0/1 fa0/2 fa0/13 The current configurations of the

ID: 3731297 • Letter: R

Question

Refer to the exhibit: fa0/0 fa0/1 fa0/2 fa0/13 The current configurations of the devices are as follows: Switch 1: IP address: 192.168.1.2/24 Ports 2-12 VLAN 10 Ports 13-24 VLAN 20 Host 1: IP address: 192.168.10.5/24 Default Gateway: 192.168.10.1 Host 2: IP address: 192.168.20.5/24 Default Gateway: 192.168.20.1 What commands must be configured on the switch and the router to allow communication between host 1 and host 2? (configure mode trunk for fo/1 of the switch, and subinterfaces for fo/0 of the router):

Explanation / Answer

Router Configuration:

First we need to login to router, usually we are in user mode (user exec mode), to configure router one need privileged exec mode. For this enable command is used.

1. Router>enable

2. Router#                     //it shows that user in privileged mode

Now to configure router from CLI mode we need to type

3. Router#config t

Now we have entered in configuration mode it will look like Router(config)#.

Now first we need to select an interface.


4. Router(config)# interface fastethernet 0/0

This will get into fastethernet 0/0 interface configuration mode. And this will look alike Router(config-if)#

Now we need to enter ip address of router, as we switch 1 IP has been given 192.168.1.2 , so

We need to give ip 192.168.1.1 to router.

5. Router(config-if)# ip address 192.168.1.1 255.255.255.0

Now we enter no shutdown command to active the entered interface.

6. Router(config-if)# no shut down

Now Select FastEthernet 0/0 for the trunk configuration

7. Router(config)# interface fastethernet 0/0
8. Router(config-if)# no shut down

9.Router(config)# interface fastethernet 0/0.1

To enable encapsulation of traffic on a specified subinterface the encapsulation dot1q command is used. It is a standard protocol for interconnecting multiple switches and router. encapsulation dot1Q vlan-id.

10. Router(config-subif)# encapsulation dot1q 10

Now configure the host1’s default gateway 192.168.10.1

11. Router(config-subif)# ip address 192.168.10.1 255.255.255.0

Same process will be applied to configure host2.

12. Router(config)# interface fastethernet 0/0.2
13. Router(config-subif)# encapsulation dot1q 20
14. Router(config-subif)# ip address 192.168.20.1 255.255.255.0

Now we need to select routing protocol it may be either EIGRP (Enhanced Interior Gatway Routing Protocol)or OSPF(Open Shortest Path First). Here we are using EIGRP with hop value 100.

15. Router(config)# router eigrp 100
16. Router(config-router)# network 192.168.10.0
17. Router(config-router)# network 192.168.20.0

Thus we have successfully configured the router, Now we are going to configure switch.

Switch Configuration:

Like router first we need to login to switch and enable privileged exec mode.

1. Switch1>enable

2. Switch1#                     //it shows that user in privileged mode

3. Switch1#config         //to enter in configuration mode

Now to enter VLAN configuration mode use vlan database command. Usually it receive the VLN database from vlan.dat file from flash memory.

4. Switch1(config)# vlan database

Just define VLAN trunking protocol, switches are configured to be VTP servers by default. To configure VTP, we have to configure the domain name which we want to use, let’s assume domin name is ABC. Following command will change VTP domain from NULL to ABC.

5. Switch1(config-vlan)# vtp domain ABC  

Now set the VTP server mode.

6. Switch1(config-vlan)# vtp mode server

Now we need to configure the interface of switch.

7. Switch1(config)# interface fastethernet 0/1

And select switchport mode = trunk;

8. Switch1(config-if)# switchport mode trunk

Now just we need to select our configured vlan.

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

Now your router and switches are configured.