Static IP on VPS

I would like to change the IP setup on my VPS from dynamic to static and am not sure what changes I need to make.

Is this OK?

Ifconfig_vtnet0="168.235.83.***/24"

Do I need defaultrouter/gateway settings?

Presumably I will need to create resolv.conf manually

Anything else I need to look into?
 
Assuming you mean on RamNode, yes you need a default router. I don't recall how I found out what mine was or that I even needed to use it but it was probably from instructions found on their web site's documentation. If my address was yours, my default router would be in rc.conf and "defaultrouter=168.235.83.1" Right after that would be ifconfig_em0="inet 168.235.83.<yourip> netmask 255.255.255.0"

I'm only assuming it works the same as mine. You can contact support via support email or on Mastodon
 
DHCP typically sets IP address, subnet mask, gateway address and one or more DNS servers. If you use static addresses you have to configure all that by hand.
 
Back
Top