Minggu, 14 September 2014

Windows XP Network Troubleshooting

Windows XP Network Troubleshooting

Troubleshooting TCP/IP - Detailed Steps

This article shows how to troubleshoot TCP/IP connectivity between computers on a Windows network.  If you haven’t already done so, disable XP’s Internet Connection Firewall on all local area network connections, and remove all firewall programs on the network.   Improperly configured firewalls are the most common cause of TCP/IP problems.

Open a Command Prompt Window

For many of these steps, you’ll be typing at the command prompt.  To open a command prompt window in Windows 2000 or XP, click Start | Run, type cmd in the box, and click OK.  To open a command prompt window in Windows 95, 98, or Me, click Start | Run, type command in the box, and click OK.  Type one command per line, and press Enter after each one to execute it.  To close the command prompt window, use the exit command.

Determine the TCP/IP Settings


Determine the TCP/IP settings of each computer on the local area network.  In XP, open the Network Connections folder, right click the LAN connection, and click Status | Support | Details.  For example, here are the Status and Details views for the LAN connection on an Internet Connection Sharing host.


In Windows 95/98/Me, click Start | Run, type winipcfg in the box, and click OK.  Select the LAN adapter from the menu, and click More Info.  Here’s the winipcfg view for an ICS client running Windows Me.

You can also see the TCP/IP settings from the command prompt.  This is especially convenient if a computer has more than one network adapter.  Use the ipconfig /all command, which is available in all versions except Windows 95.  The output from this command can be long, so it’s best to write it to a file.  Specify the file name in the command this way:
   ipconfig /all >ipconfig.txt
Here’s the output for a Windows XP ICS host that’s sharing its cable modem connection:

Description of TCP/IP Settings

Here are the TCP/IP settings that are used in network troubleshooting:
  • IP Address – Unique address assigned to a network adapter.  A computer with multiple network adapters has an IP address for each one, and each one must be in a different subnet.
  • Subnet Mask – Used in conjunction with the IP address to determine which subnet an adapter belongs to.  At the simplest level, communication is only possible between two network adapters when they’re in the same subnet.
  • Default Gateway - IP address of a computer or router, on one of this computer’s local area networks, that knows how to communicate with subnets not present on this computer.  For an Internet connection, the default gateway is a router belonging to your Internet service provider, and all access to sites on the Internet goes through it.  For an ICS client, the default gateway is the ICS host.  If you use a hardware router, it serves as the default gateway.
  • DHCP Server – If an adapter is configured to obtain an IP address automatically, this is the address of the server that provides it.  It could be your ISP, an ICS host, or a hardware router.
  • DNS Servers – IP address of one or more Domain Name Server computers. DNS servers translate Internet names (like www.practicallynetworked.com) to their IP addresses (like 63.146.109.227).

Subnets

See our article on subnets for a brief description of how they work.  For more details, see this Microsoft Knowledge Base article.
If two computers are supposed to be on the same subnet, but aren’t, something is wrong with the network hardware or software configuration.  This is most likely to happen when one of them receives an IP address of 169.254.x.x, which indicates that:
  • It’s configured to obtain an IP address automatically.
  • It couldn’t find a DHPC server on the network to make the assignment.
  • Windows assigned it an Automatic Private IP Address.
See our article on Specific Networking Problems and Their Solutions for more information.

Pinging


The ping command is the basic tool for testing TCP/IP connectivity.  It sends a special packet (called ICMP Echo) to a particular IP address and looks for a reply.  If everything is working right, the reply comes back.  If not, the ping times out in a few seconds.  By default, the ping command repeats the process four times.  Here’s an example of an ICS client computer pinging a Windows XP Home Edition ICS host, using the host’s IP address and its computer name.
When ping fails, you’ll see one of these error messages:
  • Request timed out - The IP address is valid, but there’s no reply from it.  If the IP address is on a local area network, the most likely cause is a firewall program blocking the ping.
  • Unknown host <name> or Ping request could not find host <name> - The computer name doesn’t exist on the local area network.  Make sure that NetBIOS over TCP/IP is enabled.
  • Destination host unreachable – The IP address isn’t on a local area network, and the default gateway can’t access it.  Either there’s no default gateway, its address is wrong, or it isn’t functioning.

