このページは2007年 8月 23日, 21:19に更新されました by coreyg

Network Configuration

From $1

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' 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.
タグ:
ファイルサイズ日付添付したユーザ 
 before editing.png
DHCP settings
10.74 kB2007年 8月 22日, 18:04coreygアクション
 editing network interface.png
Access Network Config File
5.57 kB2007年 8月 22日, 17:40coreygアクション
 Enter to Save.png
Hit ENTER to save
2.14 kB2007年 8月 22日, 17:40coreygアクション
 Exit to save.png
Type Y to save
1461 バイト2007年 8月 22日, 17:40coreygアクション
 login screen2.png
Login to root
1144 バイト2007年 8月 22日, 17:40coreygアクション
 network interface editor.png
Editing Network Settings
7.42 kB2007年 8月 22日, 17:40coreygアクション
コメント(7)
全7件のうち7件のコメントを表示: 全て見る
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
2007年 8月 24日, 14:03に編集
投稿日:2007年 8月 24日, 13:53 ()
Which directory contains the 'LocalSettings.php' file?
投稿日:2007年 8月 24日, 14:19 ()
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
投稿日:2007年 8月 29日, 13:09 ()
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
投稿日:2007年 8月 29日, 14:20 ()
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. 2007年 8月 31日, 05:44に編集
投稿日:2007年 8月 31日, 05:43 ()
Extra note I had to use the wiki name (i.e. $wgDreamServer = "http://www.lmywiki"; or else RSS feed references would not work.
投稿日:2007年 9月 4日, 08:20 ()
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)
投稿日:2007年 10月 17日, 23:58 ()
全7件のうち7件のコメントを表示: 全て見る
あなたはコメントを投稿するには ログイン しなければなりません。