Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7842637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:22:06+00:00 2026-06-02T16:22:06+00:00

Can we connect two subnets to the same switch. Say, if i have 2

  • 0

Can we connect two subnets to the same switch.

Say, if i have 2 PCs connected to a L2 switch

Pc1 – 10.232.167.10
Pc2 – 192.168.3.1

Is it possible to ping pc1 from pc2 and vice-versa ?

Theoretically, it must be possible – because switch operated only at L2. If i send a ping packet from Pc1, the switch (since the mapping table is not updated) sends broadcast on all its connected ports.

When the Pc2 received the packet, sees that it is for its own IP address and should accept the packet, and hence forth a mapping gets created in switch (source MAC + port -> Destination port). From there after, I can ping Pc2 from Pc1.

However it did not work practically. I would like to know the reason ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:22:07+00:00Added an answer on June 2, 2026 at 4:22 pm

    Reason: if the ip is not in it’s range of the device, it automatically sends it to the default gateway, that’s why it won’t work in different subnets with just a L2 switch attached. Broadcast packets “who has ip x.x.x.x” (used in ARP) only occur when the ip is in the same subnet as the machine sending it.

    The only solution is to connect a router to that switch with the 2 subnets configured on LAN side, connected to the L2 switch. If possible you can work with subinterfaces or just use 2 interfaces.

    If you just want a bigger range, you can adapt the subnetmask if they are in the following subnet:

    192.168.1.0 / 255.255.255.0 => 255.255.254.0
    this allows 192.168.0.x to talk to 192.168.1.x.

    This however is just widening your range, it doesn’t have the advantages of vlan’s or subnetting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can i connect two objects that are in different classes ? lets say i
Two connected qustions I understand that non HTML5 browser can connect to websockets using
I have a remote server that has win2003 installed I can connect to the
How can I draw a line using canvas to connect two buttons in android
So I don't like how I can connect two iPhones with game kit, because
My problem is that I can't connect two computers via sockets (windows xp and
Can i use Tcp Sockets to connect two Android Devices(not Emulators) giving the proper
Possible Duplicate: Can C# be piped? Is there a way to connect two programs
I have a cluster with two nodes, and I am trying to connect to
What I need to know, is how can I connect two databases at once.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.