<?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>Internetworking, Security &#38; Tech &#187; Add IP on Solaris</title>
	<atom:link href="http://www.nish.com/tag/add-ip-on-solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nish.com</link>
	<description></description>
	<lastBuildDate>Sun, 13 May 2012 23:46:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to add IP Address / Default Gateway on Sun Solaris</title>
		<link>http://www.nish.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/</link>
		<comments>http://www.nish.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 23:39:07 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Add Default Gateway on Solaris]]></category>
		<category><![CDATA[Add IP on Solaris]]></category>

		<guid isPermaLink="false">http://www.nishv.com/?p=352</guid>
		<description><![CDATA[Adding IP address and default gateway is rather straight forward as long as the interface is loaded. To see whether the interface is loaded, issue the command ifconfig –a You should see something like the following&#8230; bash-3.00# ifconfig -a lo0: flags=2001000849&#60;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&#62; mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 rtls0: flags=1000842&#60;BROADCAST,RUNNING,MULTICAST,IPv4&#62; mtu 1500 index 2 [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Adding <acronym title="Internet Protocol">IP</acronym> address and default gateway is rather straight forward as long as the interface is loaded. To see whether the interface is loaded, issue the command <strong>ifconfig –a</strong></p>
<p>You should see something like the following&#8230;</p>
<pre>
bash-3.00# ifconfig -a
lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&gt; mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1000842&lt;BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2
inet 0.0.0.0 netmask 0
ether 0:6:4f:47:76:1e
</pre>
<p>In this case, we will be adding the <acronym title="Internet Protocol">IP</acronym> address and subnet mask to <strong>rtls0</strong> along with the default gateway.</p>
<p><strong><acronym title="Internet Protocol">IP</acronym> Address:</strong> 192.168.1.60<br />
<strong>Subnet Mask:</strong> 255.255.255.0<br />
<strong>Default Gateway:</strong> 192.168.1.1</p>
<p>Here is how its done&#8230;</p>
<pre>
bash-3.00# ifconfig rtls0 192.168.1.60 netmask 255.255.255.0 up
bash-3.00# route add default 192.168.1.1
add net default: gateway 192.168.1.1
bash-3.00# ping 4.2.2.2
4.2.2.2 is alive
</pre>
<p>Success! We can now ping a <acronym title="Wide Area Network">WAN</acronym> <acronym title="Internet Protocol">IP</acronym>! and here is the new output of <strong>ifconfig -a</strong></p>
<pre>
bash-3.00# ifconfig -a
lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL&gt; mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2
inet 192.168.1.60 netmask ffffff00 broadcast 192.168.1.255
ether 0:6:4f:47:76:1e
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.nish.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

