Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Interview questions for system integration engineer

Shulou Source: shulou.com Published: 2022-06-01 04:21:44 09月25日 Update

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

Tags: Gateway layer 2 network segment network configuration engineering engineer system one host switch function principle equipment process initiative broadcast interpretation system integration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Shulou Information Shulou Tech Info Redmi