Pinging the Local Area Network

Here is a series of ping commands to use in finding where a problem occurs on a local area network.  Run them in the order shown, and don’t go on to the next command until all of the previous commands work properly.  In this example:
  • The computer being tested is named Winxp, with IP address 192.168.1.101.
  • There’s another computer on the network, named Win98, with IP address 192.168.1.123
Substitute the appropriate IP addresses and computer names for your network.
Command
Target
What Ping Failure Indicates
ping 127.0.0.1
Loopback address
Corrupted TCP/IP installation
ping localhost
Loopback name
Corrupted TCP/IP installation
ping 192.168.1.101
This computer’s IP address
Corrupted TCP/IP installation
ping winxp
This computer’s name
Corrupted TCP/IP installation
ping 192.168.1.123
Another computer’s IP address
Bad hardware or NIC driver
ping win98
Another computer’s name
NetBIOS name resolution failure
To fix a corrupted TCP/IP Installation on Windows XP, follow the steps in this Microsoft Knowledge Base article. For Windows 95/98/Me, un-install the TCP/IP protocol in Control Panel | Network, reboot, and re-install it. If that doesn’t fix it, use this procedure on Windows 95 or 98.

Pinging the Internet

You can also use ping to find a problem with Internet access.  Run these commands in the order shown, and don’t go on to the next command until all of the previous commands work properly.  Use the Default Gateway and DNS Server addresses that you got from the winipcfg or ipconfig /all command.
Command
Target
What Ping Failure Indicates
ping w.x.y.z
Default Gateway
Default Gateway down
ping w.x.y.z
DNS Server
DNS Server down
ping w.x.y.z
Web site IP address
Internet service provider or web site down
ping www.something.com
Web site name
DNS Server down or web site down

Jumat, 12 September 2014

Cara Membangun aplikasi Web Server Linux OPENSUSE


Cara Membuat Web Server di Linux OpenSuse 

Sebelum anda membuat Web Server, pertama pastikan Open Suse sudah terinstal, kemudian setting repository dan network, juga DNS Server sudah terinstal dahulu .


> Instalasi OpenSuse 11.3 Text Mode<
>Konfigurasi Repository dan Network di OpenSuse 11.3<
>Cara Membuat DNS Server di Linux OpenSuse<
 

Setelah itu baru lakukan langkah-langkah berikut untuk membuat web server anda :

1. Install paket apache dengan perintah #zypper in apache2 dan Enter
clip_image002 

clip_image004 

Ketik y kemudian enter
 

2. Masuk ke direktori apache dengan perintah # cd /etc/apache2/vhosts.d kemudian lihat isi direktori dengan perintah # ls. Kemudian copy file vhost.template dengan nama terserah untuk konfigurasi file Web Server yang akan dibuat, dengan perintah # cp vhosts.template afris.conf (ganti afris.conf dengan nama konfigurasi web yang akan dibuat)

clip_image006

clip_image008

3. Edit konfigurasi web yang anda buat tadi dengan perintah # vi afris.conf (sesuai nama konfigurasi yang dibuat )

clip_image010 

