Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
vps:dhcp-vs-static [2009-10-09 18:32:25] shaun.reitan Approved |
vps:dhcp-vs-static [2011-06-03 17:08:16] garrett.plasky Approved |
||
---|---|---|---|
Line 4: | Line 4: | ||
On RedHat/ | On RedHat/ | ||
- | - Edit the default ethernet configuration file:\\ <code console># vi / | + | - Edit the default ethernet configuration file:\\ <sxh shell>vi / |
- Replace the BOOTPROTO=dhcp line with BOOTPROTO=static. | - Replace the BOOTPROTO=dhcp line with BOOTPROTO=static. | ||
- | - Add the following lines to the end of the file, replacing the x's with your IP address, network mask, and default gateway, respectively. These can be found in your VPS manager under **Network Information**: | + | - Add the following lines to the end of the file, replacing the x's with your IP address, network mask, and default gateway, respectively. These can be found in your VPS manager under **Network Information**: |
NETMASK=x.x.x.x | NETMASK=x.x.x.x | ||
- | GATEWAY=x.x.x.x</ | + | GATEWAY=x.x.x.x</ |
- | - Save and quit the file (type :wq). Restart the network interface with:\\ <code console># / | + | - Save and quit the file (type :wq). Restart the network interface with:\\ <sxh shell>/ |
For Debian/ | For Debian/ | ||
- | - Edit the default ethernet configuration file:\\ <code console># vi / | + | - Edit the default ethernet configuration file:\\ <sxh shell>vi / |
- | - Replace the data in the file with the following, replacing the relevant information with the information provided in **Network Information** of your VPS manager:\\ <code># / | + | - Replace the data in the file with the following, replacing the relevant information with the information provided in **Network Information** of your VPS manager:\\ <sxh shell>/ |
# The loopback interfaceauto loiface lo inet loopback | # The loopback interfaceauto loiface lo inet loopback | ||
# The first network card - this entry was created during the Debian installation | # The first network card - this entry was created during the Debian installation | ||
Line 23: | Line 23: | ||
address x.x.x.x | address x.x.x.x | ||
netmask x.x.x.x | netmask x.x.x.x | ||
- | gateway x.x.x.x</ | + | gateway x.x.x.x</ |
If you are uncomfortable with doing this yourself, we would be happy to do so for you. Please email or call our support staff and they will make the necessary changes. | If you are uncomfortable with doing this yourself, we would be happy to do so for you. Please email or call our support staff and they will make the necessary changes. | ||
{{tag> | {{tag> |