# Connect 2 local subnets with a static ip on one

**URL:** <https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280>\
**Category:** Router\
**Created:** [March 26, 2024, 6:44pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280 "2024-03-26T18:44:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 6:44pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/1 "2024-03-26T18:44:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [March 26, 2024, 6:45pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/2 "2024-03-26T18:45:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 7:16pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/3 "2024-03-26T19:16:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [March 26, 2024, 7:45pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/4 "2024-03-26T19:45:44Z")

</div>

`route print` would be important as well.

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 7:56pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/5 "2024-03-26T19:56:15Z")

</div>

```auto
===========================================================================
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**
```

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [March 26, 2024, 8:06pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/6 "2024-03-26T20:06:07Z")

</div>

> [@larold](#):
>
> ```auto
> 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.25 35
> 
> ```

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

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 8:06pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/7 "2024-03-26T20:06:43Z")

</div>

That is the starlink routers ip.

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 8:07pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/8 "2024-03-26T20:07:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [March 26, 2024, 8:08pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/9 "2024-03-26T20:08:42Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 8:11pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/10 "2024-03-26T20:11:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [March 26, 2024, 8:12pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/11 "2024-03-26T20:12:16Z")

</div>

Could you please try  
`tracert 192.168.13.100`

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 8:14pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/12 "2024-03-26T20:14:31Z")

</div>

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](http://dls-b23-link.ip.twelve99.net) [62.115.147.32] reports: Destination net unreachable.

Trace complete.

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 8:15pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/13 "2024-03-26T20:15:47Z")

</div>

I disabled the wifi and it pinged…

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 8:18pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/14 "2024-03-26T20:18:18Z")

</div>

> > 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](http://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

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 8:30pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/15 "2024-03-26T20:30:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [March 26, 2024, 8:38pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/16 "2024-03-26T20:38:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 26, 2024, 8:43pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/17 "2024-03-26T20:43:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [March 26, 2024, 8:46pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/18 "2024-03-26T20:46:32Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![admon](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/admon/32/32880_2.png) [@admon](https://forum.gl-inet.com/u/admon)\
**Post date:** [March 26, 2024, 8:50pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/19 "2024-03-26T20:50:24Z")

</div>

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.

> **[How to tell Windows to use a different default network card ?](https://www.speedguide.net/faq/how-to-tell-windows-7-to-use-a-different-default-350)**
>
> In the presence of multiple network adapters, it is sometimes necessary to manually specify which one is the default used for internet routing, for example....

This one should be the tutorial to fix this.

---

<div class="post-metadata">

**Author:** ![larold](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@larold](https://forum.gl-inet.com/u/larold)\
**Post date:** [March 27, 2024, 7:37pm UTC](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280/20 "2024-03-27T19:37:30Z")

</div>

It worked 🙂 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)

[Next page](https://forum.gl-inet.com/t/connect-2-local-subnets-with-a-static-ip-on-one/40280.md?page=2)
