Interview questions for system integration engineer
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