Please configure the VLANs

iliketurtlesiliketurtles Registered Users Posts: 3 ■□□□□□□□□□
Hello, all! I'm in need of some help with a question I'm trying to complete on Packet Tracer. I've been able to find a lot of help from these forums over the months by going through old posts. I've been stuck on a question for a few hours, because I didn't want to bug you guys. I know you'll be able to help. Thank you.

  • VLAN2 (Computer Science): PC0 (205.0.0.2/25), PC2 (205.0.0.3/25)
  • VLAN3 (Mathematics): PC1 (205.0.0.130/25)
  • Router (205.0.0.1)

Please configure the router and the switch ports to make the network runnable.
Test your configuration by pinging from PC0 to PC1 and from PC0 to PC2.


I know what cables to use for the connections between the PCs, switch, and router. I also set the VLANs on the switch. I'm just not sure what info I need to input for the router and PC (encapsulation, gateways, etc). Thanks again!

Comments

  • EdTheLadEdTheLad Member Posts: 2,111 ■■■■□□□□□□
    The switch has 2 vlans 2 and 3, these vlans have different subnets. In order for 2 subnets to communicate they need a router. The router needs to belong to both subnets to route between them. You can either configure 2 ports on the router with an interface belonging to each subnet, the PCs will need the default-gateway set to the router interface ip in the respective subnets.
    Or, if you only have a single interface on the router, you can configure whats know as "router on a stick".
    Configure 2 subinterfaces on the router, set the ip address/dot1q vlan on each subinterface to match the appropriate vlan, configure the switchport connected to the router as a trunk port allowing vlans 2 and 3.
    Networking, sometimes i love it, mostly i hate it.Its all about the $$$$
  • MooseboostMooseboost Senior Member Member Posts: 775 ■■■■□□□□□□
    Now, I am a newbie - so my advice may not be the best. Without a layer 3 switch, I think you would have to use router on a stick for the InterVlan routing. Are you familiar with sub interfaces?

    :< Ed beat me to it.
    2020 Certification Goals: OSCE GXPN
    Blog: https://hackfox.net
  • iliketurtlesiliketurtles Registered Users Posts: 3 ■□□□□□□□□□
    Thank you! That makes sense. Okay, so (I think) I got it all set up and now I tried pinging from PC0 (205.0.0.2/25) to PC1 (205.0.0.130/25) and PC0 to PC2 (205.0.0.3/25) and got these results:

    PC>ping 205.0.0.130

    Pinging 205.0.0.130 with 32 bytes of data:

    Request timed out.
    Reply from 205.0.0.130: bytes=32 time=0ms TTL=127
    Reply from 205.0.0.130: bytes=32 time=0ms TTL=127
    Reply from 205.0.0.130: bytes=32 time=0ms TTL=127

    Ping statistics for 205.0.0.130:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

    PC>ping 205.0.0.3

    Pinging 205.0.0.3 with 32 bytes of data:

    Reply from 205.0.0.3: bytes=32 time=1ms TTL=128
    Reply from 205.0.0.3: bytes=32 time=0ms TTL=128
    Reply from 205.0.0.3: bytes=32 time=0ms TTL=128
    Reply from 205.0.0.3: bytes=32 time=0ms TTL=128

    Ping statistics for 205.0.0.3:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms
Sign In or Register to comment.