Monday, May 5, 2008

Network Configuration - Open Garden

Network Configuration - Open Garden

Assigning a Static IP

This is a tutorial on how to assign a static IP for Deki Wiki VMware Certified Virtual Appliance or source running off of Debian.


1. Start up Deki Wiki

2. Once Deki Wiki boots you will see the boot screen in the VM player with the chance to Login. Click your mouse on the VM player screen and login using the credentials:

./login screen2.png

username: root
password: password

*When you type in password it will not show the characters as you type, so make sure you type it out correctly, this is a security measure.

3. Once you are logged in you want to type out the following command:

nano /etc/network/interfaces

./editing network interface.png
Example screen of how the code is typed in

4. After you type in the above command hit Enter and you will be presented with the following screen:

./before editing.png

5. Type out your network settings so that it matches the following format:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.90
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255

*Note: address is the Static IP address that you want to assign the Deki Wiki

6. The following screen shows my network configuration as it needs to be edited for my Deki Wiki to have a static IP.

./network interface editor.png

Tips:

  • Make sure you ping the static IP before you assign it to Deki Wiki to ensure that it isn't being used by another device
  • On XP the way to find out your network settings is go to Start->Run->type cmd and hit enter ->type ipconfig /all

7. Once you have verified that your settings are accurate then exit out of the editor by hitting CTRL X on your keyboard

8. You will be prompted to save the file to do so type Y

./Exit to save.png

9. Hit Enter at the screen below and your changes will be applied to the file:

./Enter to Save.png

10.After you have saved restart your Deki Wiki by clicking the VMplayer button at the top of the screen ->Troubleshoot->Reset

11. On restart the screen should display the IP address that you set for your static IP, if it only shows http:// then go back through the tutorial as there was probably an error somewhere.

If you would like help configuring settings like this you can purchase a MindTouch Support Plan and we will help you configure your Deki WIki.

Configuring NAT

If you want to run Deki Wiki via NAT, you will need to make a quick change. When you connect to Deki Wiki, PHP inherits the hostname and uses it to contact the API. This works wonderfully when the hostname is resolvable by both the browser and the VM. However, that's generally not the case in NAT scenarios. To configure Deki Wiki to work in NAT do the following:

Open 'LocalSettings.php' usually found in '/var/www/deki-hayes' and add the following line:

Code:
$wgDreamServer = "http://localhost";
Alternatively, if you're using hostnames (e.g. 'http://mywiki') to reach your wiki site, you can also add this hostname to your VM so that it will resolve it correctly when it sees it, but you'll need to do so for each wiki hostname.
Tag
none
Viewing 9 of 9 comments: view all
I'm running the VM on a test Windows 2003 server so I can demo the software to my managment. I don't know much about windows or linux. I can follow these instructions perfectly except I don't know what windows IP addresses match up to the linux network and the broadcast sections of the interfaces file. When I do an IP config in windows I see the "IP address" which I guess is the same as the "Adress". I see the "Default Gateway" which I assume is the same as the "gateway". I see the "Subnet Mask" which I assume is the same as the "netmask".

Where I seem to go wrong is in the interfaces file there seems to be two IP's that I am unable to match up with anything in my windows ipconfig. The "network" and the "broadcast" IP's don't seem to have anything that is obvious to me to match up from my windows IP config setting.

Interface File Settings:

address 10.56.15.171
gateway 255.255.255.0
netmask 255.255.255.0
network ?
broadcast ?

Windows ipconfig /all settings:

Ethernet adapter Team #0 - Adapter Fault Tolerance Mode:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Advanced Network Servil Adapter
Physical Address. . . . . . . . . : 00-11-25-AB-ED-C2
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.56.15.171
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.56.15.1
DNS Servers . . . . . . . . . . . : 10.0.12.120, 10.6.32.111
Primary WINS Server . . . . . . . : 10.6.7.1
Secondary WINS Server . . . . . . : 10.0.0.25

Any help would be appreciated.

Luke Morrison
edited 8 months ago
Posted 13:53, 24 Aug 2007 (8 months ago)
Which directory contains the 'LocalSettings.php' file?
Posted 14:19, 24 Aug 2007 (8 months ago)
Luke: your gateway is wrong in your setup, it should be 10.56.15.1

The IP address isn't the one it gives you in the IPconfig as that is the IP address that is assigned to the computer you are on. I'd recommend checking with whoever manages the network where you are demoing to get the Static Range for their IPs.

Network and broadcast is the range that the IP falls in

ie.

Network: 10.56.15.0
Broadcast: 10.56.15.255
Posted 13:09, 29 Aug 2007 (8 months ago)
Luke: one more thing. I'd recommend using DHCP to get the IP address and then logining into root and type: ifconfig to find out the IP address of the Wiki, then you can access it. That will be easier as if you change networks then you'll have to manually edit the Static IP settings if you want to access the Wiki
Posted 14:20, 29 Aug 2007 (8 months ago)
Thanks for the NAT information it worked a treat!

This is important information because VmWare + Linux + Wireless NICs don't play nicely. I had to use VmWare NAT/port mapping (available through C:\Program Files\VMware\VMware Player\vmnetcfg.exe) and you info finished off my puzzle. edited 8 months ago
Posted 05:43, 31 Aug 2007 (8 months ago)
Extra note I had to use the wiki name (i.e. $wgDreamServer = "http://www.lmywiki"; or else RSS feed references would not work.
Posted 08:20, 4 Sep 2007 (8 months ago)
Other notes: moving a working VM to an ESX Server.

I found that I had to use eth1 (eth0 didn't work). I also had to add a "ServerName = mywiki.domain.com" line in /etc/apache2/apache2.conf (as apache wouldn't start)
Posted 23:58, 17 Oct 2007 (7 months ago)
I just configured a static ip on my deki vmware server.

I found out that you don't have to reboot your server to have the new settings take effect, you can simply do a
# /etc/init.d/networking force-reload

or a

# /etc/init.d/networking restart
# ifdown eth0
# ifup eth0
Posted 04:10, 20 Dec 2007 (5 months ago)
I was trying to configure a static IP and followed the directions above - now I get an error in VMWare after the starting VMA comment it says "Not starting internet superserver: no services enabled"

Help!
Posted 21:49, 25 Mar 2008 (1 month ago)

No comments: