Comparing Host and Gateway Configurations
A company is deploying a new sensor device on a factory floor. The local subnet is 172.16.40.0/24, and the router interface serving as the default gateway is configured with the IP address 172.16.40.254.
The sensor requires a static IP configuration to communicate with a central server located at 10.0.0.50. Two technicians propose different configurations for the sensor:
Approach X: IP Address: 172.16.40.50, Subnet Mask: 255.255.255.0, Default Gateway: 172.16.40.254
Approach Y: IP Address: 172.16.40.50, Subnet Mask: 255.255.255.0, Default Gateway: 10.0.0.50
Which approach provides a valid host and gateway configuration for the sensor to reach the central server, and why?
Approach Y is valid because the default gateway must be set to the exact IP address of the destination server to ensure direct communication.
Neither approach is valid because the sensor’s IP address must be in the same /24 subnet as the central server to establish a connection.
Approach X is valid because the default gateway must reside on the same local subnet as the host to route traffic to external networks.
Both approaches are valid, but Approach Y is preferred because it eliminates the need for the router to process the traffic.
Question Leaderboard
Not enough data yet to show leaderboard.
