Hey.
I am trying to setup a default gateway in my jail.
I can do this by simply typing
On reboot it resets, so I tried adding then following line in the /etc/rc.conf file:
When I reboot the jail, it is still the old ip-address.
If I use the following code after booting:
it updates to the new IP-address. However, after restarting it resets back to the old ip-address
How can I make it happen each time I boot the jail?
I am trying to setup a default gateway in my jail.
I can do this by simply typing
Code:
route change default xx.xx.xx.xx
On reboot it resets, so I tried adding then following line in the /etc/rc.conf file:
Code:
defaultrouter="xx.xx.xx.xx"
When I reboot the jail, it is still the old ip-address.
If I use the following code after booting:
Code:
/etc/rc.d/routing restart
it updates to the new IP-address. However, after restarting it resets back to the old ip-address
How can I make it happen each time I boot the jail?