<?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; Networking</title>
	<atom:link href="http://www.sunsolarisadmin.com/category/networking/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>Configure Link based IPMP in Solaris</title>
		<link>http://www.sunsolarisadmin.com/networking/configure-link-based-ipmp-in-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/networking/configure-link-based-ipmp-in-solaris/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 21:05:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[if_mpadm]]></category>
		<category><![CDATA[ip-address]]></category>
		<category><![CDATA[IPMP]]></category>
		<category><![CDATA[link based ipmp]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[tracking ipmp]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=111</guid>
		<description><![CDATA[For long we used Tracking IP basd IPMP wherein we track the availability of a gateway on the network using ICMP Echo request. When the gateway IP fails to respond it is considered link is unavailable and NIC fails over to the standby NIC in the IPMP group. The biggest disadvantage here is that we [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->For long we used Tracking IP basd IPMP wherein we track the availability of a gateway on the network using ICMP Echo request. When the gateway IP fails to respond it is considered link is unavailable and NIC fails over to the standby NIC in the IPMP group.</p>
<p><span id="more-111"></span></p>
<div>
<div id="_mcePaste">The biggest disadvantage here is that we use 3 IP addresses:</div>
<div></div>
<div>1 for the Virtual IP</div>
<div id="_mcePaste">1 for the active NIC</div>
<div id="_mcePaste">1 for the Standby NIC</div>
<div></div>
<div>and ofcourse the overhead of the ICMP echo requests sent every seconds.</div>
<div></div>
<div>This can be overcome using the Link based IPMP configuration where you only need only IP Address and there is no overhead of ICMP messages and the failover delay is lot lesser than that of the tracking method. And the added advantage of a very simple configuration.</div>
<div></div>
<div>To configure Link based IPMP, create the hostname.&lt;int name&gt; files for the Active NIC and the standby NIC. For instance here, we use the bge0 and bge3 NICs as the IPMP pair where bge0 is active and bge3 is standby and hence the files <strong>hostname.bge0</strong> and <strong>hostname.bge3</strong>.</div>
</div>
<div></div>
<div>To configure Link based IPMP, create the hostname.&lt;int name&gt; files for the Active NIC and the standby NIC. For instance here, we use the bge0 and bge3 NICs as the IPMP pair where bge0 is active and bge3 is standby and hence the files hostname.bge0 and hostname.bge3.</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # ls -l hostname*</strong></div>
<div>-rw-r&#8211;r&#8211;   1 root     root          55 May  6 11:23 hostname.bge0</div>
<div>-rw-r&#8211;r&#8211;   1 root     root          23 May  6 11:23 hostname.bge3</div>
</blockquote>
</div>
<div>
<div>Edit the <strong><span style="text-decoration: underline;">hostname.bge0</span></strong> file and enter the following:</div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # vi hostname.bge0</strong></div>
<div>solaris10 netmask + broadcast + group sol10-ipmp up</div>
</blockquote>
<div>where,</div>
<div>&#8220;<strong>solaris10</strong>&#8221; is the hostname which should have a corresponding host entry in the /etc/hosts file.</div>
<div></div>
<div><strong>sol10-ipmp</strong> is the name of the IPMP group.</div>
<div></div>
<div>Edit the <strong><span style="text-decoration: underline;">hostname.bge3</span></strong> and the following</div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # vi hostname.bge3</strong></div>
<div>group sol10-ipmp up</div>
</blockquote>
</div>
<div>
<div>Here as you can see the standby NIC only has IPMP group configuration. This is all is needed to setup Link based IPMP. When the server is rebooted this configuration should take effect</div>
<div></div>
<div>To do this on the fly, we can use the ifconfig command:</div>
<div></div>
<div><strong><span style="text-decoration: underline;">NIC bge0</span></strong></div>
<blockquote>
<div><strong>root@solaris10:/etc # ifconfig bge0 plumb</strong></div>
<div><strong>root@solaris10:/etc # ifconfig bge0 192.168.0.1 netmask 255.255.255.0 group sol10-ipmp up</strong></div>
</blockquote>
<div><strong><span style="text-decoration: underline;">NIC bge3</span></strong></div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # ifconfig bge3 plumb</strong></div>
<div><strong>root@solaris10:/etc # ifconfig bge3 group sol10-ipmp up</strong></div>
</blockquote>
<blockquote>
<div><strong>root@solaris10:/etc # ifconfig -a</strong></div>
<div>lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&gt; mtu 8232 index 1</div>
<div>inet 127.0.0.1 netmask ff000000</div>
<div>bge0: flags=1000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2</div>
<div>inet 192.168.0.1 netmask ffffff00 broadcast 192.168.0.255</div>
<div>groupname sol10-ipmp</div>
<div>ether 0:a:1d:ee:ab:cd</div>
<div>bge3: flags=1000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 5</div>
<div>inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255</div>
<div>groupname sol10-ipmp</div>
<div>ether 0:a:1d:ee:ab:d2</div>
</blockquote>
<p>This should do.</p>
<div>To test failover, you can do the hard way of pulling the cables  or use if_mpadm command as follows:</div>
<div>To failover:</div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # if_mpadm -d bge0</strong></div>
</blockquote>
</div>
<div>
<div>To failback</div>
</div>
<div>
<blockquote>
<div><strong>root@solaris10:/etc # if_mpadm -r bge0</strong></div>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/configure-link-based-ipmp-in-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>dladm &#8211; Display Link status,speed,duplex,statistics,MTU</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:45:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[dladm]]></category>
		<category><![CDATA[duplex]]></category>
		<category><![CDATA[link speed]]></category>
		<category><![CDATA[link status]]></category>
		<category><![CDATA[mtu]]></category>
		<category><![CDATA[nxge]]></category>
		<category><![CDATA[packets]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=78</guid>
		<description><![CDATA[In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility. dladm is the admin utility for Data-Link Interface which helps to display informarthe like [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility.</p>
<p><strong>dladm</strong> is the admin utility for Data-Link Interface which helps to display informarthe like Link Status (UP/DOWN), Speed, Duplex, MTU, VLAN Tagged and crucially statistics of network traffic on each of the interfaces historically as well as in real time. dladm can also configure and admin Link Aggregation on multiple NICs which we will not focus here.<br />
<span id="more-78"></span><br />
<span style="text-decoration: underline;"><strong>Show Link Status/Speed/Duplex</strong></span></p>
<blockquote><p><strong># dladm show-dev</strong><br />
nxge0           link: down      speed: 0     Mbps       duplex: unknown<br />
nxge1           link: down      speed: 0     Mbps       duplex: unknown<br />
nxge2           link: up        speed: 1000  Mbps       duplex: full<br />
nxge3           link: up        speed: 1000  Mbps       duplex: full</p></blockquote>
<p>As you can see above the &#8220;<strong>show-dev</strong>&#8221; option lists all the network interfaces with Link Status (UP/DOWN), current speed in Mbps and Duplex (Half/Full)</p>
<p><span style="text-decoration: underline;"><strong>Show Link Status</strong></span></p>
<blockquote><p><strong># dladm show-link</strong><br />
nxge0           type: non-vlan  mtu: 1500       device: nxge0<br />
nxge1           type: non-vlan  mtu: 1500       device: nxge1<br />
nxge2           type: non-vlan  mtu: 1500       device: nxge2<br />
nxge3           type: non-vlan  mtu: 1500       device: nxge3</p></blockquote>
<p>Here<strong> &#8220;show-link&#8221;</strong> option reveals the MTU and the VLAN tagging detail on each of the interfaces on the system.</p>
<p><span style="text-decoration: underline;"><strong>Show Stats of all Interfaces for all time</strong></span></p>
<blockquote><p><strong># dladm show-dev -s</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0<br />
nxge1           0         0           0       0         0           0<br />
nxge2           179625752557169463759657      581104982 3964684165410<br />
nxge3           22240891  1834257868  0       5198483   395084708   0</p></blockquote>
<p>The <strong>&#8220;-s&#8221;</strong> option along with <strong>&#8220;show-dev&#8221;</strong> or <strong>&#8220;show-link&#8221;</strong> displays network traffic statistics including Input/Output packets, input/output errors.</p>
<p><span style="text-decoration: underline;"><strong>Stats in real-time</strong></span></p>
<p>To show the stats of a particular interface in real-time use the<strong> &#8220;-i&#8221; </strong>option which is the interval in seconds. The first line shows again historic stats and later on the real-time information for every &#8220;n&#8221; seconds (5 seconds in our example)</p>
<blockquote><p><strong># dladm show-link -s -i 5 nxge2</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           179637824757173944575957      581119516 3964706801670<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           961       319105             0       150       17874       0<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge2           887       263850             0       117       16505       0</p></blockquote>
<p>If we fail to mention the interface then it takes the default interface (1st in the list). As you can see from the example below, we see stats for nxge0 which is not connected.</p>
<blockquote><p><strong># dladm show-link -s -i 5</strong><br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0<br />
ipackets  rbytes         ierrors opackets        obytes      oerrors<br />
nxge0           0         0           0       0         0           0</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/dladm-display-link-statusspeedduplexstatisticsmtu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PCP script to find open TCP ports and PIDs related in Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/#comments</comments>
		<pubDate>Tue, 12 May 2009 22:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[pcp]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[TCP port]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=69</guid>
		<description><![CDATA[PCP is a very useful security and adminitration script that can help you quickly find Processes (PIDs) having particular TCP Port(s) open, TCP ports open by specific PIDs or even list all the TCP Ports open by all PIDs running on your system. The PCP script works on Solaris 10/9/8 and can be downloaded from [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->PCP is a very useful security and adminitration script that can help you quickly find Processes (PIDs) having particular TCP Port(s) open, TCP ports open by specific PIDs or even list all the TCP Ports open by all PIDs running on your system.</p>
<p><span id="more-69"></span><br />
The PCP script works on Solaris 10/9/8 and can be downloaded from <a title="PCP Script download" href="http://www.unix.ms/pcp/pcp.txt" target="_blank">here</a>. Simply save the pcp.txt file to your Solaris Server as a Shell scripts (say pcp.sh) and change permissions to execute.</p>
<blockquote><p><strong># chmod 755 pcp.sh</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>PIDs for TCP Port</strong></span></p>
<p>Run PCP with <strong>&#8220;-p&#8221;</strong> option to show the PIDs of processes having a TCP port (say Port 22)</p>
<p><img class="alignnone size-full wp-image-70" title="pcp1" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp1.png" alt="pcp1" width="471" height="194" /></p>
<p>For instance, to find PIDs opening TCP port 22.</p>
<p><span style="text-decoration: underline;"><strong>TCP Ports open by PIDs</strong></span></p>
<p>Run PCP with <strong>&#8220;-P&#8221;</strong> option to show the TCP ports open by specific PID</p>
<p>For instance, here I try to find the TCP ports open by PID 18805</p>
<p><img class="alignnone size-full wp-image-72" title="pcp3" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp3.png" alt="pcp3" width="468" height="223" /></p>
<p><span style="text-decoration: underline;"><strong>All PIDs for all open TCP Ports</strong></span></p>
<p>Use the <strong>&#8220;-a&#8221;</strong> option to list all TCP ports open with all the PIDs</p>
<p><img class="alignnone size-full wp-image-71" title="pcp2" src="http://www.sunsolarisadmin.com/wp-content/uploads/2009/05/pcp2.png" alt="pcp2" width="464" height="458" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/pcp-script-to-find-open-tcp-ports-and-pids-related-in-solaris/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to setup DHCP client in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/networking/how-to-setup-dhcp-client-in-sun-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/networking/how-to-setup-dhcp-client-in-sun-solaris/#comments</comments>
		<pubDate>Tue, 06 May 2008 18:17:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpagent]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=54</guid>
		<description><![CDATA[  Setting up a Sun Solaris Server to receive its IP address from a DHCP Server is fairly straight forward and is infact just a matter of setting up files on your Solaris Server. Ensure that every interface that is up and connects to a network has a file /etc/hostname.interface file created say /etc/hostname.pcn0 where [...]]]></description>
			<content:encoded><![CDATA[<p> <!--adsense--><br />
Setting up a Sun Solaris Server to receive its IP address from a DHCP Server is fairly straight forward and is infact just a matter of setting up files on your Solaris Server.</p>
<p><span id="more-54"></span></p>
<p>Ensure that every interface that is up and connects to a network has a file /etc/hostname.interface file created say /etc/hostname.pcn0 where pcn0 is my network interface. If they are not found the create a file as follows:</p>
<blockquote><p><strong>solaris10# touch /etc/hostname.pcn0</strong></p></blockquote>
<p>where pcn0 is my network interface card. </p>
<p>dhcpagent is the dhcp client thats running on your Solaris operating system. With this in place create the following file:</p>
<p><strong><span style="text-decoration: underline;">Create /etc/dhcp.&lt;interface&gt;</span></strong></p>
<p>Similarly, create a /etc/dhcp.&lt;interface&gt; file (here /etc/hostname.pcn0)</p>
<blockquote><p><strong>solaris10# touch /etc/dhcp.pcn0</strong></p></blockquote>
<p>Again, if there are more than one network interface and if each of these receive IP Address from DHCP servers in their networks then a /etc/dhcp.&lt;interface&gt; file has to be created for each of these interfaces.</p>
<p>The system by default waits for 30 seconds for the DHCP Server to respond. However, this can be modified by entering the wait time in the dhcp.&lt;interface&gt; file. For instance, if I decide to let my solaris server wait for 90 seconds  then enter the wait time as follows</p>
<blockquote><p><strong>solaris10# cat /etc/dhcp.pcn0<br />
</strong>wait 90</p></blockquote>
<p>If it is a primary interface then this can be mentioned as follows</p>
<blockquote><p><strong>solaris10# cat /etc/dhcp.pcn0<br />
</strong>wait 90<br />
primary</p></blockquote>
<p>This should make your Sun Solaris Server a DHCP client to receive IP Address from a DHCP Server. For more customisation options <a title="DHCP Agent customisation in Sun Solaris" href="http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/" target="_self">click here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/how-to-setup-dhcp-client-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Network Interface may not come up online at reboot in Solaris</title>
		<link>http://www.sunsolarisadmin.com/networking/network-interface-may-not-come-up-online-at-reboot-in-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/networking/network-interface-may-not-come-up-online-at-reboot-in-solaris/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 21:59:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[netmask]]></category>
		<category><![CDATA[NIC]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=53</guid>
		<description><![CDATA[Everytime you reboot your Sun Solaris Server, you may find that one or more of your Network Interfaces may not come online. If you did a &#8220;netstat -r&#8221; sunsolaris# netstat -r Routing Table: IPv4   Destination           Gateway           Flags  Ref   Use   Interface &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8211; &#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; BASE-ADDRESS.MCAST.NET solaris10            U         1      0 hme0 default              192.168.0.1          [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Everytime you reboot your Sun Solaris Server, you may find that one or more of your Network Interfaces may not come online.</p>
<p>If you did a &#8220;netstat -r&#8221;</p>
<blockquote><p><strong>sunsolaris# netstat -r</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 />
BASE-ADDRESS.MCAST.NET solaris10            U         1      0 hme0<br />
default              192.168.0.1          UG        1      0 hme0<br />
localhost            localhost            UH        1     61 lo0</p></blockquote>
<p>You may not find that the network for the Network interface not found in there (192.168.0.0 here) and as you would expect adding the netmask manually fixes the problem.</p>
<blockquote><p><strong>sunsolaris# ifconfig hme0 255.255.0.0</strong></p></blockquote>
<p><span id="more-53"></span></p>
<p>The problem with not being able to bring an interface up at a reboot indicates a problem with the /etc/hostname.interface file (here /etc/hostname.hme0). It could be with an extra line in your hostname.interface file (here hostname.hme0) that causes the problem with the interface.</p>
<p>To check if thats the problem,</p>
<blockquote><p><strong>sunsolaris# wc /etc/hostname.hme0</strong><br />
                  2       0       2 /etc/hostname.hme0</p></blockquote>
<p>It should report as &#8220;1&#8243; line and not as &#8220;2&#8243; as above. To fix the problem from occuring again,, edit the hostname.interface file and delete the extra file.</p>
<blockquote><p><strong>sunsolaris# vi /etc/hostname.hme0</strong></p></blockquote>
<p>and delete the extra empty line in the bottom and that should fix the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/network-interface-may-not-come-up-online-at-reboot-in-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>Display/Add/Delete/modify ARP entries in ARP Table</title>
		<link>http://www.sunsolarisadmin.com/networking/displayadddeletemodify-arp-entries-in-arp-table/</link>
		<comments>http://www.sunsolarisadmin.com/networking/displayadddeletemodify-arp-entries-in-arp-table/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 18:42:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[ARP-table]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[Caching-time]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/networking/displayadddeletemodify-arp-entries-in-arp-table/</guid>
		<description><![CDATA[Not so often we would end up troubleshooting or manipulating ARP and ARP tables in Sun Solaris. However, following are some of the useful commands which can help when required. The following commands will help you display,modify,add,delete ARP entries in Sun Solaris ARP table. Display ARP table sunsolaris# arp -a Net to Media Table: IPv4 [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Not so often we would end up troubleshooting or manipulating ARP and ARP tables in Sun Solaris. However, following are some of the useful commands which can help when required. The following commands will help you display,modify,add,delete ARP entries in Sun Solaris ARP table.</p>
<p><span id="more-49"></span></p>
<p><strong><u>Display ARP table</u></strong></p>
<blockquote><p><strong>sunsolaris# arp -a</strong><br />
Net to Media Table: IPv4<br />
Device   IP Address               Mask      Flags   Phys Addr<br />
&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;<br />
pcn0   192.168.0.1          255.255.255.255       00:18:4d:f8:a4:6e<br />
pcn0   192.168.0.2          255.255.255.255       00:13:ce:85:0e:e1<br />
pcn0   sunsolaris            255.255.255.255 SP    00:0c:29:d3:76:89<br />
pcn0   BASE-ADDRESS.MCAST.NET 240.0.0.0       SM    01:00:5e:00:00:00</p></blockquote>
<p><strong><u>Delete an ARP entry</u></strong></p>
<blockquote><p><strong>sunsolaris# arp -d 192.168.0.1</strong><br />
192.168.0.1 (192.168.0.1) deleted</p></blockquote>
<p>To verify the entry indeed is deleted</p>
<blockquote><p><strong>sunsolaris# arp -a<br />
</strong>Net to Media Table: IPv4<br />
Device   IP Address               Mask      Flags   Phys Addr<br />
&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;<br />
pcn0   192.168.0.2          255.255.255.255       00:13:ce:85:0e:e1<br />
pcn0   solaris10            255.255.255.255 SP    00:0c:29:d3:76:89<br />
pcn0   BASE-ADDRESS.MCAST.NET 240.0.0.0       SM    01:00:5e:00:00:00</p></blockquote>
<p>You can see the ARP entry for 192.168.0.1 is longer found.</p>
<p><strong><u>Add a Static entry</u></strong></p>
<blockquote><p><strong>sunsolaris# arp -s 192.168.0.1 00:18:4d:f8:a4:6e</strong></p></blockquote>
<p>Syntax is</p>
<p><strong>arp -s HOSTNAME MAC-Address &lt;pub/temp/trail&gt;</strong></p>
<p>where</p>
<p>pub &#8211; publishes the ARP entries to other hosts on the network</p>
<p>temp &#8211; Temporary entry</p>
<p>trail &#8211; Allows Trailer Encapsulations to be sent to host</p>
<p>You can also read static entries from a file. This can come handy if you decide that all ARP entries are static and no ARP requests are sent and received from the system. You can add the static entries onto a file and add the arp command onto the network init scripts in /etc/rc2.d/</p>
<p><strong><u>To read from file</u></strong></p>
<blockquote><p><strong>sunsolaris# arp -f /etc/host_mac</strong></p></blockquote>
<p>where /etc/host_mac is my file name from where the ARP entries are read.</p>
<p><strong><u>To check the current ARP caching time</u></strong></p>
<blockquote><p><strong>sunsolaris# ndd -get /dev/arp arp_cleanup_interval<br />
</strong>500000</p></blockquote>
<p>where 500000 in milliseconds indicates 5mins</p>
<p>To modify ARP Cache timing, <a target="_blank" href="http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/" title="Sun Solaris Modify ARP Cache Time">click here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/displayadddeletemodify-arp-entries-in-arp-table/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Reduce ARP caching time in Sun Solaris using ndd</title>
		<link>http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/</link>
		<comments>http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 18:02:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[ARP-table]]></category>
		<category><![CDATA[attacks]]></category>
		<category><![CDATA[cache]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/</guid>
		<description><![CDATA[ARP attacks are the easiest attacks that can be launched on a network or a Server causing a Denial of Service. One of those things that can be done on the Sun Solaris Operating System is to alter the caching time for the ARP cache whch reduces the time that a rogue ARP entry stays [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
ARP attacks are the easiest attacks that can be launched on a network or a Server causing a Denial of Service. One of those things that can be done on the Sun Solaris Operating System is to alter the caching time for the ARP cache whch reduces the time that a rogue ARP entry stays in the ARP table. While this is not fool proof but can certainly make it that extra difficult to the hacker.</p>
<p>The default time that ARP entries are cached in a Sun Solaris system is 5 mins.</p>
<p><span id="more-48"></span></p>
<p>However, this can be reduced to lower level (say 3mins). This means that the number of ARP requests and ARP replies to and from the server will increase as a result. So, before modifying the caching time, check if this can cause andy congestion on your network.</p>
<p>To set the ARP cache time period</p>
<blockquote><p><strong>solaris# ndd -set /dev/arp arp_cleanup_interval 180000</strong></p></blockquote>
<p>The above command sets the interval to 3 minutes (1min is equal to 60000ms). Now, all the ARP entries are flushed at a faster rate (every 3mins)</p>
<p>For this change to persist across reboots, add this command onto the init scripts in /etc/rc2.d directory for your network interface (where all the required ndd commands are run).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable/Disable IP Forwarding in Solaris 10 without reboot</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 17:00:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[IP-Forwarding]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[routeadm]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/</guid>
		<description><![CDATA[IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface. In Solaris 10, IP Forwarding can be enabled or disabled using the routeadm &#38; ifconfig commands as against [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface.</p>
<p>In Solaris 10, IP Forwarding can be enabled or disabled using the routeadm &amp; ifconfig commands as against the ndd commands in Solaris 9 and earlier. The advantage is the change dynamic and real-time and the change persist across reboot unlike the ndd command.</p>
<p><span id="more-46"></span></p>
<p><strong><u>Enable/Disable IP Forwarding globally</u></strong> </p>
<p>To globally enable IP Forwarding in Solaris 10 use the routeadm command as follows:</p>
<p><strong>In IPv4</strong></p>
<blockquote><p><strong>solaris10# routeadm -e ipv4-forwarding</strong></p></blockquote>
<p><strong>In IPv6</strong></p>
<blockquote><p><strong>solaris10# routeadm -e ipv6-forwarding</strong></p></blockquote>
<p>The switches &#8220;-e&#8221; enables IP Forwarding.</p>
<p><strong>To disable IP Forwarding</strong></p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# routeadm -d ipv4-forwarding</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# routeadm -d ipv6-forwarding</strong></p></blockquote>
<p>The switches &#8220;-d&#8221; enables IP Forwarding.</p>
<p>After the change run the following command for the changes to take effect.</p>
<blockquote>
<blockquote><p><strong>solaris10# routeadm -u</strong></p></blockquote>
</blockquote>
<p><strong><u>Enable/Disable IP Forwarding per interface</u></strong> </p>
<p>To enable IP Forwarding on a specific interface (say ce0) using the ifconfig command</p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# ifconfig ce0 router</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# ifconfig ce0 inet6 router</strong></p></blockquote>
<p>To disable IP Forwarding for an interface (say ce0)</p>
<p>In IPv4</p>
<blockquote><p><strong>solaris10# ifconfig ce0 -router</strong></p></blockquote>
<p>In IPv6</p>
<blockquote><p><strong>solaris10# ifconfig ce0 inet6 -router</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/enabledisable-ip-forwarding-in-solaris-10-without-reboot/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Control/Modify dhcpagent configuration in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 19:39:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[broadcast-address]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpagent]]></category>
		<category><![CDATA[dnsdomain]]></category>
		<category><![CDATA[dnsserver]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[netmask]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/</guid>
		<description><![CDATA[Do you you DHCP to get the IP Address for your Solaris Server or workstation then its worth understanding what your DHCP Agent by default requests for from the DHCP server and help avoid certain network issues like &#8220;unknown&#8221; hostname issue as I&#8217;ve descrbed here. The DHCP Agent by default requests for the Subnet Mask [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Do you you DHCP to get the IP Address for your Solaris Server or workstation then its worth understanding what your DHCP Agent by default requests for from the DHCP server and help avoid certain network issues like &#8220;unknown&#8221; hostname issue as I&#8217;ve descrbed <a href="http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/" title="Fix Unknown Hostname issue in Solaris DHCP" target="_blank">here</a>.</p>
<p>The DHCP Agent by default requests for the</p>
<blockquote><p><strong>Subnet Mask</strong></p>
<p><strong>Default Router</strong></p>
<p><strong>Hostname</strong></p>
<p><strong>DNS Domain</strong></p>
<p><strong>Broadcast Address</strong></p>
<p><strong>Encapsulated Vendor Option (vendor specific information as described in <a href="http://www.faqs.org/rfcs/rfc2132.html" title="RFC 2132" target="_blank">RFC 2132</a>)</strong></p></blockquote>
<p><span id="more-43"></span><br />
The DHCP Agent config file is</p>
<blockquote><p><strong>/etc/default/dhcpagent</strong></p></blockquote>
<p>In the file look for the line</p>
<blockquote><p><strong>PARAM_REQUEST_LIST=1,3,6,12,15,28,43</strong></p></blockquote>
<p>This is the line that defines what is being requested for from the DHCP Server. Here, each number stands for one of the above mentioned parameters where</p>
<blockquote><p><strong>1</strong> = subnet mask</p>
<p><strong>3</strong> = Default Router</p>
<p><strong>6</strong> = DNS Server</p>
<p><strong>12</strong> = hostname</p>
<p><strong>15</strong> = DNS Domain Name</p>
<p><strong>28</strong> = broadcast address</p>
<p><strong>43</strong> = Encapsulated Vendor options</p></blockquote>
<p>If you decide to not request for any of the above parameters then all you need to do is to remove the corresponding number from the <strong>PARAM_REQUEST_LIST</strong>. Let&#8217;s say you do not want to request for the hostname then simply remove the number &#8220;3&#8243; and the &#8220;,&#8221; that follows so it looks as follows</p>
<blockquote><p><strong>PARAM_REQUEST_LIST=1,6,12,15,28,43</strong></p></blockquote>
<p>Once done,save the file. The next time the system restarts the hostname is not requested for from the DHCP Server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
