<?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>NamHuy &#187; network</title>
	<atom:link href="http://namhuy.org/blog/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://namhuy.org/blog</link>
	<description>Includes news, help, tutorials, programming, tips and how-to guides for Linux, UNIX, and BSD</description>
	<lastBuildDate>Fri, 20 Jan 2012 19:37:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ubuntu Networking for Basic and Advanced Users</title>
		<link>http://namhuy.org/blog/2010/09/18/ubuntu-networking-for-basic-and-advanced-users/</link>
		<comments>http://namhuy.org/blog/2010/09/18/ubuntu-networking-for-basic-and-advanced-users/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 22:04:43 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[netmask]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[traceroute]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=121</guid>
		<description><![CDATA[Configure Network Interface Using Command-Line You can configure a network interface from the command line using the networking utilities. You configure your network client hosts with the command line by using commands to change your current settings or by editing &#8230; <a href="http://namhuy.org/blog/2010/09/18/ubuntu-networking-for-basic-and-advanced-users/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Configure Network Interface Using Command-Line</strong></p>
<p>You can configure a network interface from the command line using the networking utilities. You configure your network client hosts with the command line by using commands to change your current settings or by editing a number of system files.</p>
<p><strong>Configuring DHCP address for your network card</strong></p>
<p>If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card</p>
<p>sudo vi /etc/network/interfaces</p>
<p># The primary network interface – use DHCP to find our address<br />
auto eth0<br />
iface eth0 inet dhcp</p>
<p><strong>Configuring Static IP address for your network card</strong></p>
<p>If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card</p>
<p>sudo vi /etc/network/interfaces</p>
<p># The primary network interface<br />
auto eth0<br />
iface eth0 inet static<br />
address 192.168.3.90<br />
gateway 192.168.3.1<br />
netmask 255.255.255.0<br />
network 192.168.3.0<br />
broadcast 192.168.3.255</p>
<p>After entering all the details you need to restart networking services using the following command</p>
<p>sudo /etc/init.d/networking restart</p>
<p><strong>Setting up Second IP address or Virtual IP address in Ubuntu</strong></p>
<p>If you are a server system administrator or normal user some time you need to assign a second ipaddress to your Ubuntu machine.For this you need to edit the /etc/network/interfaces file and you need to add the following syntax.Below one is the only example you need to chnage according to your ip address settings</p>
<p>sudo vi /etc/network/interfaces</p>
<p>auto eth0:1<br />
iface eth0:1 inet static<br />
address 192.168.1.60<br />
netmask 255.255.255.0<br />
network x.x.x.x<br />
broadcast x.x.x.x<br />
gateway x.x.x.x</p>
<p>You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all the values save this file and you need to restart networking services in debian using the following command to take effect of our new ipaddress.</p>
<p>After entering all the details you need to restart networking services using the following command</p>
<p>sudo /etc/init.d/networking restart</p>
<p><strong>Setting your ubuntu stytem hostname</strong></p>
<p>Setting up your hostname upon a ubuntu installation is very straightforward. You can directly query, or set, the hostname with the hostname command.</p>
<p>As an user you can see your current hostname with</p>
<p>sudo /bin/hostname</p>
<p><em>Example</em></p>
<p>To set the hostname directly you can become root and run</p>
<p>sudo /bin/hostname newname</p>
<p>When your system boots it will automatically read the hostname from the file /etc/hostname</p>
<p>If you want to know more about how to setup host name check here</p>
<p><strong>Setting up DNS</strong></p>
<p>When it comes to DNS setup Ubuntu doesn’t differ from other distributions. You can add hostname and IP addresses to the file /etc/hosts for static lookups.</p>
<p>To cause your machine to consult with a particular server for name lookups you simply add their addresses to /etc/resolv.conf.</p>
<p>For example a machine which should perform lookups from the DNS server at IP address 192.168.3.2 would have a resolv.conf file looking like this</p>
<p>sudo vi /etc/resolv.conf</p>
<p>enter the following details</p>
<p>search test.com<br />
nameserver 192.168.3.2</p>
<p><strong>Network Troubleshooting Tips</strong></p>
<p>Networking is sometimes considered to be complex, and hard to troubleshoot and manage. However, Linux provides you with Some tools to figure out exactly what’s going wrong on your network, and how to fix it.Here we are going see some tools and how to check the network connectivity.</p>
<p><strong>Ping</strong></p>
<p>Ping is a computer network tool used to test whether a particular host is reachable across an IP network. Ping works by sending ICMP “echo request” packets to the target host and listening for ICMP “echo response” replies (sometimes dubbed “Pong!” as an analog from the Ping Pong table tennis sport.) Using interval timing and response rate, ping estimates the round-trip time (generally in milliseconds although the unit is often omitted) and packet loss (if any) rate between hosts.</p>
<p>This is very basic and powerful tool to check Internet connection</p>
<p><em>Example</em></p>
<p>ping -c 4 google.com</p>
<p>-c option is used to pass how many packets you’re sending</p>
<p>If everything working file you should get reply looks like below</p>
<p>Pinging www.l.google.com [64.233.183.103] with 32 bytes of data:</p>
<p>Reply from 64.233.183.103: bytes=32 time=12ms TTL=244<br />
Reply from 64.233.183.103: bytes=32 time=12ms TTL=244<br />
Reply from 64.233.183.103: bytes=32 time=12ms TTL=244<br />
Reply from 64.233.183.103: bytes=32 time=12ms TTL=244</p>
<p>Ping statistics for 64.233.183.103:<br />
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),<br />
Approximate round trip times in milli-seconds:<br />
Minimum = 12ms, Maximum = 12ms, Average = 12ms</p>
<p><strong>Traceroute</strong></p>
<p>traceroute is a computer network tool used to determine the route taken by packets across an IP network. An IPv6 variant, traceroute6, is also widely available.Very useful to trace IP packets.</p>
<p><em>Example</em></p>
<p>traceroute google.com</p>
<p><strong>ifconfig</strong></p>
<p>The Unix command ifconfig can function as a tool to configure a network interface for TCP/IP from the command line interface (CLI).This is another easy tool to see if your interface is actually loading correctly.</p>
<p><em>Example</em></p>
<p>ifconfig</p>
<p>eth0 Link encap:Ethernet HWaddr 00:0A:E6:C6:07:85<br />
inet addr:132.18.0.16 Bcast:132.18.0.255 Mask:255.255.255.0<br />
inet6 addr: fe80::20a:e6ff:fec6:785/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br />
RX packets:18458 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:8982 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:4015093 (3.8 MiB) TX bytes:1449812 (1.3 MiB)<br />
Interrupt:10 Base address:0xd400<br />
<strong><br />
Route</strong></p>
<p>This is very useful to check routing config<br />
<em><br />
Example</em></p>
<p>route -n</p>
<p><strong>Netstat</strong></p>
<p>If you want to see Routing Tables,all open ports,all listen ports</p>
<p>netstat -nr</p>
<p>-n means return numeric output (ie, IP address instead of hostname)</p>
<p>-r means print the routing table</p>
<p>find all open ports</p>
<p>netstat -a</p>
<p>find listening ports</p>
<p>netstat -l</p>
<p>http://www.debianadmin.com/ubuntu-networking-for-basic-and-advanced-users.html</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F09%2F18%2Fubuntu-networking-for-basic-and-advanced-users%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/09/18/ubuntu-networking-for-basic-and-advanced-users/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/09/18/ubuntu-networking-for-basic-and-advanced-users/"  data-text="Ubuntu Networking for Basic and Advanced Users" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/09/18/ubuntu-networking-for-basic-and-advanced-users/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/09/18/ubuntu-networking-for-basic-and-advanced-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>network diagnostic using mtr</title>
		<link>http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/</link>
		<comments>http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 17:40:48 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[diagnostic]]></category>
		<category><![CDATA[mtr]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=112</guid>
		<description><![CDATA[There is a few ways to diagnose network problem, and tools like ping, and traceroute, are indispensable for the task. Here’s another tools that, is useful. mtr. mtr can be seen as a combination of ping and traceroute. When started &#8230; <a href="http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There is a few ways to diagnose network problem, and tools like ping, and traceroute, are indispensable for the task.</p>
<p>Here’s another tools that, is useful. mtr. mtr can be seen as a combination of ping and traceroute. When started it runs as a ncurses program. And what make it interesting is that, it shows the result, live. To me it’s interesting. There is 2 version in the ubuntu repository, one is mtr, another is mtr-tiny. The version I use, is mtr-tiny, which do not have x11 support. to install it on ubuntu, is a matter of<br />
sudo apt-get install mtr or sudo apt-get install mtr-tiny</p>
<p>To run in is a matter of</p>
<blockquote><p>mtr destination(could be address or URL)</p></blockquote>
<p>or to leave ncurses, useful if you want to redirect the output to a file.</p>
<blockquote><p>mtr -r destination</p></blockquote>
<p>or to run on certain cycle</p>
<blockquote><p>mtr -c 10 destination</p></blockquote>
<p>or you can combine it</p>
<blockquote><p>mtr -c 10 -r destination</p></blockquote>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F09%2F17%2Fnetwork-diagnostic-using-mtr%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/"  data-text="network diagnostic using mtr" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log4Tailer 2.0 released with SSH tailing capabilities</title>
		<link>http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/</link>
		<comments>http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 15:15:44 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[log4tailer]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tailing]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=87</guid>
		<description><![CDATA[Log4Tailer 2.0 http://code.google.com/p/log4tailer/ has just been released. It has been a month of some thought and testing the feasability of including tailing over SSH, and this release provides just that. It will open the door for a range of more &#8230; <a href="http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Log4Tailer 2.0 <a title="log4tailer" href="http://code.google.com/p/log4tailer/">http://code.google.com/p/log4tailer/</a> has just been released. It has been a month of some thought and testing the feasability of including tailing over SSH, and this release provides just that. It will open the door for a range of more features to control remote logs scattered across a network from a single terminal, instead of having multiple terminals or windows opened. As always, the project provides a nice pdf UserGuide explaining the ssh tailing capabilities of log4tailer.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F02%2F23%2Flog4tailer-2-0-released-with-ssh-tailing-capabilities%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/"  data-text="Log4Tailer 2.0 released with SSH tailing capabilities" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/02/23/log4tailer-2-0-released-with-ssh-tailing-capabilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Monitoring your desktop Linux the easy way</title>
		<link>http://namhuy.org/blog/2007/07/31/howto-monitoring-your-desktop-linux-the-easy-way/</link>
		<comments>http://namhuy.org/blog/2007/07/31/howto-monitoring-your-desktop-linux-the-easy-way/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 05:01:27 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[gkrellm]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[programs]]></category>
		<category><![CDATA[usage]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2007/07/31/howto-monitoring-your-desktop-linux-the-easy-way/</guid>
		<description><![CDATA[There are lots of programs that help us to monitor our personal computer. They provide us with memory consumption, cpu usage, network statistics and lots more. In this article I’m going to introduce gkrellm. I’ve always had gkrellm running in &#8230; <a href="http://namhuy.org/blog/2007/07/31/howto-monitoring-your-desktop-linux-the-easy-way/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are lots of programs that help us to monitor our personal computer. They provide us with memory consumption, cpu usage, network statistics and lots more. In this article I’m going to introduce gkrellm. I’ve always had gkrellm running in every desktop Linux. It’s very useful and provides essential information in real time. Installing gkrellm is just very easy, type:sudo apt-get install gkrellm</p>
<p>to run it, type</p>
<p>gkrellm &amp;</p>
<p>and you’ll get several info about your computer in real time.</p>
<p>Gkrellm supports themes, so the app can have several appearances. I always use the “invisible” theme, which is a transparent theme, so you can see the background. Very cool. To install a new theme (Ubuntu) go to</p>
<p><a href="http://www.muhri.net/gkrellm/" target="_blank">http://www.muhri.net/gkrellm/</a></p>
<p>and download the theme you like. Most of the themes come gzipped. Once you download the theme to your home directory, ungzipp it and move the whole directory to ~/.gkrellm2/themes.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2007%2F07%2F31%2Fhowto-monitoring-your-desktop-linux-the-easy-way%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2007/07/31/howto-monitoring-your-desktop-linux-the-easy-way/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2007/07/31/howto-monitoring-your-desktop-linux-the-easy-way/"  data-text="HOWTO: Monitoring your desktop Linux the easy way" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2007/07/31/howto-monitoring-your-desktop-linux-the-easy-way/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2007/07/31/howto-monitoring-your-desktop-linux-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.335 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-04 18:20:28 -->
<!-- Compression = gzip -->
