Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
vps:dhcp-vs-static [2011-06-03 17:08:16]
garrett.plasky Approved
vps:dhcp-vs-static [2011-06-03 17:10:55]
garrett.plasky Approved
Line 6: Line 6:
   - Edit the default ethernet configuration file:\\ <sxh shell>vi /etc/sysconfig/network-scripts/ifcfg-eth0</sxh>   - Edit the default ethernet configuration file:\\ <sxh shell>vi /etc/sysconfig/network-scripts/ifcfg-eth0</sxh>
   - 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**:\\ <sxh shell>IPADDR=x.x.x.x+  - 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**:\\ <sxh shell>IPADDR=x.x.x.x
 NETMASK=x.x.x.x NETMASK=x.x.x.x
 GATEWAY=x.x.x.x</sxh> GATEWAY=x.x.x.x</sxh>
Line 14: Line 14:
  
   - Edit the default ethernet configuration file:\\ <sxh shell>vi /etc/network/interfaces</sxh>   - Edit the default ethernet configuration file:\\ <sxh shell>vi /etc/network/interfaces</sxh>
-  - Replace the data in the file with the followingreplacing the relevant information with the information provided in **Network Information** of your VPS manager:\\ <sxh shell>/etc/network/interfaces -- configuration file for ifup(8), ifdown(8)+  - Replace the addressnetmask, and gateway lines with the information provided in **Network Information** of your VPS Manager:\\ <sxh shell>/etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 # 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 27: Line 27:
 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>how-to vps}}+{{tag>how-to vps centos ubuntu debian}}