Assigning a Static IP – Bitnami WordPress VMware VM

Firstly enable SSH on the VM by running the following commands.

$ sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf
$ sudo start ssh

Once SSH is enabled SCP to “/etc/networking/interfaces” and changing the following (You may have to run chmod and give the user bitnami rights in order to edit it.

auto lo eth0 
iface lo inet loopback 
iface eth0 inet static 
address xxx.xxx.xxx.xxx (this is your static IP) 
netmask xxx.xxx.xxx.xxx (again, this should match your network.) 
gateway xxx.xxx.xxx.xxx (enter gateway/router address)
dns-search domain.local (Enter your domain if applicable)
dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

Save the changes and either restart the VM or run the below command for the changes to take affect.

 "/etc/init.d/networking restart"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s