Mister Disagree

"Be the change you wanna see in the world" - Michael Scofield



Client Workstation Configuration:

1. Make sure that your IP address received/configured is within 10.168.28.0/22 subnet
2. Change proxy setting into:

IP address: 10.168.30.155
port number: 3128


Example: For Firefox browser, go to Tools -->Options --> Advance -- >Setting -->Manual Proxy Configuration then fill in HTTP Proxy field with information given above.

3. Best practice is point the client gateway address to 10.168.30.155 (change firewall IP to other IP) in order to force packet go through proxy server without configuring proxy setting on every client’s browser.


Proxy Server Configuration:

1.
IP address Configuration
a. vi /etc/sysconfig/network-scripts/ifcfg-eth0








b. vi /etc/sysconfig/network-scripts/ifcfg-eth1








2. Squid installation, update and run service





3. Modify squid configuration file
a. Open squid configuration file



b. Once config file open, type script as shown below at any line




c. Save and close the file before restart squid services



4. Enable squid log service




5. Configure Transparent proxy
a. Open proxy configuration file



b. Once config file open, type script as shown below:




6. Restart squid services



LightSquid Setup

1. Download lightsquid from http://sourceforge.net/projects/lightsquid/files/lightsquid/1.8/

2. Locate the file downloaded into /var/www/html/

3. Extract the installation file downloaded: #tar –xzf lightsquid-1.8.tgz

4. Enter the installation folder: #cd /var/www/html/lightsquid

5. Install apache:

#chmod +x *.cgi
#chmod +x *.pl

#chown –R apache:apache *

6. modify lightsquid configuration file : #nano /etc/httpd/conf.d/lightsquid-1.8.conf

AddHandler cgi-script .cgi

AllowOverrride All

7. Restart HTTP Service: #service httpd restart

8. #./check-setup.pl

9. #./lightparser.pl

10. Modify crontab file: #crontab –e

*/15***/var/www/html/lightsquid/lightparser.pl

11. Open web browser and type http://10.168.30.155/lightsquid




Overview
SWITCH 1:
Fe0/1 – Fe0/2 –> VLAN 2 (Accounting)
Fe0/10 – Fe0/11 –> VLAN 4 (Engineering)
Fe0/24 –> Trunk Port
SWITCH 2:
Fe0/1 – Fe0/2 –> VLAN 3 (Management)
Fe0/10 – Fe0/11 –> VLAN 4 (Engineering)
Fe0/24 –> Trunk Port
Configuration:
Switch 1 Configuration:
Switch1# configure terminal
Switch1(config)# vlan 2
Switch1(config-vlan)# name Accounting
Switch1(config-vlan)# end
Switch1(config)# vlan 4
Switch1(config-vlan)# name Engineering
Switch1(config-vlan)# end
! Assign Ports Fe0/1 and Fe0/2 in VLAN 2
Switch1(config)# interface fastethernet0/1
Switch1(config-if)# switchport mode access
Switch1(config-if)# switchport access vlan 2
Switch1(config-if)# end

Switch1(config)# interface fastethernet0/2
Switch1(config-if)# switchport mode access
Switch1(config-if)# switchport access vlan 2
Switch1(config-if)# end
! Assign Ports Fe0/10 and Fe0/11 in VLAN 4
Switch1(config)# interface fastethernet0/10
Switch1(config-if)# switchport mode access
Switch1(config-if)# switchport access vlan 4
Switch1(config-if)# end
Switch1(config)# interface fastethernet0/11
Switch1(config-if)# switchport mode access
Switch1(config-if)# switchport access vlan 4
Switch1(config-if)# end
! Create Trunk Port Fe0/24
Switch1(config)# interface fastethernet0/24
Switch1(config-if)# switchport mode trunk
Switch1(config-if)# switchport trunk encapsulation dot1q
Switch1(config-if)# end

Router Configuration:

interface FastEthernet0
no ip address

interface FastEthernet0.2
encapsulation dot1Q 2 <----- class="Apple-style-span" span="">VLAN ID


no shutdown
ip address 192.168.2.1 255.255.255.0

interface FastEthernet0.3
encapsulation dot1Q 3
no shutdown
ip address 192.168.3.1 255.255.255.0
interface FastEthernet0.4
encapsulation dot1Q 4
no shutdown
ip address 192.168.4.1 255.255.255.0


VMware merupakan salah satu Virtual Machine application yang famous dan biasa kita guna. Dan aku percaya yang korang biasa guna VMware untuk kegunaan harian walaupun ade sesetangah orang lagi prefer Virtual Box atas sebab2 tertentu.