4. Tekan i / insert untuk mengedit. Tambahkan NameVirtualHost *:80 tepatnya diatas <virtualHost *:80>. ServerAdmin webmaster@afris.dnstkj1.edu sedangkan ServerName www.afris.dnstkj1.edu (afris.dnstkj1.edu merupakan nama domain yang dibuat tadi). Kemudian DocumentRoot ganti dengan /home/afris/public_html . (afris ganti dengan nama user account  

clip_image012

yang telah dibuat. Lalu tekan Esc ketik :wq dan Enter.

 

 

5. Restart apache dengan perintah #/etc/init.d/apache2 restart

clip_image014 

6. Masuk ke direktori /home/afris/public_html dengan perintah # cd /home/afris/public_html . dan buat file index.html dengan perintah # vi index.html

clip_image016 

[clip_image018%255B3%255D.jpg] 

7. Isi script html seperti contoh di bawah ini. Kemudian simpan dan keluar.
clip_image020 

8. Cek web server dengan perintah # links www.afris.dnstkj1.edu
clip_image022
 

9. Jika berhasil tampilan akan seperti dibawah ini ( isi sesuai dengan kode html yang dibuat )
clip_image024
 

10. Cek melalui PC client. Buka browser kemudian ketikkan http://www.afris.dnstkj1.edu (nama domain kita). dan akan muncul tampilan web yang kita buat seperti gambar di bawah ini.
clip_image026 

 

 

Web Server



 CONTOH WEB SERVER
Web server adalah sebuah aplikasi server yang melayani permintaan HTTP atau HTTPS dari browser dan mengirimkannya kembali dalam bentuk halaman-halaman web. Halaman-halaman web yang dikirim oleh web server biasanya berupa file-file HTML dan CSS yang nantinya akan diparsing atau ditata oleh browser sehingga menjadi halaman-halaman web yang bagus dan mudah dibaca.
Cara Kerja Web Server
Cara kerja dari web server sebenarnya sangat mudah kita pahami. Contoh paling mudah seperti berikut; kita akan membuka sebuah halaman website, yang biasanya berupa URL http://www.wikipedia.org/home.htm. Kita akan mengetikkan URL tersebut di peramban atau browser kemudian menekan tombol enter,  tanpa kita ketahui proses yang terjadi di belakang layar atau di dalam browser itu sendiri, maka akan muncullah halaman website di layar monitor komputerkita. Proses yang akan terjadi pada browser adalah browser akan membentuk koneksi dengan web server, meminta halaman website dan menerimanya. Web server kemudian mengecek permintaan tersebut apakah tersedia atau tidak.
Apabila tersedia, maka web server akan mengirimkan data kepada browser. Apabila permintaan tidak ditemukan atau terjadi error maka web server akan mengirimkan pesan error kepada browser. Pembentukan koneksi, permintaan data, penerimaan data dari browser ke web server diatur dalam sebuah kode RFC2616. RFC2616 mencantumkan status web server dalam bentuk kombinasi tiga angka yang memiliki arti berbeda-beda. Status ini muncul di peramban saat kita mengakses web server tertentu. Status-status dari web server tersebut adalah :
100 : Continue
101 : Switching protocols
200 : OK
201 : Created
202 : Accepted
203 : Non-authoritative information
204 : No Content
205 : Reset Content
206 : Partial Content
300 : Multiple choices
301 : Moved permanently
302 : Found
303 : See other
304 : Not modified
305 : Use proxy
307 : temporary redirect
400 : Bad request
401 : Unauthorized
402 : Payment required
403 : Forbidden
404 : Not found
405 : Method not allowed
406 : Not acceptable
Pada jaman sekarang ini, sudah banyak tersedia vendor-vendor yang menyediakan layanan web server, baik yang berbayar maupun yang bersifat gratis, dengan masing-masing yang menawarkan kelebihan yang dimiliki web server milik mereka. Vendor-vendor yang ada tersebut seperti IIS yang merupakan kepemilikan Microsoft, Apache, Nginx dan Google GWS. Pangsa pasar yang dikuasai masing-masing vendor inipun berbeda-beda. berdasarkan riset yang dilakukan Netcraft pada Mei 2013, diperoleh hasil bahwa web server dengan penggunaan yang terbanyak adalah Apache dengan besar persentase pemakai sebesar 53,42%, lalu diikuti oleh IIS dengan persentase pengguna 16,69%, Nginx sebesar 15,52% dan Google GWS dengan persentase sebesar 3,42%. Berikut akan dijelaskan secara singkat dan jelas mengenai masing-masing web server yang dimiliki vendor-vendor tersebut.
Apache Web Server
Merupakan web server terbaik berdasarkan riset dari Netcraft dengan pengguna terbanyak. Kelebihannya dengan tiingkat kehandalan dan kestabilan yang tinggi serta fitur-fitur yang terbilang sangat lengkap membuat banyak pengguna mempercayakan Apache sebagai web server mereka. Selain itu sifatnya sebagai open source membuat web server ini menjadi web server yang gratis. Apache yang bersifat open source ini membuat para pengguna web server memfavoritkannya dan banyak dukungan-dukungan yang datang dari komunitas-komunitas dan sponsor untuk ikut mengembangkan web server ini sehingga menjadikan web server ini semakin handal. Apache web server dapat berjalan pada sistem operasi berbasis Windows atau Unix.
IIS Web Server
Adalah web server buatan Microsoft. Berbeda dengan Apache yang open source, untuk mendapatkan dukungan teknis penuh maka otomatis kita sebagai pengguna harus membeli lisensi IIS dari Microsoft. IIS menawarkan sistem jaringan antar muka yang mudah, aman dan stabil. Sesuai dengan perusahaan dimana IIS dikembangkan, maka IIS hanya bisa berjalan pada sistem operasi berbasis Windows.
Nginx Web Server
Alternatif lain web server yang bersifat open source adalah Nginx ( dibaca engine-x). Kelebihan dari Nginx web server hampir sama seperti Apache, bahkan beberapa riview dari pengguna adalah konfigurasi Nginx yang lebih mudah daripada Apache. Jadi untuk pengguna yang ingin menjalankan web server yang ringan dengan sistem pengoperasian yang mudah, maka cukup menggunakan Nginx.
Google Web Server (GWS)
Adalah web server buatan Google,Inc yang bersifat tertutup dan hanya digunakan oleh pihak Google sendiri sebagai web server mereka. Belum banyak info yang bisa didapat mengenai web server yang satu ini dikarenakan masih dalam tahap riset oleh Google













Web server adalah suatu perangkat komputer berupa software yang digunakan untuk menjadi sebuah komputer menjadi server yang dapat menangani semua kegiatan yang berhubungan dengan protokol HTTP. Komputer yang dilengkapi oleh software ini akan dapat diakses oleh komputer lain menggunakan web browser dengan cara menuliskan nama server (host name) atau dengan menuliskan nomor IP dari komputer tersebut. Setiap pembuatan aplikasi berbasis web akan membutuhkan web server untuk meletakkan aplikasi tersebut sehingga bisa diakses menggunakan protokol HTTP. Beberapa web-server yang saat ini banyak digunakan adalah: · Apache, web server gratis yang sangat mudah diperoleh. Awalnya apache ini berbasis UNIX, tetapi saat ini apache sudah tersedia untuk sistem operasi Windows. · IIS (Internet Information System), web server keluar Microsoft yang banyak digunakan sebagai web server untuk aplikasi web dengan sistem operasi windows, dan bahasa pemrograman web ASP atau ASP.NET Dalam modul ini akan digunakan web server Apache, salah satu web server gratis yang mudah diperoleh dan mendukung pemrograman PHP. Untuk melihat apakah web server Apache sudah ada atau belum di komputer yang akan digunakan adalah dengan membuka web browser dan menuliskan localhost atau no IP dari komputer. Bila di komputer ada sudah ada web server maka hasilnya adalah seperti gambar 1.4.







Bila tidak ada web server di komputer, maka hasilnya adalah sebagai berikut:



Bila di komputer sudah ada web server, maka selanjutnya tinggal membuat aplikasi web. Dalam pembuat aplikasi web pertama kali, letakkan program aplikasi yang dibuat di dalam folder: c:\apache2triad\htdocs, dan bila menggunakan folder khusus letakkan folder tersebut dalam folder di atas. Penguabhan folder web dapat dilakukan dengan mengubah [documentRoot] pada file c:\apache2triad\conf\httpd.conf dengan cara sebagai berikut: