Skip to main content

Permanently add static network route

Comments

4 comments

  • dalem
    your method is correct But I tested on one of our own boxes and no joy as well Must be something to do with the private network being on a dumb switch and no real gateway set up (guessing) or that the network manager is messing it up workaround add ip route add 192.168.101.0/24 via 192.168.35.1 dev ens224 to /etc/rc.d/rc.local chmod +x /etc/rc.d/rc.local reboot
    0
  • cPanelLauren
    Thanks for chiming in @dalem! @John Schmerold if that suggestion works please let us know!
    0
  • John Schmerold
    yep, that works
    0
  • tonyotonio
    yup. this works, but seems a hacky fix?
    0

Please sign in to leave a comment.