Thursday, December 1, 2022
HomeApplecommunity - How do I cut up the routing desk to utilize...

community – How do I cut up the routing desk to utilize a RAP?


My employer has offered me with an Aruba RAP—distant entry level. It’s related to my router by way of Ethernet, and to my work offered iMac by way of Ethernet. It gives me with an inner IP handle while not having a VPN. I need to cut up the routing in order that solely work associated site visitors goes by the RAP. All different site visitors ought to use the Wi-fi connection, which is tied to my house community.

Once I plugged the RAP in, a second default route appeared within the output of ip route present

default by way of 10.135.2.1 dev en0
default by way of 192.168.4.1 dev en1
...

I deleted the 10.135.2.1 default from the checklist

sudo route -n delete default 10.135.2.1

After which I added the 2 IP ranges for work that I need to use the RAP.

networksetup -setadditionalroutes "Ethernet" 10.0.0.0 255.0.0.0 10.135.2.1 129.130.0.0 255.255.0.0 10.135.2.1

I can see the extra routes.

$ networksetup -getadditionalroutes "Ethernet"
10.0.0.0 255.0.0.0 10.135.2.1
129.130.0.0 255.255.0.0 10.135.2.1

And the routing desk seems to be appropriate.

$ ip route present
default by way of 192.168.4.1 dev en1
10.0.0.0/8 by way of 10.135.2.1 dev en0
10.135.2.0/24 dev en0  scope hyperlink
10.135.2.1/32 dev en0  scope hyperlink
10.135.2.100/32 dev en0  scope hyperlink
127.0.0.0/8 by way of 127.0.0.1 dev lo0
127.0.0.1/32 by way of 127.0.0.1 dev lo0
129.130.0.0/16 by way of 10.135.2.1 dev en0
169.254.0.0/16 dev en0  scope hyperlink
169.254.0.0/16 dev en1  scope hyperlink
192.168.4.0/22 dev en1  scope hyperlink
192.168.4.1/32 dev en1  scope hyperlink
192.168.5.140/32 dev en1  scope hyperlink
224.0.0.0/4 dev en0  scope hyperlink
224.0.0.0/4 dev en1  scope hyperlink
255.255.255.255/32 dev en0  scope hyperlink
255.255.255.255/32 dev en1  scope hyperlink

Nevertheless, my community connection is not working.

$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 knowledge bytes
ping: sendto: No path to host
ping: sendto: No path to host
Request timeout for icmp_seq 0
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 packets obtained, 100.0% packet loss

nslookup does work, however it’s utilizing the DNS servers related to the RAP connection. Not those I’ve set for my house community.

$ nslookup google.com
Server:     10.130.30.52
Deal with:    10.130.30.52#53

Non-authoritative reply:
Title:   google.com
Deal with: 142.250.190.46

I can reboot the machine, which reset the routing desk to having two defaults once more, and my community connectivity works. However, all of the site visitors goes by the RAP at that time.

How can I (a) cut up the routing in order that the ten.0.0.0/8 and 129.130.0.0/16 site visitors goes by the RAP (Ethernet/en0), and all different site visitors by Wi-fi (en1), and (b) make that routing change persistent throughout a reboot?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments