Default gateway on a Sun

I want to add a default gateway to a sun and I don't remember how. Could someone can help me ?
christgAsked:
Who is Participating?
 
alextrConnect With a Mentor Commented:
insert IP address of gateway on /etc/defaultrouter file
0
 
christgAuthor Commented:
If the file doesn't exist, do I have to create it.

And after that, will I need to reboot ?
0
 
ahoffmannCommented:
create the file, and the route is there after reboot.
To avoid reboot for now, add the default route manually.
0
 
alextrCommented:
with the file, it will be permanent after reboot.
If you want to have routing works without reboot, insert

route add default <default gateway IP> 1
0
 
christgAuthor Commented:
Thanks alextr.
0
All Courses

From novice to tech pro — start learning today.