Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
tutorials:vps_netbsd [2012/01/16 01:58] memnontutorials:vps_netbsd [2012/01/29 04:01] – [Networking]: Updates from sdf memnon
Line 37: Line 37:
 ==== Networking ==== ==== Networking ====
  
-Look at the first line of your control panel at vps.sdf.org and note YOUR_IP (e.g. 192.94.73.255) and YOUR_HOSTNAME (e.g. netbsd99).+Look at the first line of your control panel at vps.sdf.org and note YOUR_HOSTNAME (e.g. netbsd99), EXTERNAL_IP (e.g. 192.94.73.nnn)and INTERNAL_IP (e.g. 
 +10.1.0.nnn)
 + 
 +<code> 
 +VPS Maintenance Shell for netbsd99 (192.94.73.nnn / 10.1.0.nnn) 
 +                          --------  -------------   ---------- 
 +                          ^                       ^ 
 +                          |                       | 
 +                          |         EXTERNAL_IP     INTERNAL_IP 
 +                          | 
 +                          YOUR_HOSTNAME 
 +</code>
  
 Start your server, and log in via the console. (default=root:root) Start your server, and log in via the console. (default=root:root)
  
-Open /etc/rc.conf in an editor and, replacing the text YOUR_HOSTNAME and YOUR_IP with your own actual host name and IP number, add:+Open /etc/rc.conf in an editor and replace the text YOUR_HOSTNAME,EXTERNAL_IP and INTERNAL_IP with your own actual host name and IP number, add:
  
   hostname=YOUR_HOSTNAME.sdf.org   hostname=YOUR_HOSTNAME.sdf.org
   defaultroute=192.94.73.1   defaultroute=192.94.73.1
   auto_ifconfig=yes   auto_ifconfig=yes
-  ifconfig_xennet0="inet YOUR_IP netmask 0xffffff00" +  ifconfig_xennet0="inet EXTERNAL_IP netmask 0xffffff00" 
 +  ifconfig_xennet1="inet INTERNAL_IP netmask 0xffffff00" 
 +  
 Then put this in /etc/resolv.conf: Then put this in /etc/resolv.conf: