Question

In: Computer Science

How would I create a network using packet tracer with these attributes?   6 workstations, 1 switch...

How would I create a network using packet tracer with these attributes?  

6 workstations, 1 switch (2950T), Subnet for the is 10.10.10.0/28 , Create 2 VLANs on each switch (VLAN 10 and 20), Add 3 workstations to VLAN 10 and 3 workstations to VLAN 20, Only workstations on the same VLAN should be able to communicate with each other

Solutions

Expert Solution

What is a VLAN?

A VLAN is simply a logical LAN, just as its name suggests. VLANs have similar characteristics with those of physical LANs, only that with VLANs, you can logically group hosts even if they are physically located on separate LAN segments. We treat each VLAN as a separate subnet or broadcast domain. For this reason, to move packets from one VLAN to another, we have to use a router or a layer 3 switch.

VLANs are configured on switches by placing some interfaces into one broadcast domain and some interfaces into another. For this tutorial, we’ll configure 2 VLANs on a switch. We’ll then proceed and configure a router to enable communication between the two VLANs.

So then,

  1. In Cisco Packet Tracer, create the network topology as shown below:

REPORT THIS AD

2. Create 2 VLANs on the switch:  VLAN 10 and VLAN 20. You can give them custom names.

Switch#config ter
Switch(config)#vlan 10
Switch(config-vlan)#name SALES
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name IT

3. Assign switch ports to the VLANs. Remember each VLAN is viewed as separate broadcast domain.

And just before you configure, have in mind that switch ports could be either access or trunk.

  • An access port is assigned to a single VLAN . These ports are configured for switch ports that connect to devices with a normal network card, for example a PC in a network.
  • A trunk port on the other hand is a port that can be connected to another switch or router. This port can carry traffic of multiple VLANs.

So in our case, we’ll configure switch interfaces fa 0/1 through fa 0/4 as access ports to connect to our PCs. Here, interfaces fa 0/1 and fa 0/2 are assigned to VLAN 10 while interfaces fa 0/3 and fa 0/4 are assigned to VLAN 20.

Switch Interface fa0/5 will be configured as trunk port, as it will be used to carry traffic between the two VLANs via the router.

Switch>enable
Switch#config term

Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10

Switch(config-if)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10

Switch(config-if)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20

Switch(config-if)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20

Golden tip: Its worth noting that we could have configured all the above interfaces as access ports using int range command as shown below:

Switch(config-if)#int range fa0/1-4
Switch(config-if-range)#switchport mode access

In the above commands, we have specified an interface range and then proceeded to configure all the ports specified as access ports.

Interface fa0/5 is configured as trunk and will be used to for inter-VLAN communication.

Switch#
Switch(config)#int fa 0/5
Switch(config-if)#switchport mode trunk

The next thing is to:

4 . Assign static IP addresses to the four PCs which are located in the separate VLANs. PC1 and PC2 fall in VLAN 10 while PC3 and PC4 fall in VLAN 20.

PC1   IP address 192.168.1.10   Subnet mask 255.255.255.0  Default gateway 192.168.1.1

PC2: IP address 192.168.1.20  Subnet mask 255.255.255.0  Default gateway 192.168.1.1

PC3: IP address 192.168.2.10    Subnet mask 255.255.255.0  Default gateway 192.168.2.1

PC4: IP address 192.168.2.20 Subnet mask   255.255.255.0  Default gateway 192.168.2.1

And now it’s very clear that we treat a VLAN just like a physical LAN when assigning IP addresses.

At this point let’s try to test connectivity within VLANs and betweenVLANs

To test communication between hosts in the same VLAN:

Ping PC2 from PC1 both in VLAN 10. Ping test should be successful.

To test connectivity between hosts in different VLANs:

Ping PC3 in VLAN 20 from PC1 in VLAN 10. Ping here will definitely fail. Why? Because inter-VLAN routing is not yet enabled. Hope you can see how we’ve used VLANs to place the hosts into two logical networks which can be viewed as separate broadcast domains.

Now, in order to allow the hosts in the two VLANs to communicate, we need to do something extra. And you can guess what. We’ll configure the router to permit inter-VLAN communication. Let’s do that right away.

5. Configure inter-VLAN routing on the router

We’ll configure the router so that it will enable communication between the two vlans via a single physical interface. How is this made possible? We’ll divide the single physical interface on the router into logical interfaces (sub interfaces). Each sub-interface will then serve as a default gateway for each of the VLANs. This scenario is called router on a stick (R.O.A.S) and will allow the VLANs to communicate through the single physical interface.

