Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I set and make the default gateway persistant across reboots?

0
Posted

How do I set and make the default gateway persistant across reboots?

0

The default gateway is easy to configure, just put the IP address of the default gateway in /etc/defaultrouter. If this file doesn’t exist just create it and add the IP. The IP address of the gateway should be the ONLY thing in this file, nothing else. Typically you should just use echo, like this: “echo 10.0.0.255 > /etc/defaultrouter”. Once you’ve changed the file you can restart the physical network interfaces to make the changes effective without a reboot (“svcadm restart physical”).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123