<?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>Computer Support &#187; Networking</title>
	<atom:link href="http://www.xiitec.com/blog/category/system-administration/windows/networking-windows-system-administration-references/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +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>Installing the IPv6 Stack</title>
		<link>http://www.xiitec.com/blog/2008/02/15/installing-the-ipv6-stack/</link>
		<comments>http://www.xiitec.com/blog/2008/02/15/installing-the-ipv6-stack/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 23:46:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[IPv6]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=138</guid>
		<description><![CDATA[Windows Server 2003 provides native support for IPv6, but  Windows 2000 does not. To install the IPv6 stack for Windows 2000, you need to  first download it from here.

Run the executable and extract the files to a folder on your  server. Then install the protocol stack by running setup.exe. If you are [...]]]></description>
			<content:encoded><![CDATA[<p>Windows Server 2003 provides native support for IPv6, but  Windows 2000 does not. To install the IPv6 stack for Windows 2000, you need to  first download it from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=27B1E6A6-BBDD-43C9-AF57-DAE19795A088&amp;displaylang=en" target="_blank">here</a>.</p>
<p><span id="more-138"></span></p>
<p>Run the executable and extract the files to a folder on your  server. Then install the protocol stack by running <em>setup.exe</em>. If you are  running Service Pack 2 or later (and hopefully you are), you have to perform  some additional steps to get the installation to work. By default if you run the  setup program it will complain about the system not being at Service Pack 1.  Follow the directions on the following site to fix the problem: <a href="http://msdn.microsoft.com/downloads/sdks/platform/tpipv6/faq.asp" class="docLink" target="_blank">http://msdn.microsoft.com/downloads/sdks/platform/tpipv6/faq.asp</a>.</p>
<p>Once you have the stack installed, you should follow the steps  outlined in the graphical user interface instructions to configure it for a  particular network connection (which also applies to Windows Server 2003).</p>
<p><strong>Using a graphical user interface</strong></p>
<p style="font-weight: bold">&nbsp;</p>
<ol>
<li>Open the Control Panel.</li>
<li>From the <span class="docEmphBold">Network Connections</span>  applet, double-click the connection you want to install IPv6 for.</li>
<li>Click the <span class="docEmphBold">Properties</span>  button.</li>
<li>Click the <span class="docEmphBold">Install</span>  button.</li>
<li>Select <span class="docEmphBold">Protocol</span> and click the  <span class="docEmphBold">Add</span> button.</li>
<li>Select <span class="docEmphBold">Microsoft TCP/IP version  6</span> and click <span class="docEmphBold">OK</span>.</li>
<li>Click <span class="docEmphBold">Close</span>.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>The following command installs the IPv6 stack. It must be run  directly on the target server:</p>
<pre>&gt; netsh interface ipv6 install</pre>
<p>If you need to run the command remotely, you can use the  <em>psexec</em> command:</p>
<pre>&gt; psexec \\server01 netsh interface ipv6 install</pre>
<p><strong>Using VBScript</strong></p>
<p>There is no scripting interface to install the stack, but you  can shell out and run the <em>netsh</em> command as in the following example:</p>
<pre>' This code installs the IPv6 on the computer the script is run from.strCommand = "netsh interface ipv6 install"

set objWshShell = WScript.CreateObject("WScript.Shell")

intRC = objWshShell.Run(strCommand, 0, TRUE)

if intRC &lt;&gt; 0 then

WScript.Echo "Error returned from running the command: " &amp; intRC

else

WScript.Echo "Command executed successfully"

end if</pre>
<p>IPv6 is the next generation TCP/IP protocol suite intended to  replace IPv4. Adoption of IPv6 has been slow, but seems to be steadily gaining  momentum. Fortunately, Windows Server 2003 provides better support for IPv6 than  it did Windows 2000. For a good overview of IPv6 and how to configure the  Windows client, see the following FAQ: <a href="http://msdn.microsoft.com/downloads/sdks/platform/tpipv6/faq.asp" class="docLink" target="_blank">http://msdn.microsoft.com/downloads/sdks/platform/tpipv6/faq.asp</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/15/installing-the-ipv6-stack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Measuring Link Speed and Latency Between Two Hosts</title>
		<link>http://www.xiitec.com/blog/2008/02/15/measuring-link-speed-and-latency-between-two-hosts/</link>
		<comments>http://www.xiitec.com/blog/2008/02/15/measuring-link-speed-and-latency-between-two-hosts/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 23:41:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[linkspeed]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=137</guid>
		<description><![CDATA[ Using a command-line interface
The Windows Server 2003 Resource Kit  includes a new tool called linkspeed, which measures the connectivity  between two hosts. You run the command from one system and target a remote  system:
&#62; linkspeed /s \\&#60;ServerName&#62;

&#62; linkspeed /s &#60;ServerDNSName&#62;
Alternatively, you can specify the /dc switch to have  it test [...]]]></description>
			<content:encoded><![CDATA[<p> <strong>Using a command-line interface</strong></p>
<p>The Windows Server 2003 Resource Kit  includes a new tool called <em>linkspeed</em>, which measures the connectivity  between two hosts. You run the command from one system and target a remote  system:</p>
<pre>&gt; linkspeed /s \\<tt><em>&lt;ServerName&gt;</em></tt>

&gt; linkspeed /s <tt><em>&lt;ServerDNSName&gt;</em></tt></pre>
<p>Alternatively, you can specify the <tt>/dc</tt> switch to have  it test the machine&#8217;s current domain controller:</p>
<pre>&gt; linkspeed /dc</pre>
<p>I&#8217;ve tested <em>linkspeed</em> on Windows 2000. While it runs  without fatal errors, it doesn&#8217;t produce consistent results. It works best when  the target system is another Windows Server 2003 machine.</p>
<p>Finding the link speed between two hosts is often useful when  troubleshooting network connectivity problems. For example, if a client is  having problems authenticating to Active Directory, you should learn the link  speed between the client and the domain controller with which it is  authenticating. A slow speed, perhaps due to congestion, could be the cause. If  you want to determine the average link speed between two hosts, you should run  the <em>linkspeed</em> command several times over multiple days. The results for  any particular run of <em>linkspeed</em> could vary significantly depending on  what is happening in the network at that time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/15/measuring-link-speed-and-latency-between-two-hosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring TCP/IP Filtering</title>
		<link>http://www.xiitec.com/blog/2008/02/15/configuring-tcpip-filtering/</link>
		<comments>http://www.xiitec.com/blog/2008/02/15/configuring-tcpip-filtering/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 23:38:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[TCP/IP]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=136</guid>
		<description><![CDATA[This filtering is applied to inbound traffic and does not affect outbound  traffic.

Using a graphical user interface

 Open the Control Panel.
From the Network Connections applet, open the connection you want to configure.
Click the Properties button.
Select Internet Protocol (TCP/IP).
Click the Properties button.
Click the Advanced button.
Click the Options tab.
Select TCP/IP filtering.
Click the Properties button.
Check the box [...]]]></description>
			<content:encoded><![CDATA[<p>This filtering is applied to inbound traffic and does not affect outbound  traffic.</p>
<p><span id="more-136"></span></p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li> Open the Control Panel.</li>
<li>From the Network Connections applet, open the connection you want to configure.</li>
<li>Click the Properties button.</li>
<li>Select Internet Protocol (TCP/IP).</li>
<li>Click the Properties button.</li>
<li>Click the Advanced button.</li>
<li>Click the Options tab.</li>
<li>Select TCP/IP filtering.</li>
<li>Click the Properties button.</li>
<li>Check the box beside Enable TCP/IP Filtering.</li>
<li>Select Permit Only for TCP Ports, UDP Ports, and/or IP Protocols.</li>
<li>Click the Add button.</li>
<li>Enter the port or protocol number and click OK.</li>
<li>Repeat the last couple of steps until you&#8217;ve entered all desired ports and protocols.</li>
<li>After you are done, close all the dialog screens by clicking either OK or Close.</li>
<li>You will be prompted to reboot for the changes to take effect.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>The following command enables TCP/IP filtering:</p>
<pre>&gt; reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /vEnableSecurityFilters /t REG_DWORD /d 1</pre>
<p>You must reboot for the changes to take effect. To disable  filtering, change <tt>/d</tt> <tt>1</tt> to <tt>/d</tt> <tt>0</tt>.</p>
<p>Next, configure the protocols and ports you want to filter.  This must be done on a per-interface basis. To configure this using the  registry, you need to know the GUID assigned to the interface you want to  modify. This is a sample interface entry:</p>
<pre>HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{07383FC4-FF4D-4E16-9DD6-C27061719D76}</pre>
<p>To find out what adapter that corresponds with, you can use  this command (on Windows Server 2003):</p>
<pre>&gt; wmic nicconfig get caption,settingid</pre>
<p>Once you know the GUID of the interface, you can use the  <tt>reg</tt> <tt>add</tt> command to modify the <tt>RawIPAllowedProtocols</tt>,  <tt>TCPAllowedPorts</tt>, or <tt>UDPAllowedPorts</tt> values to filter what you  want. Each of those values is of type REG_MULTI_SZ. Here is an example of  setting protocols 25 and 80:</p>
<pre>reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{07383FC4-FF4D-4E16-9DD6-C27061719D76} /v RawIPAllowedProtocols /t REG_MULTI_SZ /d 25\080</pre>
<p>You can also use the WMIC utility to configure TCP/IP  filtering. These two commands show you how:</p>
<pre>&gt; wmic /node:"<tt><em>&lt;ServerName&gt;</em></tt>" nicconfig call EnableIPFilterSec(1)&gt; wmic /node:"<tt><em>&lt;ServerName&gt;</em></tt>" nicconfig where ipenabled=True call EnableIPSec

(<tt><em>&lt;TCPPortList&gt;</em></tt>),(<tt><em>&lt;UDPPortList&gt;</em></tt>),(<tt><em>&lt;ProtoList&gt;</em></tt>)</pre>
<p>This command allows all TCP and UDP ports, but allows only  protocols 80 (http) and 25 (smtp):</p>
<pre>&gt; wmic nicconfig where ipenabled=True call EnableIPSec (80,25),(0),(0)</pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code enables IP Filtering for all adapters and configures' filtering for all IP-enabled adapters.

' ------ SCRIPT CONFIGURATION ------

strComputer = "."

arrTCPPorts = Array ( 0 )       ' Allow all TCP ports

arrUDPPorts = Array ( 0 )       ' Allow all UDP ports

arrProtos   = Array ( 80, 25 )  ' Allow only HTTP and SMTP

' ------ END CONFIGURATION ---------

set objWMI = GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\cimv2")

set objAdapterConfig = objWMI.Get("Win32_NetworkAdapterConfiguration")

intRC = objAdapterConfig.EnableIPFilterSec( True )

if intRC = 0 then

WScript.Echo "IP Filtering for all adapters enabled"

elseif intRC = 1 then

WScript.Echo "IP Filtering enabled for all adapters, " &amp; _

"but you must reboot for the changes to take effect"

else

WScript.Echo "There was an error enabling IP Filtering for all " &amp; _

"adapters: " &amp; intRC

end ifset colNAConfigs = objWMI.ExecQuery( _

"select * " &amp; _

" from Win32_NetworkAdapterConfiguration " &amp; _

" where IPEnabled = True" )

for each objNAConfig in colNAConfigs

intRC = objNAConfig.EnableIPSec( arrTCPPorts, arrUDPPorts, arrProtos )

if intRC = 0 then

WScript.Echo "IP Filtering configured for '" &amp; _

objNAConfig.Description &amp; "'"

elseif intRC = 1 then

WScript.Echo "IP Filtering configured for '" &amp; objNAConfig.Description &amp; _

"', but you must reboot for the changes to take effect"

else

WScript.Echo "There was an error configuring IP Filtering for '" &amp; _

objNAConfig.Description &amp; "': " &amp; intRC

end if

next</pre>
<p>Filtering by port or protocol can be useful in certain  situations, but be aware of the limitations. A good example of when you might  want to configure filtering is for external web servers. If your web server is  running on the default HTTP port (80) and it is running no other networked  application, then you only need port 80 open. But allowing only port 80 traffic  also prevents the server from acting as a member in an Active Directory domain  (which requires several ports to be open) and makes remote administration  difficult because you can&#8217;t connect using the Terminal Services client.  Obviously you can add these ports to the list you allow, but remember that if  you do port/protocol filtering, you must have the ports/protocols open that are  needed to support the machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/15/configuring-tcpip-filtering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Viewing Network Traffic</title>
		<link>http://www.xiitec.com/blog/2008/02/15/viewing-network-traffic/</link>
		<comments>http://www.xiitec.com/blog/2008/02/15/viewing-network-traffic/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 23:35:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[network traffice]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=135</guid>
		<description><![CDATA[This is useful when you need to troubleshoot or debug application problems or  system communications failures. Particularly when you are having problems with a  particular protocol, such as LDAP or DNS, looking at the associated network  traffic can be helpful to see what is being transmitted and received.

&#160;


&#160;
Open the Network Monitor tool [...]]]></description>
			<content:encoded><![CDATA[<p>This is useful when you need to troubleshoot or debug application problems or  system communications failures. Particularly when you are having problems with a  particular protocol, such as LDAP or DNS, looking at the associated network  traffic can be helpful to see what is being transmitted and received.</p>
<p><span id="more-135"></span></p>
<p style="font-weight: bold">&nbsp;</p>
<ol class="docList" type="1">
<li>
<p style="font-weight: normal">&nbsp;</p>
<p class="docList">Open the Network Monitor tool  (<em>netmon.exe</em>). Network Monitor is not installed by default. To install  it:</p>
<p style="font-weight: bold">&nbsp;</p>
<ol>
<li>Go to the Control Panel and open the <span class="docEmphBold">Add or Remove Programs</span> applet.</li>
<li>Click on <span class="docEmphBold">Add/Remove Windows  Components</span>.</li>
<li>Double-click on <span class="docEmphBold">Management and  Monitoring Tools</span>.</li>
<li>Check the box beside <span class="docEmphBold">Network Monitor  Tools</span> and click <span class="docEmphBold">OK</span>.</li>
<li>Click <span class="docEmphBold">Next</span>.</li>
<li>Click <span class="docEmphBold">Finish</span>.</li>
</ol>
<ol class="docList" type="a"></ol>
</li>
<li>
<p style="font-weight: normal">&nbsp;</p>
<p class="docList">The first time you start Network Monitor, you will be asked  from which network interface you want to capture data. On Windows Server 2003,  Microsoft finally made the list of interfaces to choose easy to distinguish  because they labeled each one by its connection name (e.g., <span class="docEmphBold">Local Area Connection</span>). With Windows 2000, it doesn&#8217;t  include that information in the label, so choosing an interface is almost a  guessing game unless you know the MAC address prefix of your NIC card vendor. A  trick you can use to narrow the list of interfaces is to disregard any that have  a <span class="docEmphBold">Dial-up connection</span> setting marked as TRUE.  After you&#8217;ve selected an interface, click <span class="docEmphBold">OK</span>.</p>
</li>
<li>
<p style="font-weight: normal">&nbsp;</p>
<p class="docList">From the menu, select <span class="docEmphBold">Capture</span> &gt; <span class="docEmphBold">Start</span>.  If you don&#8217;t see the <span class="docEmphBold">Network Utilization</span> and  <span class="docEmphBold">Frames Per Second</span> indicators fluctuating (a sign  traffic is being captured), you likely picked the wrong interface in Step 2. If  so, stop the capture by selecting <span class="docEmphBold">Capture</span> &gt; <span class="docEmphBold">Stop</span> from  the menu. Then select <span class="docEmphBold">Capture</span> &gt; <span class="docEmphBold">Networks</span>.  You&#8217;ll be presented with the same screen as in Step 2 that allows you to select  the target interface.</p>
</li>
<li>
<p style="font-weight: normal">&nbsp;</p>
<p class="docList">When you want to stop the capture, select <span class="docEmphBold">Capture</span> &gt; <span class="docEmphBold">Stop</span> from the menu. Or if you want to immediately view  the traffic, select <span class="docEmphBold">Capture</span> &gt; <span class="docEmphBold">Stop and  View</span>.</p>
</li>
<li>
<p style="font-weight: normal">&nbsp;</p>
<p>If the captured data is too much to look at, you can filter it  by selecting <span class="docEmphBold">Display</span> &gt; <span class="docEmphBold">Filter</span> from  the menu. From there you can enter Boolean expressions to limit what is  displayed.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>The Windows Server 2003 Support Tools contains a new tool called  <em>netcap.exe</em> that can capture packets to a file for viewing later in  Network Monitor. Here is an example command line:</p>
<pre>&gt; netcap /C:d:\netcap.cap /N:1</pre>
<p>This command captures packets on interface #1 and stores the  output in <em>d:\netcap.cap</em>. To make sure you are capturing on the correct  interface, view the <em>netcap</em> help information:</p>
<pre>&gt; netcap /?</pre>
<p>At the very end, it displays the list of interfaces on the  system and their associated numbers. To view the contents of the capture file,  double-click it. This will launch the Network Monitor.</p>
<p>Network Monitor (NetMon) is not the most user-friendly tool,  but it offers powerful features for collecting, filtering, and analyzing a  network capture. For more on how to use some of the features of NetMon, see the  MS KB articles listed in the See Also section.</p>
<p>One thing that is worth noting about NetMon is that it has a  default buffer limit of 1 MB. After the data it captures exceeds 1 MB, it begins  to overwrite the oldest packets using FIFO (first in, first out). You can  increase the size of the buffer to a max of 1 GB. To increase the buffer, select  <span class="docEmphBold">Buffer Settings</span> from the <span class="docEmphBold">Capture</span> menu. Enter the maximum number of megabytes and  click <span class="docEmphBold">OK</span>.</p>
<p>If you are interested in an alternative to NetMon, Ethereal is  one of the most popular network traffic analyzers and it is available free from  the following site: <a href="http://www.ethereal.com/" class="docLink" target="_blank">http://www.ethereal.com/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/15/viewing-network-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting Network Connectivity Problems</title>
		<link>http://www.xiitec.com/blog/2008/02/14/troubleshooting-network-connectivity-problems/</link>
		<comments>http://www.xiitec.com/blog/2008/02/14/troubleshooting-network-connectivity-problems/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 01:18:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[connectivity]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=134</guid>
		<description><![CDATA[First, make sure your network adapter is working. Generally  there should be a flashing green light to indicate the adapter is connected and  transmitting data.

After you&#8217;ve checked the hardware, you can run several  command-line tools to aid in troubleshooting connectivity issues. A good first  step is to ping the target host, [...]]]></description>
			<content:encoded><![CDATA[<p>First, make sure your network adapter is working. Generally  there should be a flashing green light to indicate the adapter is connected and  transmitting data.</p>
<p><span id="more-134"></span></p>
<p>After you&#8217;ve checked the hardware, you can run several  command-line tools to aid in troubleshooting connectivity issues. A good first  step is to ping the target host, which can tell you if the remote host is  reachable and how long it takes to reach it:</p>
<pre>&gt; ping <tt><em>&lt;HostNameOrIP&gt;</em></tt></pre>
<p>Here are some of the status messages you can receive from <em>ping</em>:</p>
<dl class="docList">
<dt><em><span class="docPubcolor">Reply</span></em>  </dt>
<dd>
<p class="docList">The host was reachable.</p>
</dd>
<dt><em><span class="docPubcolor">Request timed out</span></em>  </dt>
<dd>
<p class="docList">The target host either did not respond or there is no host  configured with the corresponding IP address. You may also see this message if  there is a lot of network latency between the two endpoints. You can work around  this by using the <tt>-w</tt> option with ping and specifying the number of  milliseconds to wait for each reply.</p>
</dd>
<dt><em><span class="docPubcolor">Unknown host</span></em>  </dt>
<dd>
<p class="docList">If you used a DNS name in the ping command, this indicates that  the DNS name was not resolvable by the DNS client.</p>
</dd>
<dt><em><span class="docPubcolor">Destination unreachable</span></em>  </dt>
<dd>
<p class="docList">The ICMP traffic could not reach the network of the target  host. This is often due to a routing problem on an intermediate router or a  router being down.</p>
</dd>
</dl>
<p>If you&#8217;ve pinged a host and the request timed out or the host  was unreachable, a good tool to try next is <em>tracert</em>, which attempts to  trace a route from the source computer to the destination computer.</p>
<pre>&gt; tracert <tt><em>&lt;HostNameOrIP&gt;</em></tt></pre>
<p>This command shows you the path your data takes to get to the  destination. If there are connectivity problems with a remote host, this command  shows where the problem occurs.</p>
<p>If everything checks out, next run the <em>netdiag</em> command on the target  system. <em>netdiag</em> provides a wealth of information about various network  settings configured on the system along with information about DNS, Kerberos,  and Active Directory connectivity. Use the <tt>/debug</tt> option to view  detailed output. If you suspect authentication (Kerberos) to be a  potential issue, run the <em>kerbtray</em> utility to ensure you have functioning  Kerberos tickets.</p>
<p>If you are still having network problems, a good last step is  to look at the network traffic to see if you can spot any obvious errors being  transmitted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/14/troubleshooting-network-connectivity-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Viewing the Open Ports and Connections</title>
		<link>http://www.xiitec.com/blog/2008/02/14/viewing-the-open-ports-and-connections/</link>
		<comments>http://www.xiitec.com/blog/2008/02/14/viewing-the-open-ports-and-connections/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 01:15:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[connections]]></category>
		<category><![CDATA[open ports]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=133</guid>
		<description><![CDATA[ Using a graphical user interface
The Sysinternals TCPView tool is a  graphical interface that displays all of the active connections on a host. It  displays all of the connection information you might need, including process  name and ID, protocol, local address and port, and remote address and port. It  is a [...]]]></description>
			<content:encoded><![CDATA[<p> <strong>Using a graphical user interface</strong></p>
<p>The Sysinternals TCPView tool is a  graphical interface that displays all of the active connections on a host. It  displays all of the connection information you might need, including process  name and ID, protocol, local address and port, and remote address and port. It  is a real-time tool, so it shows connections that are terminating in red and new  connections in green. You can close a connection by right-clicking it and  selecting <span class="docEmphBold">Close Connection</span>. You can also kill the  associated process by selecting <span class="docEmphBold">End Process</span>.</p>
<p><span id="more-133"></span></p>
<p><strong>Using a command-line interface</strong></p>
<p>The <em>netstat</em> command displays all established  connections on a host:</p>
<pre>&gt; netstat</pre>
<p>Use the <tt>-a</tt> option to view all open ports regardless of  whether they are active. With the Windows Server 2003 version of <em>netstat</em>,  you can view the process ID associated with connections by specifying the  <tt>-o</tt> option.</p>
<p>The Sysinternals <em>netstatp</em> utility is the command-line version of  TCPView. It displays similar information to <em>netstat</em>, but it shows the  process name and ID associated with the connection by default:</p>
<pre>&gt; netstatp</pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code produces output very similar to the 'netstat -an' command.' It requires that the target machine have SNMP and the WMI SNMP

' Provider installed.

' ------ SCRIPT CONFIGURATION ------

strComputerIP = "127.0.0.1"

' ------ END CONFIGURATION ---------

set objLocator = CreateObject("WbemScripting.SWbemLocator")

set objWMI = objLocator.ConnectServer("", "root/snmp/localhost")

set objNamedValueSet = CreateObject("WbemScripting.SWbemNamedValueSet")

objNamedValueSet.Add "AgentAddress", strComputerIP

objNamedValueSet.Add "AgentReadCommunityName", "public"

objNamedValueSet.Add "AgentWriteCommunityName", "public"WScript.Echo " Proto  Local Address   Foreign Address       State"

set colTCPConns = objWMI.Instancesof("SNMP_RFC1213_MIB_tcpConnTable",, _

objNamedValueSet )

for each objConn in colTCPConns        WScript.echo "  TCP   " &amp; objConn.tcpConnLocalAddress &amp; ":" &amp; _

objConn.tcpConnLocalPort &amp; _

"         " &amp; objConn.tcpConnRemAddress &amp; ":" &amp; _

objConn.tcpConnRemPort &amp; "       " &amp; objConn.tcpConnState

next

set colUDPConns = objWMI.Instancesof("SNMP_RFC1213_MIB_udpTable",, _

objNamedValueSet )

for each objConn in colUDPConns

WScript.echo "  UDP   " &amp; objConn.udpLocalAddress &amp; ":" &amp; _

objConn.udpLocalPort &amp; "         *:*"

next</pre>
<p>When you take a look at the list of open connections on a server, you may be surprised to see so many. Unless the server is extremely busy, most should be in the LISTENING state, which simply means the port is open and waiting for a connection. For more on the various states that a connection may be in, see MS KB 137984.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/14/viewing-the-open-ports-and-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing Routes</title>
		<link>http://www.xiitec.com/blog/2008/02/14/managing-routes/</link>
		<comments>http://www.xiitec.com/blog/2008/02/14/managing-routes/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 01:11:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[manage]]></category>
		<category><![CDATA[route]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=132</guid>
		<description><![CDATA[ Using a command-line interface
The following command displays all the static and dynamic routes on a  system:
&#62; route print


This command only shows routes that start with 64:
&#62; route print 64.*
To add a temporary route (one that is erased after the system  reboots), use this command:
&#62; route ADD &#60;Network&#62; MASK &#60;Mask&#62; &#60;Gateway&#62; MEtrIC &#60;Metric&#62; [...]]]></description>
			<content:encoded><![CDATA[<p> <strong>Using a command-line interface</strong></p>
<p>The following command displays all the static and dynamic routes on a  system:</p>
<pre>&gt; route print</pre>
<pre></pre>
<p><span id="more-132"></span></p>
<p>This command only shows routes that start with 64:</p>
<p>&gt; route print 64.*</p>
<p>To add a temporary route (one that is erased after the system  reboots), use this command:</p>
<p>&gt; route ADD <tt><em>&lt;Network&gt;</em></tt> MASK <tt><em>&lt;Mask&gt;</em></tt> <tt><em>&lt;Gateway&gt;</em></tt> MEtrIC <tt><em>&lt;Metric&gt;</em></tt> IF <tt><em>&lt;Interface#&gt;</em></tt></p>
<p>For example:</p>
<p>&gt; route ADD 157.0.0.0 MASK 255.0.0.0  157.55.80.1 METRIC 3 IF 2</p>
<p>To add a permanent route, use the same command as before except  include the <tt>-p</tt> switch. To delete a route, use this command:</p>
<p>&gt; route DELETE <tt><em>&lt;Network&gt;</em></tt></p>
<p>For example:</p>
<p>&gt; route DELETE 157.0.0.0</p>
<p><strong>Using VBScript</strong></p>
<pre>' This code prints similar information to the "route print" command.

' Since the Win32_IP4RouteTable class was first introduced in

' Windows Server 2003, this script does not work against a

' Windows 2000 server.

' ------ SCRIPT CONFIGURATION ------

strComputer = "."

' ------ END CONFIGURATION ---------

set objWMI = GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\cimv2")

set colRoutes = objWMI.InstancesOf("Win32_IP4RouteTable")

for each objRoute in colRoutes    set colNetworkAdapters = objWMI.ExecQuery(_

                    "select * from Win32_NetworkAdapterConfiguration " &amp; _

                    " where Interfaceindex = " &amp; objRoute.InterfaceIndex )

    for each objNetworkAdapter in colNetworkAdapters

       for each strIP in objNetworkAdapter.IPAddress

          WScript.Echo "Interface: " &amp; strIP

       next

    next

WScript.Echo "Network:   " &amp; objRoute.Destination

    WScript.Echo "NetMask:   " &amp; objRoute.Mask

    WScript.Echo "Gateway:   " &amp; objRoute.NextHop

    WScript.Echo "Metric:    " &amp; objRoute.Metric1

' Other properties you can display:

    ' WScript.Echo "Age: " &amp; objRoute.Age

    ' WScript.Echo "Description: " &amp; objRoute.Description

    ' WScript.Echo "Information: " &amp; objRoute.Information

    ' WScript.Echo "Interface Index: " &amp; objRoute.InterfaceIndex

    ' WScript.Echo "Metric 2: " &amp; objRoute.Metric2

    ' WScript.Echo "Metric 3: " &amp; objRoute.Metric3

    ' WScript.Echo "Metric 4: " &amp; objRoute.Metric4

    ' WScript.Echo "Metric 5: " &amp; objRoute.Metric5

    ' WScript.Echo "Name: " &amp; objRoute.Name

    ' WScript.Echo "Protocol: " &amp; objRoute.Protocol

    ' WScript.Echo "Status: " &amp; objRoute.Status

    ' WScript.Echo "Type: " &amp; objRoute.Type

WScript.Echo

next

' This code shows how to add a route.

' Since the Win32_IP4RouteTable class was first introduced in

' Windows Server 2003, this script does not work against a

' Windows 2000 server.

' ------ SCRIPT CONFIGURATION ------

strComputer = "."

' ------ END CONFIGURATION ---------

set objLocator = CreateObject("WbemScripting.SWbemLocator")

set objWMI = objLocator.ConnectServer(strComputer, "root/CIMv2")

set objR = objWMI.get("Win32_IP4RouteTable").SpawnInstance_( )

objR.Destination = "64.0.0.0"

objR.NextHop = "64.102.57.1"

objR.Mask = "255.0.0.0"

objR.InterfaceIndex = 65539

objR.Metric1 = 22

objR.Protocol = 1

objR.Type = 4

objR.Put_( )</pre>
<pre>Wscript.Echo "Successfully created route"</pre>
<p>If networks are designed properly, system administrators  shouldn&#8217;t have to worry much about how traffic is being routed. Nevertheless, in  certain situations where the network is not fully routed or you are experiencing  routing issues, you may need to dig into a server&#8217;s routing tables. You can also  add static routes to temporarily get traffic flowing the way you want to or  force it to go a certain way. However, I do not recommend configuring permanent  static routes if you can avoid it. This type of manual configuration if often  overlooked or forgotten and can be a headache to track down later unless the  configuration changes are well known by all that are maintaining the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/14/managing-routes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding a Computer&#8217;s Active Directory Site</title>
		<link>http://www.xiitec.com/blog/2008/02/14/finding-a-computers-active-directory-site/</link>
		<comments>http://www.xiitec.com/blog/2008/02/14/finding-a-computers-active-directory-site/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 01:08:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[find]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=131</guid>
		<description><![CDATA[ Using a command-line interface
In the following command, replace  &#60;HostName&#62; with the name of the host whose site you want  to find.
&#62; nltest /server:&#60;HostName&#62; /DsGetSite


To force a computer to use a particular site, modify the  registry as follows:
&#62; reg add HKLM\System\CurrentControlSet\Services\Netlogon\Parameters /v SiteName /t

REG_SZ /d &#60;SiteName&#62;
Using VBScript
Although you cannot use it directly [...]]]></description>
			<content:encoded><![CDATA[<p> <strong>Using a command-line interface</strong></p>
<p>In the following command, replace  <tt><em>&lt;HostName&gt;</em></tt> with the name of the host whose site you want  to find.</p>
<pre>&gt; nltest /server:<tt><em>&lt;HostName&gt;</em></tt> /DsGetSite</pre>
<pre></pre>
<p><span id="more-131"></span></p>
<p>To force a computer to use a particular site, modify the  registry as follows:</p>
<pre>&gt; reg add HKLM\System\CurrentControlSet\Services\Netlogon\Parameters /v SiteName /t

REG_SZ /d <tt><em>&lt;SiteName&gt;</em></tt></pre>
<p><strong>Using VBScript</strong></p>
<p>Although you cannot use it directly from a scripting language  such as VBScript, Microsoft provides a <tt>DsGetSiteName</tt> method that can be  used by languages such as Visual Basic and C++ to retrieve site coverage  information. In fact, the <tt>nltest</tt> command shown in the CLI solution is a  wrapper around this method.</p>
<p>The IADsTools interface provides a wrapper around this  method.</p>
<pre>set objIadsTools = CreateObject("IADsTools.DCFunctions")

strSite = objIadsTools.DsGetSiteName("<tt><em>&lt;HostName&gt;</em></tt>")

Wscript.Echo "Site: " &amp; strSite' This code forces the host the script is run on to use a particular site

' ------ SCRIPT CONFIGURATION ------

strSite = "<tt><em>&lt;SiteName&gt;</em></tt>"   ' e.g., Raleigh

' ------ END CONFIGURATION ---------

strNetlogonReg = "SYSTEM\CurrentControlSet\Services\Netlogon\Parameters"

const HKLM = &amp;H80000002

set objReg = GetObject("winmgmts:root\default:StdRegProv")

objReg.SetStringValue HKLM, strNetlogonReg, "SiteName", strSite

WScript.Echo "Set SiteName to " &amp; strSite</pre>
<p>Each domain controller has a <tt>server</tt> object that is  contained within a site. Clients are differentthey are associated with a site  based on their IP address, and the corresponding subnet that it matches is in  the <tt>Subnets</tt> container. The client site information is important because  it determines which domain controller it will authenticate against. If the  client&#8217;s IP address does not match a subnet range of any of the subnets stored  in Active Directory, it will randomly pick a site to use, which means it could  authenticate against any domain controller in the domain.</p>
<p>Finding the site that contains a client is an important first  step when troubleshooting authentication delays or errors. If a client is  experiencing significant delays, it could be that the client is authenticating  with a random site because it is on a new subnet that has yet to be added to  Active Directory. This may also result in a client authenticating over a slow  WAN link.</p>
<p>You can bypass the part of the DC Locator process that  determines a client&#8217;s site by hardcoding it in the Registry. This is generally  not recommended and should primarily be used as a troubleshooting tool. If a  client is experiencing authentication delays due to a misconfigured  <tt>site</tt> or <tt>subnet</tt> object, you can hardcode its site so they  temporarily point to a more optimal location (and domain controller).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/14/finding-a-computers-active-directory-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Registering DNS Records or Flushing the DNS Cache</title>
		<link>http://www.xiitec.com/blog/2008/02/14/registering-dns-records-or-flushing-the-dns-cache/</link>
		<comments>http://www.xiitec.com/blog/2008/02/14/registering-dns-records-or-flushing-the-dns-cache/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 23:18:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[flush]]></category>
		<category><![CDATA[Register]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=130</guid>
		<description><![CDATA[Using a command-line interface
The following command displays the contents of the local DNS cache:
&#62; ipconfig /displaydns

And this clears that cache:
&#62; ipconfig /flushdns
The following command causes the local host to reregister its  DNS records via dynamic DNS:
&#62; ipconfig /registerdns
Using VBScript
' This code flushes the local DNS cache.  There are no scripting

' interfaces designed to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using a command-line interface</strong></p>
<p>The following command displays the contents of the local DNS cache:</p>
<pre>&gt; ipconfig /displaydns</pre>
<p><span id="more-130"></span></p>
<p>And this clears that cache:</p>
<pre>&gt; ipconfig /flushdns</pre>
<p>The following command causes the local host to reregister its  DNS records via dynamic DNS:</p>
<pre>&gt; ipconfig /registerdns</pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code flushes the local DNS cache.  There are no scripting

' interfaces designed to do this so I have to shell out and run

' the ipconfig /flushdns command.

strCommand = "ipconfig /flushdns"

set objWshShell = WScript.CreateObject("WScript.Shell")

intRC = objWshShell.Run(strCommand, 0, TRUE)

if intRC &lt;&gt; 0 then

   WScript.Echo "Error returned from running the command: " &amp; intRC

else

   WScript.Echo "Command executed successfully"

end if' This code registers DNS records for the local host.  There are

' no scripting interfaces designed to do this so I have to shell

' out and run the ipconfig /registerhdns command.

strCommand = "ipconfig /registerdns"

set objWshShell = WScript.CreateObject("WScript.Shell")

intRC = objWshShell.Run(strCommand, 0, TRUE)

if intRC &lt;&gt; 0 then

   WScript.Echo "Error returned from running the command: " &amp; intRC

else

   WScript.Echo "Command executed successfully"

end if</pre>
<p>The Windows operating system maintains a name resolution cache  of DNS records that the system has queried. This cache is maintained in memory  and speeds up future requests for the same record. Each record has an associated  time-to-live value. This setting informs clients of the maximum amount of time  to cache that particular record. After the time-to-live period expires, Windows  removes the record from its cache.</p>
<p>The Windows name resolution cache is maintained by the DNS  Cache (DnsCache) service. You can prevent records from being cached by stopping  this service (and disabling it if you never want records to be cached again). If  you are getting strange results when querying DNS, you may want to view the  local DNS cache to see if you are accessing locally cached records instead of  what is current on the DNS Server.</p>
<p>The <tt>/registerdns</tt> option of <tt>ipconfig</tt> attempts  to dynamically reregister DNS records for all IP addresses configured on the  system. The DHCP Client (Dhcp) service does the DNS reregistration, so if that  service is disabled, the <tt>/registerdns</tt> option won&#8217;t work (even if all  addresses are statically configured).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/14/registering-dns-records-or-flushing-the-dns-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring DNS Settings</title>
		<link>http://www.xiitec.com/blog/2008/02/14/configuring-dns-settings/</link>
		<comments>http://www.xiitec.com/blog/2008/02/14/configuring-dns-settings/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 23:15:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Configure DNS]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=129</guid>
		<description><![CDATA[Using a graphical user interface
To configure the DNS suffix, do the following:

From the Control Panel, open the System applet.
Select the Computer Name tab (Network Identification tab on Windows 2000).
Click the Change button (Settings button on Windows 2000).
Click the More button.
Enter the suffix under the Primary DNS suffix of this computer heading.
Check the box beside Change [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using a graphical user interface</strong></p>
<p>To configure the DNS suffix, do the following:</p>
<ol>
<li>From the Control Panel, open the System applet.</li>
<li>Select the Computer Name tab (Network Identification tab on Windows 2000).</li>
<li>Click the Change button (Settings button on Windows 2000).</li>
<li>Click the More button.</li>
<li>Enter the suffix under the Primary DNS suffix of this computer heading.</li>
<li>Check the box beside Change primary DNS suffix when domain membership changes if you want the suffix to change to the name of the Active Directory domain the computer joins.</li>
<li>Click OK until all the windows are closed. You will be prompted to reboot for the changes to take effect.</li>
</ol>
<p><span id="more-129"></span>To modify the list of DNS servers used during name resolution, configure how unqualified names are resolved, and configure DNS dynamic registration, do the following:</p>
<ol>
<li>From the Control Panel, open the Network Connections applet.</li>
<li>Double-click the connection you want to modify.</li>
<li>From this screen you can configure whether to use the DNS servers obtained through DHCP or to manually enter them. In the latter case, you can enter preferred and alternate DNS servers.</li>
<li>To configure the other DNS settings, click the Advanced button.</li>
<li>Select the DNS tab.</li>
<li>From this screen you can configure additional DNS servers to use during resolution, configure how unqualified names are handled, set a DNS suffix for this connection, and configure DNS registration for this connection.</li>
<li>When you are done, click OK until all screens are closed.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>To view the current DNS configuration for all connections on  the local machine, run this command:</p>
<pre>&gt; netsh int ip show dns</pre>
<p>To make a connection using DHCP-specified DNS settings, use  this command:</p>
<pre>&gt; netsh int ip set dns "<tt><em>&lt;ConnectionName&gt;</em></tt>" dhcp</pre>
<p>Here is an example:</p>
<pre>&gt; netsh int ip set dns "Local Area Connection" dhcp</pre>
<p>To make a connection using a specified DNS server for name  resolution, use this command:</p>
<pre>&gt; netsh int ip set dns "Local Area Connection" static <tt><em>&lt;IPAddress&gt;</em></tt></pre>
<p>Here is an example:</p>
<pre>&gt; netsh int ip set dns "Local Area Connection" static 10.0.0.1</pre>
<p>This command allows you to specify only one DNS server for name  resolution.</p>
<p>With the same command, you can also configure whether the  connection registers the host&#8217;s name under the primary DNS suffix or the  connection-specific suffix. To register just the primary DNS suffix, append  &#8220;primary&#8221; to the end of the command. To register both, append &#8220;both.&#8221; To  register nothing, append &#8220;none.&#8221; Here is an example:</p>
<pre>&gt; netsh int ip set dns "Local Area Connection" static 10.0.0.1 primary</pre>
<pre></pre>
<pre></pre>
<p>With Windows Server 2003 Active Directory, you can now  configure most DNS client settings via Group Policy. Windows 2000 Group Policy  allowed you to only configure the primary DNS suffix (Computer Configuration &gt; Administrative Templates &gt; System &gt; DNS Client &gt; Primary DNS  Suffix).</p>
<p>With Windows Server 2003, you can configure the DNS suffix,  dynamic updates settings, search list, and DNS servers used for name resolution  among many other settings. These settings can be found by navigating the  following path of a Group Policy Object: Computer Configuration &gt; Administrative Templates &gt; Network &gt; DNS Client.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/14/configuring-dns-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