Wort noting: We can’t assign an IP address to the router’s physical interface that we have subdivided into logical sub-interfaces. We’ll instead assign IP addresses to the sub interfaces themselves.

So let’s do router configurations:

Router>
Router>en
Router#config term

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#int fa0/0
Router(config-if)#no shutdown

Router(config-if)#int fa0/0.10
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip add 192.168.1.1 255.255.255.0
Router(config-subif)#

Router(config-subif)#int fa0/0.20
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip add 192.168.2.1 255.255.255.0


As you can notice from above, the routers physical interface fa0/0  was subdivided into two sub-interfaces( fa0/0.10 and  fa0/0.20) ,which are then configured as trunk interfaces and given IP addresses.

Finally,

6. Test inter-VLAN connectivity.

Here we’ll test connectivity between computers in different VLANs . Don’t forget that its the router that enables inter-VLAN routing.

Ping PC3 in VLAN 20 from PC1 in VLAN 10. If everything is well configured, then ping should work perfectly.


Related Solutions

Using Packet Tracer Create a Network for 3 departments (sales, accounting, HR) in a business. This...
Using Packet Tracer Create a Network for 3 departments (sales, accounting, HR) in a business. This network should observe reduced collisions and minimum broadcasts. Use private network addressing to simulate the network. PLEASE PROVIDE The network diagram, and pings/simulations to demonstrate the correct functioning of the network. I will rate.
Open the Cisco packet Tracer. Select and add three 3560‐24ps switch to the Cisco packet tracer...
Open the Cisco packet Tracer. Select and add three 3560‐24ps switch to the Cisco packet tracer window. Connect each of the switches using cross over cables. Add three end devices, generic PCs. Connect each pc to a separate switch using copper strait‐through cables. When you have completed the steps above; your packet tracer should look like the diagram below and the PCs must be able to ping to each other.
What is the main differences between Packet Switch Network & Circuit Switch Network?
What is the main differences between Packet Switch Network & Circuit Switch Network?
Network Device Basics Directions: Use Packet Tracer to complete the following labs. Answer the questions and...
Network Device Basics Directions: Use Packet Tracer to complete the following labs. Answer the questions and record screenshots in a Word document titled firstInitial+LastName+Basics. Find Device Information You are working with a single active switch and a router as shown in Diagram 1. You would like to gather information about the device. Execute this lab according to the following guidelines: Use the CLI to answer the following questions: What is the IOS version? How much NVRAM (non-volatile RAM) is available...
Create a Packet Tracer file that completes the required steps below. After you have added the...
Create a Packet Tracer file that completes the required steps below. After you have added the switches, add the following devices and wire accordingly. Device Interface To PC1-A F0 Switch 1 F0/1 PC1-B F0 Switch 1 F0/5 Configure the following information on the computers: Device IP Subnet PC1-A 172.16.30.3 255.255.255.0 PC1-B 172.16.30.4 255.255.255.0 Configure the following items: Set passwords for the Console and VTY 0 4 lines. The password should be set for login and the password should be "Pa$$word#1"....
Create a Packet Tracer file that completes the required steps below. Add two Cisco 2960 switches...
Create a Packet Tracer file that completes the required steps below. Add two Cisco 2960 switches and wire it up accordingly; use a crossover cable. Device Interface To Switch 1 G0/0 Switch 2 G0/1 Switch 2 G0/1 Switch 1 G0/0 After you have added the switches, add the following devices and wire accordingly. Device Interface To PC1-A F0 Switch 1 F0/4 PC1-B F0 Switch 1 F0/3 PC2-A F0 Switch 2 F0/4 PC2-B F0 Switch 2 F0/3 Configure the following information...
Using Cisco Packet tracer, drag in three routers and three switches. configure each device with basic...
Using Cisco Packet tracer, drag in three routers and three switches. configure each device with basic items such as wiring them up correct. hostname, banner, password, and turning on the correct interface.
Briefly describe at least six (6) ways to harden a network, including servers and workstations, and...
Briefly describe at least six (6) ways to harden a network, including servers and workstations, and the network configuration (architecture); then explain in detail the first two steps you would take toward achieving a secure network.
1. Create a positioning map for the TOTO using attributes green and price. 2. How might...
1. Create a positioning map for the TOTO using attributes green and price. 2. How might regulatory activities affect TOTO as it enters markets? TOTO: Positioning Plumbing Products Globally
#1) What is shunning (in network term)? #2) Using iptables, in which chain would you create...
#1) What is shunning (in network term)? #2) Using iptables, in which chain would you create rules to block all outgoing traffic not meeting certain exceptions? Please explain clearly and WILL BE UPVOTED!!!
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT