Master Hack

If devices are connected to the same switch but are in different subnets do they share the same gateway?


The thing that you need to understand is we use router to connect different subnets while switch to connect to same subnets.

Even if you connect different subnets to same switch they won’t be able to communciate. See suppose two computers A and B have different subnets and are connected to a switch. Now when you want to send a data packet from A to B the data packets will have Destination IP address. A knows the range of IP addresses on its subnet (by subnetting) and therefore A will get to know that the computer B is not on its network. A knows that to communicate with any system outside its network it needs to send the data packet to some router (and not switch). So it will perform ARP and get MAC of router. But if it is not connected to any router (gateway) then nothing would be done here. So a router is needed to connect different subnet masks to make communication to happen.

Now if you want to ask if two subnets should be definitely connected to same router or gateway well this is incomplete question. Let me take an example. A computer C is connected to a router R1 and R1 is connected to a router R2 and router R2 is connected to other computer C2. So of course here routing will go on and data packets from C1 will reach C2. You need to explain the exact configuration of the network you talking about.

Lovepreet Singh

How to Hide Data in Audio Files

Previous article

The Different Types of XSS Explained With Code Examples

Next article

You may also like


  1. Association Amoxicillin Cephalosporin [url=]viagra prescription[/url] Osu Acheter Du Kamagra Z Pack Ordering

  2. Usually I don’t learn post on blogs, however I would
    like to say that this write-up very compelled me to take a look at and do it!
    Your writing style has been surprised me. Thanks, quite nice post.

  3. Canadian Drug Store Best Site To Buy Viagra Amoxicillin Acid [url=]proscar[/url] Abra 100 Cialis 5 Precio Precio Propecia Principio Activo

  4. It’s remarkable in favor of me to have a site, which is good in favor of my experience.
    thanks admin

  5. Fine way of telling, and fastidious article to take data about my presentation focus,
    which i am going to present in college.

  6. Howdy! Would you mind if I share your blog with my twitter group?
    There’s a lot of folks that I think would really enjoy your
    content. Please let me know. Thanks

  7. Hey just wanted to give you a quick heads up.
    The text in your content seem to be running off the screen in Firefox.
    I’m not sure if this is a formatting issue or something to do with browser compatibility but I
    thought I’d post to let you know. The layout look
    great though! Hope you get the issue fixed soon. Cheers

  8. Hey there fantastic website! Does running a blog such as this
    require a lot of work? I have no expertise in coding but I had been hoping
    to start my own blog in the near future. Anyhow, if you have any suggestions or techniques for new blog owners please share.
    I know this is off topic however I just wanted to ask.
    Thank you!

  9. Excellent beat ! I would like to apprentice while
    you amend your site, how could i subscribe for a blog site?

    The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear

  10. Great post. I was checking constantly this blog and I am
    impressed! Extremely useful info specially the last
    part 🙂 I care for such information a lot. I was seeking this particular info for a very long time.

    Thank you and good luck.

  11. What’s Happening i am new to this, I stumbled upon this
    I’ve discovered It absolutely useful and it has helped me out loads.
    I hope to give a contribution & aid different customers like its aided me.

    Great job.

  12. What’s up, everything is going fine here and ofcourse every one
    is sharing facts, that’s actually fine, keep up writing.

  13. Hello colleagues, its great paragraph on the topic of tutoringand completely explained, keep it up all the time.

  14. Hey there, You’ve done a great job. I’ll definitely
    digg it and personally suggest to my friends. I’m sure they will
    be benefited from this web site.

  15. This piece of writing gives clear idea in support of the new users of blogging, that really how to do

  16. Hey I know this is off topic but I was wondering if you
    knew of any widgets I could add to my blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite some time and was
    hoping maybe you would have some experience with something like this.

    Please let me know if you run into anything. I truly
    enjoy reading your blog and I look forward to your new

  17. Great post. I was checking continuously this blog and I’m inspired!
    Extremely helpful information specially the remaining section :
    ) I maintain such information a lot. I was looking for this certain information for a very
    long time. Thanks and good luck.

  18. It’s great that you are getting thoughts from this post as well as from our discussion made at
    this place.

  19. Appreciating the commitment you put into your site and in depth information you present.

    It’s nice to come across a blog every once in a while that isn’t the
    same out of date rehashed material. Great read! I’ve bookmarked your site and I’m
    including your RSS feeds to my Google account.

  20. Hi! I could have sworn I’ve visited this
    blog before but after looking at a few of the articles I realized it’s
    new to me. Anyhow, I’m definitely happy I stumbled upon it and I’ll be book-marking it and checking
    back regularly!

  21. Wonderful goods from you, man. I have understand your stuff
    previous to and you are just extremely fantastic.
    I actually like what you’ve acquired here, really like what you are saying
    and the way in which you say it. You make it enjoyable and you still care for
    to keep it sensible. I cant wait to read far more from you.
    This is actually a wonderful site.

  22. I am now not sure where you are getting your info, but
    good topic. I needs to spend some time finding out much more or working out more.

    Thanks for fantastic info I used to be in search of this info for my

  23. Thanks designed for sharing such a nice thinking,
    post is pleasant, thats why i have read it entirely

  24. I was recommended this blog by my cousin. I’m not sure whether this post is written by him as
    nobody else know such detailed about my problem. You are amazing!

  25. Hmm is anyone else having problems with the pictures on this blog loading?
    I’m trying to determine if its a problem on my
    end or if it’s the blog. Any suggestions would be greatly appreciated.

  26. Write more, thats all I have to say. Literally, it seems as
    though you relied on the video to make your point.
    You definitely know what youre talking about, why throw away
    your intelligence on just posting videos to your blog when you could be
    giving us something enlightening to read?

  27. Levitra Online Paypal Dental Prophylaxis Amoxicillin [url=]cialis 20mg price at walmart[/url] Low Cost Viagra Is Keflex A Generic Drug Propecia Es No Way Out Que Proscar

  28. Hi, I want to subscribe for this website to get most up-to-date
    updates, thus where can i do it please help out.

  29. Awesome site you have here but I was wanting to know if you
    knew of any message boards that cover the same topics discussed in this article?
    I’d really like to be a part of group where I can get responses from other knowledgeable people that
    share the same interest. If you have any suggestions, please let
    me know. Appreciate it!

  30. Howdy! I just wish to offer you a huge thumbs
    up for the excellent information you have got here on this post.
    I am returning to your web site for more soon.

  31. After exploring a number of the articles on your blog, I really appreciate your way
    of blogging. I book marked it to my bookmark webpage
    list and will be checking back soon. Please check out my website too and let
    me know how you feel.

  32. Hi my friend! I want to say that this article is awesome,
    nice written and include almost all significant infos.

    I would like to see more posts like this .

  33. I blog quite often and I genuinely thank you for your content.
    The article has truly peaked my interest. I will bookmark your blog and keep checking
    for new information about once a week. I opted in for your Feed too.

  34. Hi there every one, here every person is sharing these know-how, therefore it’s fastidious
    to read this website, and I used to pay a visit this webpage every day.

  35. Hi! I know this is somewhat off topic but I was wondering if you knew where I could get a captcha plugin for
    my comment form? I’m using the same blog platform as
    yours and I’m having difficulty finding one? Thanks a lot!

  36. Pretty element of content. I just stumbled upon your website
    and in accession capital to claim that I get actually
    loved account your weblog posts. Any way I will be subscribing on your augment or even I fulfillment you access consistently rapidly.

  37. you are actually a just right webmaster.
    The website loading speed is incredible. It seems that you
    are doing any distinctive trick. Also, The contents are masterpiece.
    you have performed a great activity on this matter!

  38. Thanks for finally writing about >If devices are connected to the same switch but
    are in different subnets do they share the same gateway?
    – Tech and Security <Liked it!

  39. Hi there, I enjoy reading through your article. I wanted to write a little
    comment to support you.

  40. I all the time used to study paragraph in news papers but now as I am a user of
    internet so from now I am using net for posts, thanks to web.

  41. Just want to say your article is as astonishing. The clearness
    in your post is simply cool and i can assume
    you are an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep
    up to date with forthcoming post. Thanks a
    million and please carry on the rewarding work.

  42. Terrific article! That is the kind of information that
    are meant to be shared around the net. Shame on Google for
    now not positioning this publish higher! Come on over
    and talk over with my website . Thanks =)

  43. Keep on working, great job!

  44. Hello would you mind stating which blog platform you’re
    using? I’m going to start my own blog soon but I’m having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most blogs and I’m looking for something unique.
    P.S My apologies for getting off-topic but I had to ask!

  45. Does your blog have a contact page? I’m having a tough
    time locating it but, I’d like to send you an e-mail.
    I’ve got some recommendations for your blog you might be interested in hearing.

    Either way, great site and I look forward to seeing
    it grow over time.

  46. Wow! Finally I got a blog from where I be able to in fact get helpful
    information regarding my study and knowledge.

  47. If you would like to increase your experience simply keep visiting
    this web page and be updated with the latest gossip posted here.

  48. bookmarked!!, I really like your website!

Leave a reply

Your email address will not be published. Required fields are marked *

More in Master Hack