1. Create Manual Route Macbook
  2. Create Manual Route Mac Os
  3. Create Static Route Mac
Active11 months ago

Route ADD 192.168.35.0 MASK 255.255.255.0 192.168.0.2. If you were to use the route print command to look at the table now, you’d see your new static route. That’s all easy enough, but there is one extra little catch. When you add a static route, by default it only lasts until the next time you start Windows.

I am familiar with the route add default gw command in Linux to add a default gateway, but this doesnt work on Mac OS. I cant find any appropriate example in the route manual. Can anyone help me the command.

bmike
168k46 gold badges302 silver badges661 bronze badges
SThomas
Create Manual Route Mac

migrated from stackoverflow.comDec 6 '11 at 23:45

This question came from our site for professional and enthusiast programmers.

3 Answers

Daniel Serodio
9032 gold badges11 silver badges20 bronze badges
user1084291

Go to System Preference >> Network, and you can 'Set Service Order' of the network interfaces and effectively change the default route order in the routing table.

tdwong.startdwong.star

If you are intent on using route the man page for route will show you it's the same as most BSD route commands. You may need ip6config(and man page) as well if you care about IPv6 routing.

Mac

The 'mac' way is to set it from the System Preference pane under network and is preferred over using unix commands since it honors location changes and other events such as a reboot.

bmike

Create Manual Route Macbook

bmike

Create Manual Route Mac Os

168k46 gold badges302 silver badges661 bronze badges

Create Static Route Mac

You must log in to answer this question.