Wednesday, February 27, 2019

I'm at work, trying to direct certain IPs to LAN and everything else to WiFi. Would love some help!

I read this comment and this article but apparently I'm still doing something wrong.

Here's my scenario. I have my routing table set to send everything over Wi-Fi by default (172.16.134.13) because I deleted the default entry for Ethernet. (I could have also put Wi-Fi at a higher priority.) I have this list of IP addresses for various services that need to go over Ethernet (interface 130.210.194.179, gateway 130.210.194.192, subnet mask 255.255.255.192). Here are a few, where *** is a wildcard and XXX is just a redacted number:

  • 130.210.92.**
  • 130.210.92.***
  • 130.210.93.**
  • 130.210.93.***
  • etc
  • 131.253.80.**
  • 131.253.80.***
  • etc
  • 128.XXX.XXX.XXX
  • 166.XXX.XXX.XXX
  • 52.114.XXX.XXX
  • 52.109.XXX.XXX

Now, I know which ones are class A or B or C, and I know what the "default" subnet mask is for each. But I don't know what entries to make to force these ranges of IPs (like the 13X.* ones, are those on my subnet?) or specific IPs (like the class A addresses at the bottom of my list) over the Ethernet interface. I tried this to get the first set working, to no avail (on Windows):

 (Destination) (Subnet Mask) (Gateway) (Ethernet) route add -p 130.210.80.0 mask 255.255.255.192 130.210.194.192 metric 266 if 3 

What am I doing wrong? I know the destination field matches addresses by which is most specific. Where would the IP 130.210.88.1 be routed to? Would this not match the entry above, given the rest of my routing table?



No comments:

Post a Comment