Connect 2 local subnets with a static ip on one

Hello. I have 2 local subnets. The WAN side of the router has a DHCP server assigned ip of 192.168.13.101.The pc on the LAN side is static 192.168.0.251. I am not able to ping 192.168.13.100 (which is the server i need to talk to) from 192.168.0.251 with my pc when using a static ip but can if I use the routers DHCP to get the ip. I did an ipconfig /all when using DHCP to get the info needed to switch to static. I assume its a setting on the router which currently has the default settings other than changing the LAN ports ip. Thank you.

I would assume you wrote the wrong gateway / subnet mask while setting static IP.

Using DHCP

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . : lan
Description . . . . . . . . . . . : Realtek USB GbE Family Controller
Physical Address. . . . . . . . . : 50-A0-30-0C-48-BD
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6a0c:2ce9:f662:1473%17(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.252(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Tuesday, March 26, 2024 2:08:32 PM
Lease Expires . . . . . . . . . . : Wednesday, March 27, 2024 2:08:31 AM
Default Gateway . . . . . . . . . : 192.168.0.250
DHCP Server . . . . . . . . . . . : 192.168.0.250
DHCPv6 IAID . . . . . . . . . . . : 290496560
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-5C-8F-F1-50-A0-30-0C-48-BD
DNS Servers . . . . . . . . . . . : 192.168.0.250
NetBIOS over Tcpip. . . . . . . . : Enabled

Using Static

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek USB GbE Family Controller
Physical Address. . . . . . . . . : 50-A0-30-0C-48-BD
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6a0c:2ce9:f662:1473%17(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.252(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.250
DHCPv6 IAID . . . . . . . . . . . : 290496560
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-5C-8F-F1-50-A0-30-0C-48-BD
DNS Servers . . . . . . . . . . . : 192.168.0.250
NetBIOS over Tcpip. . . . . . . . : Enabled

route print would be important as well.

===========================================================================
Interface List
 17...50 a0 30 0c 48 bd ......Realtek USB GbE Family Controller
  9...f0 b6 1e 3b 35 d1 ......Microsoft Wi-Fi Direct Virtual Adapter
 14...f2 b6 1e 3b 35 d0 ......Microsoft Wi-Fi Direct Virtual Adapter #2
  3...f0 b6 1e 3b 35 d0 ......Intel(R) Wi-Fi 6E AX211 160MHz
  8...f0 b6 1e 3b 35 d4 ......Bluetooth Device (Personal Area Network)
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.1.1     192.168.1.25     35
          0.0.0.0          0.0.0.0    192.168.0.250    192.168.0.252    281
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
      192.168.0.0    255.255.255.0         On-link     192.168.0.252    281
    192.168.0.252  255.255.255.255         On-link     192.168.0.252    281
    192.168.0.255  255.255.255.255         On-link     192.168.0.252    281
      192.168.1.0    255.255.255.0         On-link      192.168.1.25    291
     192.168.1.25  255.255.255.255         On-link      192.168.1.25    291
    192.168.1.255  255.255.255.255         On-link      192.168.1.25    291
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link      192.168.1.25    291
        224.0.0.0        240.0.0.0         On-link     192.168.0.252    281
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link      192.168.1.25    291
  255.255.255.255  255.255.255.255         On-link     192.168.0.252    281
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0    192.168.0.250  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  3    291 ::/0                     fe80::7624:9fff:fe2f:7feb
  1    331 ::1/128                  On-link
  3    291 2605:59c8:44bf:bc00::/56 fe80::7624:9fff:fe2f:7feb
  3    291 2605:59c8:44bf:bc10::/64 On-link
  3    291 2605:59c8:44bf:bc10::6ef/128
                                    On-link
  3    291 2605:59c8:44bf:bc10:c431:fee9:93c:44bc/128
                                    On-link
  3    291 2605:59c8:44bf:bc10:fd94:6589:59c3:e766/128
                                    On-link
  3    291 fd9e:6d1d:d51e::/48      fe80::7624:9fff:fe2f:7feb
  3    291 fd9e:6d1d:d51e:10::/64   On-link
  3    291 fd9e:6d1d:d51e:10::6ef/128
                                    On-link
  3    291 fd9e:6d1d:d51e:10:7fce:f3dd:7860:8682/128
                                    On-link
  3    291 fd9e:6d1d:d51e:10:c431:fee9:93c:44bc/128
                                    On-link
  3    291 fe80::/64                On-link
 17    281 fe80::/64                On-link
  3    291 fe80::3025:3736:7d07:e190/128
                                    On-link
 17    281 fe80::6a0c:2ce9:f662:1473/128
                                    On-link
  1    331 ff00::/8                 On-link
  3    291 ff00::/8                 On-link
 17    281 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None**strong text**

This one here is a bit weird.
What is the 192.168.1.0 network?

That is the starlink routers ip.

Sorry I saw it as 192.168.1.1. yea I dont know what that is.

Having 2 default gateways can cause trouble. Since you don’t know this network, you might remove it by executing route delete 192.168.1.1

C:\Windows\system32>route delete 192.168.1.0
OK!

C:\Windows\system32>ping 192.168.13.100

Pinging 192.168.13.100 with 32 bytes of data:
Request timed out.

Ping statistics for 192.168.13.100:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),
Control-C
^C
C:\Windows\system32>route delete 192.168.1.1
The route deletion failed: Element not found.

Could you please try
tracert 192.168.13.100

C:\Windows\system32>tracert 192.168.13.100

Tracing route to 192.168.13.100 over a maximum of 30 hops

1 1 ms <1 ms <1 ms 192.168.1.1
2 24 ms 20 ms 21 ms 100.64.0.1
3 39 ms 38 ms 31 ms 172.16.251.104
4 27 ms 24 ms 33 ms undefined.hostname.localhost [206.224.64.220]
5 31 ms 34 ms 38 ms undefined.hostname.localhost [206.224.64.211]
6 dls-b23-link.ip.twelve99.net [62.115.147.32] reports: Destination net unreachable.

Trace complete.

I disabled the wifi and it pinged…

C:\Windows\system32>tracert 192.168.13.100

Tracing route to 192.168.13.100 over a maximum of 30 hops

1 2 ms 2 ms 2 ms console.gl-inet.com [192.168.0.250]
2 4 ms 2 ms 2 ms 192.168.13.100

Trace complete.

With the wifi disabled

Unfortunately disabling the WIFI is not an option and the Starlink router is unconfigurable as far as I know.

route add 192.168.13.0 mask 255.255.255.0 gw 192.168.0.250 /p should do the trick

C:\Windows\system32>route add 192.168.13.0 mask 255.255.255.0 gw 192.168.0.250 /p
route: bad argument 192.168.0.250

Not sitting in front of PC right now, so try this one:
route add 192.168.13.0 mask 255.255.255.0 192.168.0.250 /p

The main problem is that you are using 2 different networks - this does not work until you get the metrics / routes right.

You need to set a lower metric for the LAN instead of the WiFi.

This one should be the tutorial to fix this.

1 Like

It worked :slight_smile: Thank you. I have forum fatigue from troubleshooting this for 2 days lol… Out of curiosity, why did it work with DHCP? (I had to wait 22 hours to post this)