Tapi sebelum tu kita kena tau basic pasal Virtual Machine ni. Kegunaan VM adalah untuk membolehkan kira run multiple OS dalam 1 masa. Dan Virtual Machine (VM) ade 2 jenis (Hosted VM and Native VM). Hosted VM biasa kita install dalam laptop/desktop manakala Native VM hanya di install di server sebab die memang develop untuk server type VM.

Antara banyak2 VM application, VMware adalah yang paling bagus. Kenapa? Jawapannya mudah, sebab orang yang mencipta VMware adalah orang yang sama memperkenalkan teknologi Virtual Machine ni. So banyak la features baru yang diperkenalkan oleh VMware sebelum idea tu di ambil oleh syarikat VM lain seperti Virtual Box dan Xen. Selain banyak extra features, VMware juga lebih ringan dan kecil. Tapi ade juga orang lebih memilih Virtual Box kerana ia lebih sesuai untuk menjalankan kerja2 berkenaan database dan open source services sebab Virtual Box adalah product Oracle.


VMware Hypervisor atau nama penuhnya VMware ESXi Hypervisor bertindak sebagai client site VM yang fungsi nya hanya menyediakan platform untuk operating system. proses installation amat mudah, hanya perlu install VMware EXSi Hypervisor pada server dan kemudian up kan dengan cara configure IP info padanya supaya dapat dicapai melalui network. Memandangkan VMware Hypervisor hanya berfungsi sebagai server site VM, vSphere application perlu di install pada client workstation (desktop/laptop). Segala aktiviti seterusnya hanya melibatkan penggunaan Vsphere termasuk OS installation, OS usage dan lain2.



1) Hosted VM:

a. VMware

b. Virtual Box

c. Xen


2) Native VM:

a. VMware Hypervisor

b. Xen Hypervisor



Memandangkan ramai dah familiar dengan hosted VM, so thread ini akan menunjukan step2 installation native VM untukVMware Hypervisor (server site) dan VSphere client (client site). 4 langkah utama:

  1. Setting Up VMware ESXi Hypervisor.
  2. Configure IP setting for VMware ESXi Hypervisor.
  3. Establish connection between server and client.vSphere installation on client workstation.Setup virtual OS platform (windows Server 2008 R2)


1) Setting Up VMware ESXi Hypervisor

i. Insert the ESXi 4.1 Installable CD/DVD into the CD/DVD-ROM drive.

ii. Restart the machine.

iii. Set the BIOS to boot from the CD-ROM device. Once you insert the ESXi CD and reboot the server, it will display a boot menu with an option to launch “ESXi Installer” as shown below.

iv. After ESXi CD loaded successfully as figure shown below.

v. On the Welcome screen, press Enter to continue with the installation.

vi. Read the VMware end-user license agreement and accept it by pressing F11.

vii. In the Select a Disk screen, select the disk drive on which to install ESXi 4.1 and press Enter.
*Press F1 for information about the selected disk.
viii. Press F11 to start the installation.
ix. After completed installation , remove the installation CD/DVD and press Enter to reboot the host.
x. Press Enter to reboot the host. During the reboot operation, VFAT scratch and VMFS partitions are created on the disk.

2) Configuring IP Settings for VMware ESXi Hypervisor

i. Select Configure Management Network and press Enter.

ii. Select IP Configuration and press Enter.

iii. Select Set static IP address and network configuration then proceed by enter a the IP address, subnet mask, and default gateway and press Enter.


3) Establish connection between server and client.


4) vSphere installation on client workstation.



5) Virtual OS platform setup (for windows server 2008 R2)


i. In the Inventory panel, select the host machine proceeds by click create a new virtual machine on the Getting Started tab.

ii. Select Custom and click Next.

iii. Type a virtual machine name and click Next.

iv. Select a datastore in which to store the virtual machine files and click Next. The datastore must be large enough to hold the virtual machine and all of its virtual disk files.

v. Under Guest Operating System, select the operating system family (Microsoft Windows, Linux, Novell NetWare, Solaris, or other) and select the version from the drop-down list. This is the operating system for your virtual machine. Base your choice on your planned use of the virtual machine.

vi. Specify the size of the virtual disk and click Next. Enter the disk size in megabytes (MB) or gigabytes (GB). The default is 8GB. The virtual disk must be large enough to hold the guest operating system and all of the software that you intend to install, with room for data and growth.


vii. On the Ready to Complete New Virtual Machine page, review your selections and click Finish to create the new virtual machine.