<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Experimental Coding, Photography, Blog and Art of Aryo Pinandito / A-Works, Inc &#187; Networking</title>
	<atom:link href="http://aryo.info/blog/tag/networking/feed" rel="self" type="application/rss+xml" />
	<link>http://aryo.info/blog</link>
	<description>Aryo Pinandito&#039;s Experimental Coding, Photography, Blog, and Art - A-Works, Inc</description>
	<lastBuildDate>Tue, 10 Aug 2010 02:06:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Change IP Address Using netsh from Command Prompt</title>
		<link>http://aryo.info/blog/2009/04/change-ip-address-using-netsh-from-command-prompt.html</link>
		<comments>http://aryo.info/blog/2009/04/change-ip-address-using-netsh-from-command-prompt.html#comments</comments>
		<pubDate>Fri, 24 Apr 2009 04:15:04 +0000</pubDate>
		<dc:creator>Aryo Pinandito</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[IPChanger]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://aryo.info/blog/?p=539</guid>
		<description><![CDATA[Network interface can be changed manually by using netsh command (netsh.exe) from Command Prompt. To change the IP to static IP, use the following command format:
netsh interface ip set address [Connection Name] [Source] [IP] [Netmask] [Gateway] [Metric]


[Connection Name] is the connection name which the network adapter is assigned to. You can see the name in [...]]]></description>
			<content:encoded><![CDATA[<p>Network interface can be changed manually by using <code>netsh </code>command (<code>netsh.exe</code>) from Command Prompt. To change the IP to static IP, use the following command format:</p>
<pre>netsh interface ip set address [Connection Name] [Source] [IP] [Netmask] [Gateway] [Metric]
<span id="more-539"></span></pre>
<ul>
<li><code>[Connection Name]</code> is the connection name which the network adapter is assigned to. You can see the name in the Control Panel Network Connections panel or by using the <code>ipconfig /all</code> command from the command prompt.</li>
<li><code>[Source]</code> is the source of IP address, whether it is static or dhcp. If you set to dhcp. You can ignore all other remaining parameter.</li>
<li><code>[IP]</code> is the IP address you set.</li>
<li><code>[Netmask]</code> is the network mask for the IP address.</li>
<li><code>[Gateway]</code> is the the gateway IP address.</li>
<li><code>[Metric]</code> is the metric for the gateway.</li>
</ul>
<p>for example:</p>
<pre>netsh interface ip set address "Local Area Connection" static 192.168.1.10 255.255.255.0 192.168.1.1 1</pre>
<p>The above command will set your &#8220;Local Area Connection&#8221; network adapter IP to static IP <code>192.168.1.10</code> with netmask <code>255.255.255.0</code>, gateway <code>192.168.1.1</code>, and gateway metric <code>1</code>.</p>
<p>To set DNS server for the network connection use the following command:</p>
<pre>netsh interface ip set dns "Local Area Connection" static 202.134.1.10</pre>
<p>To add a second DNS server, use the following command:</p>
<pre><span class="article">netsh interface ip add dns "Local Area Connection" 202.134.0.155 index=2
</span></pre>
<p><span class="article">OK, have a good try.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://aryo.info/blog/2009/04/change-ip-address-using-netsh-from-command-prompt.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Connecting Cellular Emulator to Windows Mobile 6 Professional Emulator</title>
		<link>http://aryo.info/blog/2009/01/connecting-cellular-emulator.html</link>
		<comments>http://aryo.info/blog/2009/01/connecting-cellular-emulator.html#comments</comments>
		<pubDate>Thu, 29 Jan 2009 05:32:16 +0000</pubDate>
		<dc:creator>Aryo Pinandito</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[.NET Compact Framework 2.0]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://aryo.info/blog/?p=459</guid>
		<description><![CDATA[Cellular Emulator is included in Windows Mobile 6 Professional SDK Refresh. It is very useful if you currently developing an application which utilizes SMS and/or phone call features on the device. The Cellular Emulator can emulate making and receiving a call to Windows Mobile 6 device emulator, as well as sending and receiving SMS. But [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-445" title="winmobile" src="http://aryo.info/wp-content/uploads/2009/01/winmobile.gif" alt="winmobile" width="161" height="82" />Cellular Emulator is included in Windows Mobile 6 Professional SDK Refresh. It is very useful if you currently developing an application which utilizes SMS and/or phone call features on the device. The Cellular Emulator can emulate making and receiving a call to Windows Mobile 6 device emulator, as well as sending and receiving SMS. But however, connecting the Cellular Emulator to Windows Mobile 6 Emulator is not so straight forward. It&#8217;s not like just start the emulator and they automatically connected. It does require a little trick to make it works.</p>
<p><span id="more-459"></span></p>
<p>Here&#8217;s a step by step guide to make things work:</p>
<ol>
<li>Start the Cellular Emulator by Clicking Start | All Programs | Windows Mobile 6 SDK | Tools | Cellular Emulator.</li>
<li>Notice at the bottom left corner status bar of the Cellular Emulator window, that is the COM port which is being used by the Cellular Emulator. Mine is <code>COM3</code>, but yours may be different port.<br />
<a href="http://aryo.info/wp-content/uploads/2009/01/cell-emulator.gif"><img class="alignnone size-medium wp-image-460" title="cell-emulator" src="http://aryo.info/wp-content/uploads/2009/01/cell-emulator-300x276.gif" alt="cell-emulator" width="300" height="276" /></a></li>
<li>Start the Windows Mobile 6 Professional Emulator from within Microsoft Visual Studio 2005. You can start the by debugging (pressing F5) your currently developed mobile application. Or Clicking Tools | Device Emulator Manager&#8230; . Then select Windows Mobile 6 Professional Emulator from the Device Emulator Manager dialog box. Right click on it and then choose Connect. It will launch the WIndows Mobile 6 Professional Emulator.<br />
<a href="http://aryo.info/wp-content/uploads/2009/01/dev-em-mgr.gif"><img class="alignnone size-medium wp-image-461" title="dev-em-mgr" src="http://aryo.info/wp-content/uploads/2009/01/dev-em-mgr-300x214.gif" alt="dev-em-mgr" width="300" height="214" /></a></li>
<li>In the Windows Mobile 6 Professional Emulator click File | Configure&#8230;</li>
<li>Select Peripherals tab on Emulator Properties dialog window.</li>
<li>Under the Serial Port 0 there is a combo box which only have one <code>(Do not map)</code> option. <strong>Here is the tricky part</strong>: type in the COM port specified by the Cellular Emulator on the combo box, in this case: <code>COM3</code> and then click OK.<br />
<img class="alignnone size-full wp-image-463" title="emu-prop" src="http://aryo.info/wp-content/uploads/2009/01/emu-prop.gif" alt="emu-prop" width="290" height="245" /></li>
<li>The configuration process is now complete but the Windows Mobile 6 Professional Emulator is not yet connected to the Cellular Emulator. The last essential step is restarting the Windows Mobile 6 Professional Emulator by choosing File | Reset | Soft, and then click Yes.</li>
</ol>
<p>That&#8217;s it! Now you can have your Windows Mobile 6 Professional Emulator &#8220;talk&#8221; to the Cellular Emulator. Try to make a call and/or sending SMS from the device emulator and the Cellular Emulator.</p>
<p>This tutorial is adapted with a little modifications from <a href="http://weimenglee.blogspot.com/2007/10/tip-using-cellular-emulator-in-windows.html">Wei Meng Lee&#8217;s blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://aryo.info/blog/2009/01/connecting-cellular-emulator.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Avoid ARP Packet Data Sniffing Using Static ARP</title>
		<link>http://aryo.info/blog/2008/11/avoid-arp-packet-data-sniffing-using-static-arp.html</link>
		<comments>http://aryo.info/blog/2008/11/avoid-arp-packet-data-sniffing-using-static-arp.html#comments</comments>
		<pubDate>Tue, 18 Nov 2008 05:12:36 +0000</pubDate>
		<dc:creator>Aryo Pinandito</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://aryo.info/blog/?p=405</guid>
		<description><![CDATA[Did you ever realize that someone on your network could steal your private data such as username and password of your email?
It is possible to do with a method called ARP redirect or sometimes it is called ARP poisoning. This method is also often used by worms or spyware to hijack your private information gathered [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever realize that someone on your network could steal your private data such as username and password of your email?</p>
<p>It is possible to do with a method called ARP redirect or sometimes it is called ARP poisoning. This method is also often used by worms or spyware to hijack your private information gathered by those worms or spyware and sending &#8217;silently&#8217; through internet to it&#8217;s owner without you to be noticed. This is can be avoided by installing antivirus or anti-spyware that monitor and scan your network packet data activity on your network connections.</p>
<p><span id="more-405"></span></p>
<p>In <a title="Computer network" href="http://en.wikipedia.org/wiki/Computer_network">computer networking</a>, the <strong>Address Resolution Protocol</strong> (<strong>ARP</strong>) is the method for finding a host&#8217;s hardware address when only its <a title="Network Layer" href="http://en.wikipedia.org/wiki/Network_Layer">Network Layer</a> address is known (<a href="http://en.wikipedia.org/wiki/Address_Resolution_Protocol">wikipedia</a>). It means after your computer is finding a host&#8217;s IP address, it can resolve that host hardware address (MAC Address) using ARP.</p>
<p>For example, my computer connected to the internet through gateway <code>192.168.1.1</code>. After pinging an IP <code>192.168.1.1</code>, my computer will resolve it&#8217;s MAC address <code>00-19-21-67-f5-b7</code>. In Windows the ARP table that my computer use can be shown by using the arp command in command prompt:</p>
<pre>C:\Documents and Settings\Aryo&gt;arp -a

Interface: 192.168.1.2 --- 0x2
  Internet Address      Physical Address      Type
  192.168.1.1           00-19-21-67-f5-b7     dynamic</pre>
<p>From the above example, <code>00-19-21-67-f5-b7</code> is MAC Address of <code>192.168.1.1</code> host. It was dynamically generated after we ping the host. So any data send through <code>192.168.1.1</code> will be sent to host which MAC Address is <code>00-19-21-67-f5-b7</code>.</p>
<p>If someone or something or your network is sniffing or ARP poisoning your packet data, it will inject an ARP data to your computer ARP table. For example, after my computer is &#8216;poisoned&#8217; by <code>192.168.1.9</code> host (the sniffer), my computer ARP table will become like this:</p>
<pre>C:\Documents and Settings\Aryo&gt;arp -a

Interface: 192.168.1.2 --- 0x2
  Internet Address      Physical Address      Type
  192.168.1.1           00-14-38-13-2a-f0     dynamic
  192.168.1.9           00-14-38-13-2a-f0     dynamic</pre>
<p>From the above example, all of my packet data sent to IP address <code>192.168.1.1</code> will (also) be sent to <code>192.168.1.9</code> because in my ARP table, the host of IP <code>192.168.1.1</code> has hardware address <code>00-14-38-13-2a-f0</code> which is the hardware address of <code>IP 192.168.1.9</code>.</p>
<p>It means, if I send data to <code>192.168.1.1</code> the real sending is to <code>192.168.1.9</code> host. If the <code>192.168.1.9</code> host is also forwarding my sent data to and from the real gateway <code>192.168.1.1</code>, I may not realize that my network connection is being redirected to <code>192.168.1.9</code> without seeing my ARP table.</p>
<p>Connection before poisoning:</p>
<pre>My computer    &lt;------------------&gt;   Gateway
IP       192.168.1.2                  IP       192.168.1.1
Netmask  255.255.255.0                Netmask  255.255.255.0
MAC      00-19-D2-5C-C7-6A            MAC      00-19-21-67-f5-b7</pre>
<p>If it is only my computer is poisoned and not the gateway, it become:</p>
<pre>My computer    ----------&gt;   Sniffer   ---------------&gt;   Gateway
     &lt;--------------------------------------------------------
IP       192.168.1.2         IP       192.168.1.2         IP       192.168.1.1
Netmask  255.255.255.0       Netmask  255.255.255.0       Netmask  255.255.255.0
MAC      00-19-D2-5C-C7-6A   MAC      00-14-38-13-2a-f0   MAC      00-19-21-67-f5-b7</pre>
<p>It is called half-routing ARP poisoning. The sniffer only can read data sent from my computer to gateway and not the reverse way. If the gateway is also ARP poisoned, it become:</p>
<pre>My computer    &lt;---------&gt;   Sniffer   &lt;--------------&gt;   Gateway
IP       192.168.1.2         IP       192.168.1.2         IP       192.168.1.1
Netmask  255.255.255.0       Netmask  255.255.255.0       Netmask  255.255.255.0
MAC      00-19-D2-5C-C7-6A   MAC      00-14-38-13-2a-f0   MAC      00-19-21-67-f5-b7</pre>
<p>It is called full-routing ARP poisoning. The sniffer can also read the data sent from gateway to my computer and vice versa. What if the data sent to gateway is your private and unencrypted data? That&#8217;s could be a disaster! <img src='http://aryo.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p>If you suspect this or if you see duplicated MAC Address with different IP in ARP table, you can set a static ARP table for the gateway by using arp command. The following is an example to create a static ARP table on your computer. First, clear all ARP data entry by using the command:</p>
<pre>C:\Documents and Settings\Aryo&gt;arp -d</pre>
<p>And then create a static ARP entry to the gateway by using the following command:</p>
<pre>C:\Documents and Settings\Aryo&gt;arp -s 192.168.1.1 00-19-21-67-f5-b7</pre>
<p>Now the ARP entry for the gateway will become a static entry.</p>
<pre>C:\Documents and Settings\Aryo&gt;arp -a

Interface: 192.168.1.2 --- 0x2
  Internet Address      Physical Address      Type
  192.168.1.1           00-19-21-67-f5-b7     static
  192.168.1.111         00-11-22-33-44-55     dynamic</pre>
<p>Well, hope this article helps. Any comments or corrections are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://aryo.info/blog/2008/11/avoid-arp-packet-data-sniffing-using-static-arp.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tutorial: How to Ping a Specific Port</title>
		<link>http://aryo.info/blog/2008/11/tutorial-how-to-ping-a-specific-port.html</link>
		<comments>http://aryo.info/blog/2008/11/tutorial-how-to-ping-a-specific-port.html#comments</comments>
		<pubDate>Mon, 10 Nov 2008 09:49:11 +0000</pubDate>
		<dc:creator>Aryo Pinandito</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://aryo.info/blog/?p=397</guid>
		<description><![CDATA[Actually you can&#8217;t ping a specific port by using the ping command to test whether specified port is open or not. The ping command is used to test specified node/host whether it is live or not. It uses ICMP packets (wiki.answers.com).
You can test a port whether it is live or not by telneting the port [...]]]></description>
			<content:encoded><![CDATA[<p>Actually you can&#8217;t ping a specific port by using the ping command to test whether specified port is open or not. The ping command is used to test specified node/host whether it is live or not. It uses ICMP packets (<a href="http://wiki.answers.com/Q/Which_port_is_used_by_Ping_command">wiki.answers.com</a>).</p>
<p>You can test a port whether it is live or not by telneting the port using the telnet command. The telnet command is a utility to connect over TCP and defaults to port <span style="text-decoration: line-through;">25</span> 23 (make a TCP connection to port <span style="text-decoration: line-through;">25</span> 23 on remote computer/server). But if you specify a different port than <span style="text-decoration: line-through;">25</span> 23, then what the telnet command do is opening a TCP connection on the specified port to the remote computer/server.</p>
<p><span id="more-397"></span></p>
<p>For example (in Windows):</p>
<pre>C:\&gt; telnet 192.168.1.1 80</pre>
<p>In above example, the telnet command is trying to open HTTP connection (port 80) to the 192.168.1.1 host computer rather than opening the default telnet port (port <span style="text-decoration: line-through;">25</span> 23).</p>
<p>If the above connection is unsuccessful, then you will get this message:</p>
<pre>C:\&gt;telnet 192.168.1.1 80
Connecting To 192.168.1.1...Could not open connection to the host, on port 80: Connect failed</pre>
<p>Otherwise, you will prompted to enter another input/arguments for a service of the specified port.</p>
<p>If you dealing with firewall, typically it blocks TCP/UDP connection in a direction or both direction on specified port. So firewall didn&#8217;t deal with &#8220;telnet protocol&#8221; rather than TCP/UDP connections on specified ports.</p>
<p>For example, a firewall on destination host is blocking TCP connection on port <span style="text-decoration: line-through;">25</span> 23 (the default telnet protocol port) and not for the other ports. You are telnetting on port 80, your telnet command will be successful, and you will also knew that TCP port 80 on destination host is open.</p>
]]></content:encoded>
			<wfw:commentRss>http://aryo.info/blog/2008/11/tutorial-how-to-ping-a-specific-port.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows Router: Route Add Implementation</title>
		<link>http://aryo.info/blog/2007/11/windows-router-route-add-implementation.html</link>
		<comments>http://aryo.info/blog/2007/11/windows-router-route-add-implementation.html#comments</comments>
		<pubDate>Tue, 06 Nov 2007 10:18:29 +0000</pubDate>
		<dc:creator>Aryo Pinandito</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://aryo.info/blog/?p=148</guid>
		<description><![CDATA[Ini ada satu contoh kasus di kantor, dimana koneksi internet dilewatkan gateway (Linux Debian) dengan IP Address 192.168.1.1 dan Subnet Mask 255.255.255.0 atau biasa disingkat dengan 192.168.1.1/24 yang ingin di-share koneksi internetnya dengan menggunakan WiFi (ad-hoc hotspot).

Koneksi internet dibagi dengan sebuah hub, yang memiliki keterbatasan jumlah port yang digunakan oleh beberapa PC (baca: laptop) dengan [...]]]></description>
			<content:encoded><![CDATA[<p>Ini ada satu contoh kasus di kantor, dimana koneksi internet dilewatkan gateway (Linux Debian) dengan IP Address 192.168.1.1 dan Subnet Mask 255.255.255.0 atau biasa disingkat dengan 192.168.1.1/24 yang ingin di-share koneksi internetnya dengan menggunakan WiFi (ad-hoc hotspot).</p>
<p><span id="more-148"></span></p>
<p><a href="http://aryo.info/wp-content/files/images/WindowsRouterRouteAddImplementation_E011/networkdiagramoffice.png"><img id="id" style="border-width: 0px; padding-right: 10px" src="http://aryo.info/wp-content/files/images/WindowsRouterRouteAddImplementation_E011/networkdiagramoffice_thumb.png" border="0" alt="network-diagram-office" width="291" height="264" align="left" /></a>Koneksi internet dibagi dengan sebuah hub, yang memiliki keterbatasan jumlah port yang digunakan oleh beberapa PC (baca: laptop) dengan sistem operasi (yang pada umumnya adalah) Microsoft Windows. Lalu bagaimana caranya membagi kembali koneksi internet tersebut agar dapat digunakan oleh lebih banyak PC lagi tanpa membeli sebuah hub atau router tambahan?</p>
<p>Salah satu caranya adalah dengan menjadikan salah satu PC yang terhubung dengan hub tersebut menjadi sebuah gateway (router) untuk PC tambahan lainnya. Syaratnya PC tersebut memiliki 2 buah network interface (a.k.a LAN card) yang umumnya biasa ditemukan di laptop-laptop modern saat ini. Yaitu Ethernet Card dan WiFi card.</p>
<blockquote><p>Microsoft Windows bisa jadi router? Perlu install software apa?</p></blockquote>
<p>Bisa, untuk routing statik biasa, bahkan tanpa perlu meng-install software tambahan apapun. Bagaimana bisa? OS Microsoft Windows memiliki sebuah command <a href="http://aryo.info/blog/?p=141">route</a>, untuk memanipulasi routing. command inilah yang dimanfaatkan untuk membuat sebuah Windows Router.</p>
<p>Dari contoh kasus ini, PC yang dijadikan router memiliki konfigurasi IP</p>
<ul>
<li>Ethernet: <code>192.168.1.220/24</code></li>
<li>WiFi: <code>192.168.0.1/24</code></li>
</ul>
<p>Dari sini bisa dilihat bahwa network ID untuk Ethernet dan WiFi berbeda. Network ID WiFi inilah yang digunakan oleh PC tambahan untuk mengakses network ID Ethernet. Agar Network ID 192.168.0.x dapat mengakses Network ID 192.168.1.x, PC router perlu menambahkan route entry di routing table-nya.</p>
<p>Routing table bisa dilihat dengan menggunakan command route print, contohnya:</p>
<pre>C:\Users\VISTA&gt;route print
===========================================================================
Interface List
9 ...00 16 d4 8f 6a a5 ...... Realtek RTL8101E Family PCI-E Fast Ethernet
8 ...00 19 d2 5c c7 6a ...... Intel(R) PRO/Wireless 3945ABG Network Conne
1 ........................... Software Loopback Interface 1
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination  Netmask          Gateway         Interface      Metric
0.0.0.0              0.0.0.0          192.168.1.1     192.168.1.220  21
127.0.0.0            255.0.0.0        On-link         127.0.0.1      306
127.0.0.1            255.255.255.255  On-link         127.0.0.1      306
127.255.255.255      255.255.255.255  On-link         127.0.0.1      306
169.254.0.0          255.255.0.0      On-link         192.168.1.220  30
169.254.255.255      255.255.255.255  On-link         192.168.1.220  276
192.168.0.0          255.255.255.0    On-link         192.168.0.1    281
192.168.0.1          255.255.255.255  On-link         192.168.0.1    281
192.168.0.255        255.255.255.255  On-link         192.168.0.1    281
192.168.1.0          255.255.255.0    On-link         192.168.1.220  276
192.168.1.220        255.255.255.255  On-link         192.168.1.220  276
192.168.1.255        255.255.255.255  On-link         192.168.1.220  276
224.0.0.0            240.0.0.0        On-link         127.0.0.1      306
224.0.0.0            240.0.0.0        On-link         192.168.1.220  276
224.0.0.0            240.0.0.0        On-link         192.168.0.1    281
255.255.255.255      255.255.255.255  On-link         127.0.0.1      306
255.255.255.255      255.255.255.255  On-link         192.168.1.220  276
255.255.255.255      255.255.255.255  On-link         192.168.0.1    281
===========================================================================
Persistent Routes:
Network Address      Netmask          Gateway         Address        Metric
0.0.0.0              0.0.0.0          192.168.1.1     Default
===========================================================================</pre>
<p>Dari sini dapat dilihat bahwa Ethernet card memiliki ID <code>9</code> di daftar Interface List-nya dan WiFi card memiliki Interface ID <code>8</code>. Dari sini perlu menambahkan 2 route: dari Network ID <code>192.168.0.x/24</code> ke Network ID <code>192.168.1.x/24</code> dan sebaliknya.</p>
<p>Command-nya:</p>
<pre>&gt; route add 0.0.0.0 mask 0.0.0.0 192.168.1.220 if 8
&gt; route add 192.168.0.0 mask 255.255.255.0 192.168.0.1 if 9</pre>
<p>Sehingga jika dilihat pada routing table-nya akan menjadi:</p>
<pre>IPv4 Route Table
===========================================================================
Active Routes:
Network Destination  Netmask          Gateway         Interface      Metric
0.0.0.0              0.0.0.0          192.168.1.1     192.168.1.220  21
0.0.0.0              0.0.0.0          192.168.1.220   192.168.0.1    26
127.0.0.0            255.0.0.0        On-link         127.0.0.1      306
127.0.0.1            255.255.255.255  On-link         127.0.0.1      306
127.255.255.255      255.255.255.255  On-link         127.0.0.1      306
169.254.0.0          255.255.0.0      On-link         192.168.1.220  30
169.254.255.255      255.255.255.255  On-link         192.168.1.220  276
192.168.0.0          255.255.255.0    192.168.0.1     192.168.1.220  21
192.168.0.0          255.255.255.0    On-link         192.168.0.1    281
192.168.0.1          255.255.255.255  On-link         192.168.0.1    281
192.168.0.255        255.255.255.255  On-link         192.168.0.1    281
192.168.1.0          255.255.255.0    On-link         192.168.1.220  276
192.168.1.220        255.255.255.255  On-link         192.168.1.220  276
192.168.1.255        255.255.255.255  On-link         192.168.1.220  276
224.0.0.0            240.0.0.0        On-link         127.0.0.1      306
224.0.0.0            240.0.0.0        On-link         192.168.1.220  276
224.0.0.0            240.0.0.0        On-link         192.168.0.1    281
255.255.255.255      255.255.255.255  On-link         127.0.0.1      306
255.255.255.255      255.255.255.255  On-link         192.168.1.220  276
255.255.255.255      255.255.255.255  On-link         192.168.0.1    281
===========================================================================</pre>
<p>PC tambahan yang akan mengakses internet harus menjadikan PC Router (192.168.1.220) sebagai gateway-nya dan menjadikan PC Router tersebut sebagai DNS Server-nya.</p>
<p>PC tambahan yang akan menggunakan internet, harus menghubungkan WiFi-nya ke PC Router dengan metode ad-hoc dan menggunakan IP Address 192.168.1.x/24, dimana x = 1-254 sesuai dengan Network ID WiFi PC Router.</p>
<hr />Jika Wi-Fi card-nya (192.168.0.1) tidak memiliki gateway, dengan kata lain, gateway-nya hanya Ethernet Card (192.168.1.220), command route add tidak perlu dieksekusi, karena secara otomatis, gateway-nya akan diarahkan ke Ethernet card.</p>
]]></content:encoded>
			<wfw:commentRss>http://aryo.info/blog/2007/11/windows-router-route-add-implementation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Routing Command di Microsoft Windows</title>
		<link>http://aryo.info/blog/2007/09/routing-command-di-microsoft-windows.html</link>
		<comments>http://aryo.info/blog/2007/09/routing-command-di-microsoft-windows.html#comments</comments>
		<pubDate>Wed, 19 Sep 2007 05:09:58 +0000</pubDate>
		<dc:creator>Aryo Pinandito</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://aryo.info/blog/?p=141</guid>
		<description><![CDATA[Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
Manipulates network routing tables.
ROUTE [-f] [-p] [-4&#124;-6] command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface]

-f Clears the routing tables of all gateway entries. If this is
used in conjunction with one of the commands, the tables are
cleared prior to running the command.
-p When used with [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft Windows [Version 6.0.6000]<br />
Copyright (c) 2006 Microsoft Corporation. All rights reserved.</p>
<p>Manipulates network routing tables.</p>
<pre>ROUTE [-f] [-p] [-4|-6] command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface]</pre>
<p><span id="more-141"></span></p>
<p><span class="code">-f</span> Clears the routing tables of all gateway entries. If this is<br />
used in conjunction with one of the commands, the tables are<br />
cleared prior to running the command.</p>
<p><span class="code">-p</span> When used with the <span class="code">ADD</span> command, makes a route persistent across<br />
boots of the system. By default, routes are not preserved<br />
when the system is restarted. Ignored for all other commands,<br />
which always affect the appropriate persistent routes. This<br />
option is not supported in Windows 95.</p>
<p><span class="code">-4</span> Force using IPv4.</p>
<p><span class="code">-6</span> Force using IPv6.</p>
<p>command One of these:</p>
<blockquote><p>PRINT Prints a route<br />
ADD Adds a route<br />
DELETE Deletes a route<br />
CHANGE Modifies an existing route<br />
destination Specifies the host.<br />
MASK Specifies that the next parameter is the &#8216;netmask&#8217; value.<br />
netmask Specifies a subnet mask value for this route entry.<br />
If not specified, it defaults to 255.255.255.255.<br />
gateway Specifies gateway.<br />
interface the interface number for the specified route.<br />
METRIC specifies the metric, ie. cost for the destination.</p></blockquote>
<p>All symbolic names used for destination are looked up in the network database<br />
file <span class="code">NETWORKS</span>. The symbolic names for gateway are looked up in the host name<br />
database file <span class="code">HOSTS</span>.</p>
<p>If the command is <span class="code">PRINT</span> or <span class="code">DELETE</span>. Destination or <span class="code">gateway</span> can be a wildcard,<br />
(wildcard is specified as a star &#8216;*&#8217;), or the <span class="code">gateway</span> argument may be omitted.</p>
<p>If Dest contains a <span class="code">*</span> or <span class="code">?</span>, it is treated as a shell pattern, and only<br />
matching destination routes are printed. The &#8216;*&#8217; matches any string,<br />
and &#8216;?&#8217; matches any one char.</p>
<p>Examples:</p>
<pre>157.*.1, 157.*, 127.*, *224*.</pre>
<p>Pattern match is only allowed in <span class="code">PRINT</span> command.</p>
<blockquote><p><strong>Diagnostic Notes:</strong><br />
Invalid MASK generates an error, that is when (DEST &amp; MASK) != DEST.</p></blockquote>
<p>Example:</p>
<pre>&gt; route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
  The route addition failed: The specified mask parameter is invalid.
  (Destination &amp; Mask) != Destination.</pre>
<p>Examples:</p>
<pre>&gt; route PRINT
&gt; route PRINT -4
&gt; route PRINT -6
&gt; route PRINT 157* .... Only prints those matching 157*
&gt; route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
  destination^             ^mask     ^gateway     metric^    ^Interface</pre>
<p>If <span class="code">IF</span> is not given, it tries to find the best interface for a given<br />
gateway.</p>
<pre>&gt; route ADD 3ffe::/32 3ffe::1
&gt; route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2</pre>
<p><span class="code">CHANGE</span> is used to modify gateway and/or metric only.</p>
<pre>&gt; route DELETE 157.0.0.0
&gt; route DELETE 3ffe::/32</pre>
]]></content:encoded>
			<wfw:commentRss>http://aryo.info/blog/2007/09/routing-command-di-microsoft-windows.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
