Jump to content

Should the default gateway be configured even on the responding side

Featured Replies

A quick quesiton... Suppose there are two Ethernet subnets and a gateway in between. From one PC in the first subnet we are going to establish TCP/IP connection to another PC on the second subnet.

 

Obvously, the default gateway IP address must be defined in the first PC. But the question is, should the default gateway be defined also in the other PC (this one is only accepting the connection)?

 

(If I understand IP networking correctly, there is no need for the accepting side to know its gateway. But I am not sure.)

 

Thanks.

For the specific case you describe, only to respond to outside requests, foreknowledge of the gateway is not required since the local path will be included in the addressing header, assuming the network driver initializes and enables listening ports for requests outside the subnet even when it does not consider the network configuration to be complete. This will be the sticking point and it will be dependent on the device driver.

you're welcome. Good luck working that out.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.