<?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>Dynamic Host Configuration Protocol &#8211; Henry Poon&#039;s Blog</title>
	<atom:link href="https://blog.henrypoon.com/blog/tag/dynamic-host-configuration-protocol/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.henrypoon.com</link>
	<description></description>
	<lastBuildDate>Wed, 05 Oct 2022 02:52:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">83044199</site>	<item>
		<title>Converting a Router into a Switch</title>
		<link>https://blog.henrypoon.com/blog/2010/09/08/converting-a-router-into-a-switch/</link>
					<comments>https://blog.henrypoon.com/blog/2010/09/08/converting-a-router-into-a-switch/#respond</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Thu, 09 Sep 2010 04:14:30 +0000</pubDate>
				<category><![CDATA[computer stuff]]></category>
		<category><![CDATA[9]]></category>
		<category><![CDATA[Chan]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Computer network]]></category>
		<category><![CDATA[Computer networking]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[Dynamic Host Configuration Protocol]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[Grab]]></category>
		<category><![CDATA[Internet architecture]]></category>
		<category><![CDATA[Internet Standards]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Lie]]></category>
		<category><![CDATA[Lost]]></category>
		<category><![CDATA[Modem]]></category>
		<category><![CDATA[Net]]></category>
		<category><![CDATA[Network switch]]></category>
		<category><![CDATA[Networking hardware]]></category>
		<category><![CDATA[Page]]></category>
		<category><![CDATA[Plug]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[Router]]></category>
		<category><![CDATA[Server appliance]]></category>
		<category><![CDATA[Telecommunications]]></category>
		<category><![CDATA[UNC]]></category>
		<category><![CDATA[Virtual Router Redundancy Protocol]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/converting-a-router-into-a-switch</guid>

					<description><![CDATA[By using a switch, I can get twice the bandwidth that I would have normally gotten from UBC Resnet.&#160; This is because I am getting more than one IP from Resnet instead of having the router to grab the one IP and rely on NAT for communication.&#160; Having one IP means I&#8217;d only get one [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>By using a switch, I can get twice the bandwidth that I would have normally gotten from UBC Resnet.&nbsp; This is because I am getting more than one IP from Resnet instead of having the router to grab the one IP and rely on NAT for communication.&nbsp; Having one IP means I&#8217;d only get one computer&#8217;s worth of bandwidth split among both computers.</p>
<p>Warning: After doing this, I’ve lost all contact with my router even with the IP of the router changed.&nbsp; This is probably because my router is acting as a switch.&nbsp; The only way that I’ve found to access the router page is to reset the router.&nbsp; This is probably due to the fact that my router is a piece of junk and I don&#8217;t know if this is something consistent among all routers.</p>
<ol>
<li>Change the IP of the router to something else that is unused in the network (I changed mine to 192.168.0.254)</li>
<li>Disable the DHCP client on the router</li>
<li>Plug the ethernet cable from the wall/modem to one of the LAN ports on the router (Don&#8217;t use the WAN port anymore)</li>
<li>Plug ethernet cables from each computer to any free LAN port on the router</li>
<li>Release/renew IP’s on all computers</li>
</ol>
<p>Note: Do not use the WAN port since the DHCP functionality has been disabled.</p>
<p>Despite the drawback of not being able to access the router afterward, I now have all my computers networked.&nbsp; Some people on forums had solutions on retaining access to the router, but those methods didn’t work for me.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2010/09/08/converting-a-router-into-a-switch/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">417</post-id>	</item>
		<item>
		<title>Ubuntu Network Configuration Using Command Line</title>
		<link>https://blog.henrypoon.com/blog/2009/11/21/ubuntu-network-configuration-using-command-line/</link>
					<comments>https://blog.henrypoon.com/blog/2009/11/21/ubuntu-network-configuration-using-command-line/#respond</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Sat, 21 Nov 2009 06:47:00 +0000</pubDate>
				<category><![CDATA[computer stuff]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[9]]></category>
		<category><![CDATA[agra]]></category>
		<category><![CDATA[Chan]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Computer architecture]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Configuration files]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[Domain name system]]></category>
		<category><![CDATA[Dynamic Host Configuration Protocol]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Find]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Ifconfig]]></category>
		<category><![CDATA[IME]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Internet protocol suite]]></category>
		<category><![CDATA[Internet Standards]]></category>
		<category><![CDATA[IP address]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Lie]]></category>
		<category><![CDATA[Net]]></category>
		<category><![CDATA[Operating systems]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[Prompt]]></category>
		<category><![CDATA[Resolv.conf]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[STR]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Transport]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/ubuntu-network-configuration-using-command-line</guid>

					<description><![CDATA[Source: https://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html The basics for any network based on *nix hosts is the Transport Control Protocol/ Internet Protocol (TCP/IP) combination of three protocols. This combination consists of the Internet Protocol (IP),Transport Control Protocol (TCP), and Universal Datagram Protocol (UDP). By Default most of the users configure their network card during the installation of Ubuntu. You [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Source: <a href="https://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html">https://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html</a></p>



<p class="wp-block-paragraph">The basics for any network based on *nix hosts is the Transport Control Protocol/ Internet Protocol (TCP/IP) combination of three protocols. This combination consists of the Internet Protocol (IP),Transport Control Protocol (TCP), and Universal Datagram Protocol (UDP).</p>



<p class="wp-block-paragraph">By Default most of the users configure their network card during the installation of Ubuntu. You can however, use the ifconfig command at the shell prompt or Ubuntu’s graphical network configuration tools, such as network-admin, to edit your system’s network device information or to add or remove network devices on your system</p>



<p class="wp-block-paragraph"><b>Configure Network Interface Using Command-Line</b><br>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 class="wp-block-paragraph"><b>Configuring DHCP address for your network card</b><br>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>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo vi /etc/network/interfaces</code></pre>



<pre class="wp-block-code"><code lang="bash" class="language-bash"># The primary network interface – use DHCP to find our address
auto eth0
iface eth0 inet dhcp</code></pre>



<p class="wp-block-paragraph"><b>Configuring Static IP address for your network card</b><br>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>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo vi /etc/network/interfaces</code></pre>



<pre class="wp-block-code"><code lang="bash" class="language-bash"># The primary network interface
auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255</code></pre>



<p class="wp-block-paragraph">After entering all the details you need to restart networking services using the following command</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo /etc/init.d/networking restart</code></pre>



<p class="wp-block-paragraph"><b>Setting up Second IP address or Virtual IP address in Ubuntu</b><br>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>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo vi /etc/network/interfaces</code></pre>



<pre class="wp-block-code"><code lang="bash" class="language-bash">auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x</code></pre>



<p class="wp-block-paragraph">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.<br>After entering all the details you need to restart networking services using the following command</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo /etc/init.d/networking restart</code></pre>



<p class="wp-block-paragraph"><b>Setting your ubuntu stytem hostname </b><br>Setting up your hostname upon a ubuntu installation is very straightforward. You can directly query, or set, the hostname with the hostname command.<br>As an user you can see your current hostname with</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo /bin/hostname</code></pre>



<p class="wp-block-paragraph"><b>Example</b><br>To set the hostname directly you can become root and run</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo /bin/hostname newname</code></pre>



<p class="wp-block-paragraph">When your system boots it will automatically read the hostname from the file /etc/hostname<br>If you want to know more about how to setup host name check <a href="http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html" target="_blank" rel="noopener noreferrer">here</a></p>



<p class="wp-block-paragraph"><b>Setting up DNS</b><br>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.<br>To cause your machine to consult with a particular server for name lookups you simply add their addresses to /etc/resolv.conf.<br>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>



<pre class="wp-block-code"><code lang="bash" class="language-bash">sudo vi /etc/resolv.conf</code></pre>



<p class="wp-block-paragraph">Enter the following details</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">search test.com
nameserver 192.168.3.2</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2009/11/21/ubuntu-network-configuration-using-command-line/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">24</post-id>	</item>
	</channel>
</rss>
