Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Interview questions for system integration engineer

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Yesterday I was interviewing for a systems engineer, and he asked me this question.

A Layer 2 switch is connected to two hosts A and B, and there is no VLAN division on the switch.

Question 1: If A is equipped with 10.1.1.1/24 and B is equipped with 10.1.2.1/24, can A ping B pass? Why mention the whole process of a principle!

Q2. If A is configured with 10.1.1.1/24 and A is configured with gateway 10.1.1.1;B is configured with 10.1.2.1/24 and B is configured with gateway 10.1.2.1, can A ping B work? Why not?

I answered question 1 at that time, explaining as follows, although AB is not in the same network segment, but this switch is a layer 2 device, it does not involve the IP protocol of the network layer, so when A ping B is sent out by arp broadcast, there will be a response.

Question 2, my answer can not pass, the gateway is generally the network layer, when A ping B, first sent to the gateway, and then forwarded through the gateway, so that it can not reach, the network segment does not play a role.

2009-07-21

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report