0

I'm trying to set up a default gateway which is not on the same subnet of my freebsd (freenas) machine. According to THIS article, there is way :

route add -host <<GW_IP>> -link eth0 -iface
route add default -ifa <<eth0ip>> <<GW_IP>>

However , appereantly, these commands are not persistent. In fact everytime I service netif restart my changes get lost. How can I make these changes permanent?

EDIT

Here is the output of netstat -rn after route add commands enter image description here

When I restart netif, the first two entries get removed.

Aaron Ullal
  • 163
  • 1
  • 2
  • 10

0 Answers0