Franske ITC-2480 Lab 5: Difference between revisions

From ITCwiki
Jump to navigation Jump to search
(Created page with "=Introduction= =Lab Procedure= ==Prerequisites== # Open an SSH console to your Linux system using the PuTTY software, login with your standard user account ==Set a static IP=...")
 
(Add static IP lab)
Line 5: Line 5:
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account
==Set a static IP==
==Set a static IP==
 
# using your text editor of choice, open up the file /etc/network/interfaces
# Notice how it is currently set to dhcp for the eth0 interface.
# To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.
# Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.
## Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.
# Your configuration should be similar to this:
<pre>auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx</pre>
# Now save the file, and exit your file editor.
# Now we are going to apply the static IP change
## '''NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.'''
# Using the ifdown and ifup command, we are going to restart the network interface
# in a terminal, run ifdown eth0 && ifup eth0. Notice the two && symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.
# At this point, your machine should now be using a static address. Verify it is now applied using the ifconfig command.


==Install PHP & MySQL==
==Install PHP & MySQL==

Revision as of 15:07, 9 February 2014

Introduction

Lab Procedure

Prerequisites

  1. Open an SSH console to your Linux system using the PuTTY software, login with your standard user account

Set a static IP

  1. using your text editor of choice, open up the file /etc/network/interfaces
  2. Notice how it is currently set to dhcp for the eth0 interface.
  3. To set a static IP, you will need to change iface eth0 inet dhcp to iface eth0 inet static.
  4. Now, under the iface line you just edited, you will need to enter the address, netmask, and gateway for the static network.
    1. Reminder: it is common practice to indent (tab) static network configuration information in the interfaces file.
  5. Your configuration should be similar to this:
auto eth0
iface eth0 inet static
	address xxx.xxx.xxx.xxx
	netmask xxx.xxx.xxx.xxx
	gateway xxx.xxx.xxx.xxx
  1. Now save the file, and exit your file editor.
  2. Now we are going to apply the static IP change
    1. NOTE: You should only do network configuration changes when you have physical access to a machine. This way, if you mess up your configuration you will be able to fix it from a local console.
  3. Using the ifdown and ifup command, we are going to restart the network interface
  4. in a terminal, run ifdown eth0 && ifup eth0. Notice the two && symbols. This tells the linux shell that it should run the second command right after the first. If we do not define this, then we would be left with a machine that has its networking turned off.
  5. At this point, your machine should now be using a static address. Verify it is now applied using the ifconfig command.

Install PHP & MySQL

experiment with websites and databases

View Logfiles