<?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>Sun Solaris System Admin &#187; route</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/route/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 16 Jun 2010 21:07:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>Increase/Decrease route flushing time period in Solaris</title>
		<link>http://www.sunsolarisadmin.com/networking/increasedecrease-route-flushing-time-period-in-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/networking/increasedecrease-route-flushing-time-period-in-solaris/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 19:08:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[ndd]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[routing-table]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/networking/increasedecrease-route-flushing-time-period-in-solaris/</guid>
		<description><![CDATA[Just as we saw modifying the caching time for ARP entries in the ARP table here. We can modify the default time that a sun Solaris system can hold the routing entries. The default time for which a dynamically learnt Route entry in the routing table is 20mins (1200000ms) To Display current Route holding time [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Just as we saw modifying the caching time for ARP entries in the ARP table <a title="Reduce ARP Caching time in Sun Solaris" href="http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/" target="_blank">here</a>. We can modify the default time that a sun Solaris system can hold the routing entries.</p>
<p>The default time for which a dynamically learnt Route entry in the routing table is 20mins (1200000ms)</p>
<p><span id="more-50"></span></p>
<p><strong><span style="text-decoration: underline;">To Display current Route holding time</span></strong></p>
<p>To display the current time interval to hold a route entry</p>
<p><strong>In Solaris 8/9/10</strong></p>
<blockquote><p><strong>sunsolaris# ndd -get /dev/ip ip_ire_arp_interval<br />
</strong>1200000</p></blockquote>
<p><strong>In earlier versions to Solaris 8</strong></p>
<blockquote><p><strong>sunsolaris# ndd -get /dev/ip ip_ire_flush_interval</strong></p></blockquote>
<p><strong><span style="text-decoration: underline;">To modify the Route holding time</span></strong> </p>
<p><!--adsense#AD2-->This can be modified or reduced to a lower level. To modify the default time to say 15 mins</p>
<p><strong>In Solaris 8/9/10</strong></p>
<blockquote><p><strong>sunsolaris# ndd -set /dev/ip ip_ire_arp_interval 900000</strong></p></blockquote>
<p>In earlier versions to Solaris 8</p>
<blockquote><p><strong>sunsolaris# ndd -set /dev/ip ip_ire_flush_interval 900000</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/increasedecrease-route-flushing-time-period-in-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change Default Gateway/Default Router in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/networking/how-to-change-default-gatewaydefault-router-in-sun-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/networking/how-to-change-default-gatewaydefault-router-in-sun-solaris/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 19:55:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[default-gateway]]></category>
		<category><![CDATA[default-router]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/networking/how-to-change-default-gatewaydefault-router-in-sun-solaris/</guid>
		<description><![CDATA[The Default Gateway or the Default Router is the IP address (IPv4) to which all the traffic to any target destination(s) which does not have a route in the Routing Table of the server will be forwarded. This Default Gateway is maintained in the file /etc/defaultrouter [IPv4 only] This IP Address should be in the [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<p>The Default Gateway or the Default Router is the IP address (IPv4) to which all the traffic to any target destination(s) which does not have a route in the Routing Table of the server will be forwarded.</p>
<p>This Default Gateway is maintained in the file</p>
<p><strong>/etc/defaultrouter</strong> [IPv4 only]</p>
<p><span id="more-37"></span></p>
<p>This IP Address should be in the same network or the subnet as that of the server itself.</p>
<p>If you wish to add or edit the Default Gateway or the Default Router in Sun Solaris, edit /etc/defaultrouter file and update the IP Address. One entry per line for one or more default gateways (very unlikely to have muktiple default gateways).</p>
<p>This file is read at the boot time and hence the server needs to be rebooted for the changes to take effect.</p>
<p>Instead of rebooting the server, update the Kernel IP Routing table first by deleting the existing Default Gateway or Default Router (if any) and then adding the new IP address.</p>
<p>To view the existing Kernel IP Routing table,</p>
<p><strong># netstat -rn</strong></p>
<p><font color="#336666">Routing Table: IPv4<br />
Destination           Gateway           Flags  Ref     Use     Interface<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8211; &#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;<br />
192.168.1.0          192.168.1.10         U         1        195 hme0<br />
224.0.0.0            192.168.1.10          U          1          0 hme0<br />
default              192.168.1.1             UG        1        325<br />
127.0.0.1            127.0.0.1               UH        5         92 lo0</font></p>
<p>Now, remove the dexisting default gateway;</p>
<p><strong># route delete default 172.1.1.1</strong></p>
<p>Add the new Default Gateway using:</p>
<p><strong># route add default 192.168.1.1</strong></p>
<p>This should help. For a detailed Man Page for /etc/defaultrouter <a href="http://docs.sun.com/app/docs/doc/819-2251/defaultrouter-4?l=en&amp;a=view&amp;q=defaultrouter" target="_blank" title="Sun Solaris /etc/defaultrouter Man Page">click here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/how-to-change-default-gatewaydefault-router-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to add a Static Route (persistent) in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-7/how-to-add-a-static-route-persistent-in-sun-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/solaris-7/how-to-add-a-static-route-persistent-in-sun-solaris/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 19:41:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 7]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[static-route]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-7/how-to-add-a-static-route-persistent-in-sun-solaris/</guid>
		<description><![CDATA[To add a Static Route in Sun Solaris operating system, you can use the route command. This will dynamically update the Kernel IP Routing table. However, when a server is restarted, these routes will be lost. To prevent this from happening, add a startup script S76static-routes with all the route commands for the static route [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<p>To add a Static Route in Sun Solaris operating system, you can use the route command. This will dynamically update the Kernel IP Routing table. However, when a server is restarted, these routes will be lost. To prevent this from happening, add a startup script S76static-routes with all the route commands for the static route that needs to persist. This will ensure that the route gets added at boot time.</p>
<p><span id="more-33"></span></p>
<p>To use the <strong>route</strong> command,</p>
<p><strong>Syntax:</strong></p>
<blockquote><p><strong># route add [net|host] &lt;Addr&gt; netmask &lt;Mask&gt; [GatewayAddr|-interface ] &lt;metric&gt;</strong></p></blockquote>
<p><strong>Example:</strong></p>
<p>Add a network</p>
<blockquote><p><strong># route add net 10.10.10.0 netmask 255.255.255.0 192.168.1.1 1</strong></p></blockquote>
<p>same as</p>
<blockquote><p><strong># route add 10.10.10.0/24 192.168.1.1 1</strong></p></blockquote>
<p>Add a host</p>
<blockquote><p><strong># route add host 1.1.1.1 netmask 255.255.255.0 192.168.1.1 1</strong></p></blockquote>
<p>same as</p>
<blockquote><p><strong># route add 1.1.1.1/24 192.168.1.1 1</strong></p></blockquote>
<p>To route the traffic through an interface instead of an IP Gateway</p>
<blockquote><p><strong># route add 1.1.1.1/24 -interface hme0</strong></p></blockquote>
<p>To check that the roots are added to Kernel IP Routing table,</p>
<blockquote><p><strong># netstat -rn</strong></p>
<p>Routing Table: IPv4<br />
Destination           Gateway           Flags  Ref   Use   Interface<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8211; &#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212;<br />
192.168.1.0          192.168.1.1        U         1    273  hme0<br />
224.0.0.0            192.168.1.1         U         1      0   hme0<br />
default              192.168.1.1          UG        1    196</p></blockquote>
<p><strong><u>Static Routes at boot time</u></strong></p>
<p>To make the routes available at boot time so the next time when the server reboots, the routes are still available. Add a startup script named as</p>
<blockquote><p><strong>/etc/rc2.d/S76static-routes</strong></p></blockquote>
<p>and add the required route commands as above.</p>
<p>Change the permissions for the file so that the file is executable by root.</p>
<blockquote><p><strong># chmod 744 /etc/rc2.d/S76static-routes</strong></p></blockquote>
<p>This should help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-7/how-to-add-a-static-route-persistent-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
